POST
/
v1
/
organizations
/
workspaces
/
{workspace_id}
/
members

Headers

x-api-key
string
required

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.

anthropic-version
string
required

The version of the Anthropic API you want to use.

Read more about versioning and our version history here.

Path Parameters

workspace_id
string
required

ID of the Workspace.

Body

application/json
user_id
string
required

ID of the User.

workspace_role
enum<string>
required

Role of the new Workspace Member. Cannot be "workspace_billing".

Available options:
workspace_user,
workspace_developer,
workspace_admin

Response

200 - application/json
type
enum<string>
default: workspace_memberrequired

Object type.

For Workspace Members, this is always "workspace_member".

Available options:
workspace_member
user_id
string
required

ID of the User.

workspace_id
string
required

ID of the Workspace.

workspace_role
enum<string>
required

Role of the Workspace Member.

Available options:
workspace_user,
workspace_developer,
workspace_admin,
workspace_billing