Create Enrollment URL
client.Beta.UserProfiles.NewEnrollmentURL(ctx, id, body) (*BetaUserProfileEnrollmentURL, error)
POST/v1/user_profiles/{id}/enrollment_url
Create Enrollment URL
Parameters
id string
Returns
Create Enrollment URL
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
betaUserProfileEnrollmentURL, err := client.Beta.UserProfiles.NewEnrollmentURL(
context.TODO(),
"id",
anthropic.BetaUserProfileNewEnrollmentURLParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaUserProfileEnrollmentURL.ExpiresAt)
}
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"
}