Create Enrollment URL
api/beta/user_profiles/create_enrollment_url
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/beta/user_profiles/create_enrollment_url Changed · +11 / -16 lines
# Create Enrollment URL ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Create Enrollment URL ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Create Enrollment URL -url: https://platform.claude.com/docs/en/api/beta/user_profiles/create_enrollment_url ---- +# Create Enrollment URL -## Create Enrollment URL +**POST** `/v1/user_profiles/{user_profile_id}/enrollment_url` -**post** `/v1/user_profiles/{user_profile_id}/enrollment_url` - Create Enrollment URL -### Path Parameters +## Path parameters - `user_profile_id: string` -### Header Parameters +## Headers - `"anthropic-beta": optional array of AnthropicBeta`
- `"mid-conversation-tool-changes-2026-07-01"` -### Returns +## Returns -- `BetaUserProfileEnrollmentURL object { expires_at, type, url }` +- `BetaUserProfileEnrollmentURL object` - `expires_at: string` A timestamp in RFC 3339 format + format: date-time + - `type: "enrollment_url"` Object type. Always `enrollment_url`. - - `"enrollment_url"` - - `url: string` Enrollment URL to send to the end user. Valid until `expires_at`. -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/user_profiles/$USER_PROFILE_ID/enrollment_url \ -X POST \ -H 'anthropic-version: 2023-06-01' \
-H "X-Api-Key: $ANTHROPIC_API_KEY" ``` -#### Response +### Response (200) ```json {