Archive Service Account changedapi/admin/service_accounts/archive
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.
Recorded here
Lines+16added
Lines−15removed
From line
1
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits4to this page, all time
# Archive Service Account ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Archive Service Account ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
The whole hunk
from line 1, old and new numbered
/
from line 1
1---
2title: Archive Service Account
3url: https://platform.claude.com/docs/en/api/admin/service_accounts/archive
4---
1# Archive Service Account
52
6## Archive Service Account
3**POST** `/v1/organizations/service_accounts/{service_account_id}/archive`
74
8**post** `/v1/organizations/service_accounts/{service_account_id}/archive`
9
105Archive a service account.
116
127Idempotent; re-archiving returns the service account with its original
from line 12
1712Requires an OAuth bearer or Console session; Admin API keys are not
1813accepted.
1914
20### Path Parameters
15## Path parameters
2116
2217- `service_account_id: string`
2318
2419 ID of the service account to archive.
2520
26### Header Parameters
21## Headers
2722
2823- `"anthropic-beta": optional array of string`
2924
from line 26
3126
3227 To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta.
3328
34### Returns
29## Returns
3530
36- `ServiceAccount object { id, archived_at, archived_by_actor_id, 8 more }`
31- `ServiceAccount object`
3732
3833 Named non-human identity within the caller's organization.
3934
from line 43
4843
4944 If set, this service account is archived.
5045
46 format: date-time
47
5148 - `archived_by_actor_id: string or null`
5249
5350 Tagged ID (`user_`/`svac_`) of the actor that archived this service account.
from line 53
5653
5754 When this service account was created.
5855
56 format: date-time
57
5958 - `created_by_actor_id: string or null`
6059
6160 Tagged ID (`user_`/`svac_`) of the actor that created this service account.
from line 77
7877
7978 - `type: "service_account"`
8079
81 - `"service_account"`
80 default: service_account
8281
8382 - `updated_at: string`
8483
8584 When this service account was last updated.
8685
86 format: date-time
87
8788 - `updated_by_actor_id: string or null`
8889
8990 Tagged ID (`user_`/`svac_`) of the actor that last updated this service account.
9091
91### Example
92## Example
9293
93```http
94```bash
9495curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/archive \
9596 -X POST \
9697 -H 'anthropic-version: 2023-06-01' \
from line 98
9798 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
9899```
99100
100#### Response
101### Response (200)
101102
102103```json
103104{
No line in this hunk matches that.