Account and users
Short answer
The account commands read and change your Sirv account: its settings, API limits, storage, users, billing plan, custom domains, sub-accounts and event notifications. Most are GET requests that return JSON; changes use POST or DELETE. Each one needs a bearer token from an API client allowed to read or manage account settings.
After reading this you will know
- How to read account, storage, limit, user and billing details
- How to add or remove a custom domain and create or close sub-accounts
- How to list account events and mark them as seen
Each page has the commands for one task, with parameters, sample code in 9 languages and a sample answer.
- Get and update account info 2 commands: Get account info, Update account info. Parameters, sample code in 9 languages and sample answers.
- Get API limits GET /v2/account/limits: Use this method to check the allowed number of API requests and the number of requests used in the past 60 minutes.
- Get users and user info 2 commands: Get users, Get user info. Parameters, sample code in 9 languages and sample answers.
- Get storage and billing info 2 commands: Get storage info, Get billing info. Parameters, sample code in 9 languages and sample answers.
- Add or remove a custom domain 2 commands: Add custom domain, Remove custom domain. Parameters, sample code in 9 languages and sample answers.
- Create or close a sub-account 2 commands: Create sub-account, Close sub-account. Parameters, sample code in 9 languages and sample answers.
- List account events and mark them seen 2 commands: List or search account events, Mark account event(s) as seen. Parameters, sample code in 9 languages and sample answers.