Create Action URL

Changed on
post/v1/user_profiles/{user_profile_id}/action_urls

Request

  • Base URL
    https://api.anthropic.com
  • Auth
    none declared

Path parameters

user_profile_idstring required

The ID of the user profile the action is for (uprof_...).

Headers

anthropic-versionstring

The version of the Claude API you want to use.

Read more about versioning and our version history here.

anthropic-workspace-idstring

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.

Request body

Response

Successful response (OK)

type'user_profile_action_url' required

Object type. Always user_profile_action_url.

urlstring required

The URL to give to the person who takes the action. Anyone who holds it can open it until expires_at.

expires_atstring date-time required

A timestamp in RFC 3339 format

Example response

{
  "type": "user_profile_action_url",
  "url": "https://platform.claude.com/user-profiles/enrollment/M3J0bGJxZ2ppMnptbnB1",
  "expires_at": "2026-03-15T10:15:00Z"
}

Changes