Claude Platform Docs

Action URLs

Create Action URL
client.Beta.UserProfiles.ActionURLs.New(ctx, userProfileID, params) (*BetaUserProfileActionURL, error)
POST/v1/user_profiles/{user_profile_id}/action_urls
Models
type BetaUserProfileActionUnionParam interface{…}

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

One of the following:
type BetaUserProfileEnrollEndUserActionParam struct { Type: "enroll_end_user" }

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

Type EnrollEndUser
type BetaUserProfileActionURL struct { Type: "user_profile_action_url"; ExpiresAt; URL }

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

Type UserProfileActionURL

Object type. Always user_profile_action_url.

ExpiresAt Time

When the URL stops working, in RFC 3339 format.

formatdate-time
URL string

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

type BetaUserProfileEnrollEndUserActionParam struct { Type: "enroll_end_user" }

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

Type EnrollEndUser