Claude Platform Docs

URL действий

Создать URL действия
POST/v1/user_profiles/{user_profile_id}/action_urls
Models
BetaUserProfileAction = BetaUserProfileEnrollEndUserAction

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

One of the following:
BetaUserProfileEnrollEndUserAction object{ type: "enroll_end_user" }

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

type: "enroll_end_user"
BetaUserProfileActionURL object{ type: "user_profile_action_url", expires_at, url }

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

type: "user_profile_action_url"

Object type. Always user_profile_action_url.

expires_at: string

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.

BetaUserProfileEnrollEndUserAction object{ type: "enroll_end_user" }

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

type: "enroll_end_user"