Create Enrollment URL
POST/v1/user_profiles/{user_profile_id}/enrollment_url
Create Enrollment URL
Parameters
Returns
Create Enrollment URL
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});
const betaUserProfileEnrollmentURL = await client.beta.userProfiles.createEnrollmentURL(
"uprof_011CZkZCu8hGbp5mYRQgUmz9"
);
console.log(betaUserProfileEnrollmentURL.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"
}