Criar URL de inscrição
POST/v1/user_profiles/{user_profile_id}/enrollment_url
No Claude Platform on AWS, crie um link que leva o cliente final do perfil ao Verification Portal.
Na Claude API, crie uma URL de ação em vez disso. Consulte Enviar a um cliente final um link para o Verification Portal para saber quando criar o link e o que o cliente final vê.
Parameters
Returns
Criar URL de inscrição
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go/v2"
"github.com/anthropics/anthropic-sdk-go/v2/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
betaUserProfileEnrollmentURL, err := client.Beta.UserProfiles.NewEnrollmentURL(
context.TODO(),
"uprof_011CZkZCu8hGbp5mYRQgUmz9",
anthropic.BetaUserProfileNewEnrollmentURLParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaUserProfileEnrollmentURL.ExpiresAt)
}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"
}