Claude Platform Docs

Action URLs

Create Action URL
BetaUserProfileActionUrl Beta.UserProfiles.ActionUrls.Create(parameters, cancellationToken = default)
POST/v1/user_profiles/{user_profile_id}/action_urls
Models
class BetaUserProfileAction: union

The action that the person who opens the URL takes, discriminated by type.

class BetaUserProfileEnrollEndUserAction { Type = "enroll_end_user"; }

The end-user that the profile represents enrolls in a program.

JsonElement Type = "enroll_end_user"
class BetaUserProfileActionUrl { Type = "user_profile_action_url"; ExpiresAt; Url; }

A URL to give to the person who takes the requested action.

JsonElement Type = "user_profile_action_url"

Object type. Always user_profile_action_url.

required DateTimeOffset ExpiresAt

When the URL stops working, in RFC 3339 format.

formatdate-time
required string Url

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

class BetaUserProfileEnrollEndUserAction { Type = "enroll_end_user"; }

The end-user that the profile represents enrolls in a program.

JsonElement Type = "enroll_end_user"