Get Service Account
api/admin/service_accounts/retrieve
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/admin/service_accounts/retrieve Changed · +16 / -15 lines
# Get Service Account ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get Service Account ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Get Service Account -url: https://platform.claude.com/docs/en/api/admin/service_accounts/retrieve ---- +# Get Service Account -## Get Service Account +**GET** `/v1/organizations/service_accounts/{service_account_id}` -**get** `/v1/organizations/service_accounts/{service_account_id}` - Retrieve a service account by its ID (`svac_...`). -### Path Parameters +## Path parameters - `service_account_id: string` ID of the service account. -### Header Parameters +## Headers - `"anthropic-beta": optional array of string`
To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta. -### Returns +## Returns -- `ServiceAccount object { id, archived_at, archived_by_actor_id, 8 more }` +- `ServiceAccount object` Named non-human identity within the caller's organization.
If set, this service account is archived. + format: date-time + - `archived_by_actor_id: string or null` Tagged ID (`user_`/`svac_`) of the actor that archived this service account.
When this service account was created. + format: date-time + - `created_by_actor_id: string or null` Tagged ID (`user_`/`svac_`) of the actor that created this service account.
- `type: "service_account"` - - `"service_account"` + default: service_account - `updated_at: string` When this service account was last updated. + format: date-time + - `updated_by_actor_id: string or null` Tagged ID (`user_`/`svac_`) of the actor that last updated this service account. -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID \ -H 'anthropic-version: 2023-06-01' \ -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN" ``` -#### Response +### Response (200) ```json {