POST
POST /v1/organizations/invites?beta=true — Claude API
Beta
Anthropic API key (required); https://api.anthropic.com
Claude APICreate Invite
- 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
→ 244 tokens · Vary: Accept
→ 244 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/invites?beta=true' \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H 'anthropic-version: 2023-06-01' \ -H 'Content-Type: application/json' \ -d '{ "email": "example-email", "role": "billing"}'
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | string | Yes | Email of the User. | |
| rbac_group_ids | body | string[] | No | RBAC group IDs to assign to the User when the Invite is accepted. A non-empty array is accepted only for a Claude Enterprise organization with RBAC groups, and requires the key to carry the `write:rbac_groups` scope. |
| role | body | string | Yes | Role for the invited User. The accepted values depend on the organization type. Console and API organizations accept `user`, `developer`, `billing`, and `claude_code_user`; `admin` cannot be assigned through the API. Claude Enterprise organizations accept `user` and `managed`. |
Response 200 OK
{
"accepted_at": "2026-09-03T00:00:00Z",
"email": "string",
"expires_at": "2026-09-03T00:00:00Z",
"id": "string",
"invited_at": "2026-09-03T00:00:00Z",
"rbac_group_ids": [
"string"
],
"role": "admin",
"status": "accepted",
"type": "invite"
} Get a free Claude API key → sponsored Affiliate link - we may earn a commission, at no extra cost to you.