apicheats.dev anthropic/llms.txt Raw .md
POST

POST /v1/organizations/service_accounts?beta=true — Claude API

Beta

Anthropic API key (required); https://api.anthropic.com

Claude API

Create Service Account

Base URL
https://api.anthropic.com
Auth
x-api-key: <ANTHROPIC_API_KEY>
Last verified
2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 223 tokens · Vary: Accept

Critical gotchas

Authentication uses the x-api-key header and requests also require an anthropic-version header.

The official OpenAPI URL is discovered from the SDK repository manifest and must remain under Anthropic's trusted Stainless storage prefix.

cURL

curl -X POST 'https://api.anthropic.com/v1/organizations/service_accounts?beta=true' \  -H "x-api-key: $ANTHROPIC_API_KEY" \  -H 'anthropic-version: 2023-06-01' \  -H 'Content-Type: application/json' \  -d '{  "name": "example-name"}'

Parameters

Name In Type Required Description
description body string No Optional free-text description.
name body string Yes Slug identifier (lowercase, digits, hyphens). Unique within the organization; a duplicate name returns 409.
organization_role body string No Org-level role. Defaults to `developer`.

Response 200 OK

{
  "archived_at": "2026-09-03T00:00:00Z",
  "archived_by_actor_id": "string",
  "created_at": "2026-09-03T00:00:00Z",
  "created_by_actor_id": "string",
  "description": "string",
  "id": "string",
  "name": "string",
  "organization_role": "admin",
  "type": "service_account",
  "updated_at": "2026-09-03T00:00:00Z",
  "updated_by_actor_id": "string"
}
Get a free Claude API key → sponsored

Affiliate link - we may earn a commission, at no extra cost to you.