List Service Accounts
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List service accounts in the caller's organization.
Results are ordered by creation time, newest first. Use limit and the next_page cursor to paginate; set include_archived=true to include archived service accounts.
Query parameters
Number of results per page.
Number of results per page.
Opaque cursor from a previous response's next_page.
Opaque cursor from a previous response's next_page.
Include archived resources. Defaults to false.
Include archived resources. Defaults to false.
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Your unique Admin API key for authentication.
This key is required in the header of all Admin API requests, to authenticate your account and access Anthropic's services. Get your Admin API key through the Console.
Your unique Admin API key for authentication.
This key is required in the header of all Admin API requests, to authenticate your account and access Anthropic's services. Get your Admin API key through the Console.
Response
Successful Response
Example response
{
"data": [
{
"created_at": "2024-10-30T23:58:27.427722Z",
"id": "svac_01SDCCSbTxrXDpWc1phhtcfK",
"name": "ci-deploy-bot",
"updated_at": "2024-10-30T23:58:27.427722Z"
}
]
}