建立動作 URL
POST/v1/user_profiles/{user_profile_id}/action_urls
建立連結,將該設定檔的終端客戶導向 Verification Portal。
請參閱傳送 Verification Portal 連結給終端客戶,了解何時建立連結,以及終端客戶會看到的內容。
Parameters
Returns
建立動作 URL
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
beta_user_profile_action_url = anthropic.beta.user_profiles.action_urls.create(
"uprof_011CZkZCu8hGbp5mYRQgUmz9",
action: {type: :enroll_end_user}
)
puts(beta_user_profile_action_url)Response 200
{
"expires_at": "2026-03-15T10:15:00Z",
"type": "user_profile_action_url",
"url": "https://platform.claude.com/user-profiles/enrollment/M3J0bGJxZ2ppMnptbnB1"
}Returns Examples
Response 200
{
"expires_at": "2026-03-15T10:15:00Z",
"type": "user_profile_action_url",
"url": "https://platform.claude.com/user-profiles/enrollment/M3J0bGJxZ2ppMnptbnB1"
}