Claude Platform Docs

Create Enrollment URL

$ ant beta:user-profiles create-enrollment-url
POST/v1/user_profiles/{user_profile_id}/enrollment_url

Create Enrollment URL

Parameters
--user-profile-id: string

Path parameter user_profile_id

--beta: optional array of AnthropicBeta

Optional header to specify the beta version(s) you want to use.

--workspace-id: optional string

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Returns
beta_user_profile_enrollment_url: object{ type: "enrollment_url", expires_at, url }
type: "enrollment_url"

Object type. Always enrollment_url.

expires_at: string

A timestamp in RFC 3339 format

formatdate-time
url: string

Enrollment URL to send to the end user. Valid until expires_at.

Create Enrollment URL
ant beta:user-profiles create-enrollment-url \
  --api-key my-anthropic-api-key \
  --user-profile-id uprof_011CZkZCu8hGbp5mYRQgUmz9
Returns Examples
Response 200
{
  "expires_at": "2026-03-15T10:15:00Z",
  "type": "enrollment_url",
  "url": "https://platform.claude.com/user-profiles/enrollment/M3J0bGJxZ2ppMnptbnB1"
}