Get all accounts
This method allows you to get all accounts. To get the current authenticated account append /_ to the path.
Please log in to see full path URL. Learn why.
get
/settings/1/accounts
Authorizations:
Scopes:
query Parameters
name | string Example: name=First account Account name |
limit | integer <int32> Example: limit=3 Indicates the number of accounts in the response. By default, it will list last 40 accounts ordered by id. |
enabled | boolean Example: enabled=true Indicates whether the account is enabled. |
Responses
default
successful response
401
Unauthorized
403
Forbidden
4XX
Error responses
500
Internal Server Error
5XX
Error responses
Request samples
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
Example
cURL
Copy
curl -L -g 'https://{baseUrl}/settings/1/accounts?name=First%20account&limit=3&enabled=true' \ -H 'Authorization: {authorization}' \ -H 'Accept: application/json'
Response samples
- default
- 401
- 403
- 4XX
- 500
- 5XX
Content type
application/json
Copy
Collapse all {- "accounts": [
- {
- "key": "8F0792F86035A9F4290821F1EE6BC06A",
- "ownerKey": "37B93F4D2BA3C58B58526EAEAA1AB35C",
- "name": "First account",
- "enabled": true
}, - {
- "key": "6298AA7707903A4ED680B436929681AD",
- "ownerKey": "37B93F4D2BA3C58B58526EAEAA1AB35C",
- "name": "Second account",
- "enabled": false
}
]
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See