Crea URL di azione
POST/v1/user_profiles/{user_profile_id}/action_urls
Crea URL di azione
Parameters
Returns
Crea URL di azione
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.userprofiles.actionurls.ActionUrlCreateParams;
import com.anthropic.models.beta.userprofiles.actionurls.BetaUserProfileActionUrl;
import com.anthropic.models.beta.userprofiles.actionurls.BetaUserProfileEnrollEndUserAction;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
ActionUrlCreateParams params = ActionUrlCreateParams.builder()
.userProfileId("uprof_011CZkZCu8hGbp5mYRQgUmz9")
.action(BetaUserProfileEnrollEndUserAction.builder().build())
.build();
BetaUserProfileActionUrl betaUserProfileActionUrl = client.beta().userProfiles().actionUrls().create(params);
}
}Response 200
{
"expires_at": "2026-03-15T10:15:00Z",
"type": "user_profile_action_url",
"url": "https://platform.claude.com/user-profiles/enrollment/M3J0bGJxZ2ppMnptbnB1"
}Returns Examples
Response 200
{
"expires_at": "2026-03-15T10:15:00Z",
"type": "user_profile_action_url",
"url": "https://platform.claude.com/user-profiles/enrollment/M3J0bGJxZ2ppMnptbnB1"
}