Crea URL di registrazione
POST/v1/user_profiles/{user_profile_id}/enrollment_url
Create a link that sends the profile's end customer to the Verification Portal from Claude Platform on AWS.
On the Claude API, create an action URL instead. See Send an end customer a link to the Verification Portal for when to create the link and what the end customer sees.
Parameters
Returns
Crea URL di registrazione
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
beta_user_profile_enrollment_url = client.beta.user_profiles.create_enrollment_url(
user_profile_id="uprof_011CZkZCu8hGbp5mYRQgUmz9",
)
print(beta_user_profile_enrollment_url.expires_at)Response 200
{
"expires_at": "2026-03-15T10:15:00Z",
"type": "enrollment_url",
"url": "https://platform.claude.com/user-profiles/enrollment/M3J0bGJxZ2ppMnptbnB1"
}Returns Examples
Response 200
{
"expires_at": "2026-03-15T10:15:00Z",
"type": "enrollment_url",
"url": "https://platform.claude.com/user-profiles/enrollment/M3J0bGJxZ2ppMnptbnB1"
}