Create Enrollment URL
beta.user_profiles.create_enrollment_url(strid, UserProfileCreateEnrollmentURLParams**kwargs) -> BetaUserProfileEnrollmentURL
POST/v1/user_profiles/{id}/enrollment_url
Create Enrollment URL
Parameters
id: str
Returns
Create Enrollment URL
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(
id="id",
)
print(beta_user_profile_enrollment_url.expires_at)Response 200
{
"expires_at": "2019-12-27T18:11:19.117Z",
"type": "type",
"url": "url"
}Returns Examples
Response 200
{
"expires_at": "2019-12-27T18:11:19.117Z",
"type": "type",
"url": "url"
}