Create Clerk actor token
Create an impersonation actor token for a user in a connected Clerk application.
← All Clerk endpoints · Capability overview
/v1/clerk/actor-tokenshttps://api.vee3.io/v1/clerk/actor-tokens
Create an impersonation actor token for a user in a connected Clerk application.
Authorization
Send your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
MCP
The same capability is available as an MCP tool on Vee3 hosted MCP.
Tool name
clerk.create_actor_tokenParameters5 fields
clerk_instance_idstringOptionalClerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.
user_idstringRequiredClerk user id (user_...) of the user being impersonated.
actor_substringRequiredClerk user id (user_...) of the impersonating actor (maps to actor.sub).
expires_in_secondsintegerOptionalActor token lifetime in seconds (minimum 1). Defaults to 3600 (1 hour).
min 1
session_max_duration_in_secondsintegerOptionalMaximum duration in seconds for the session created from this token (minimum 1). Defaults to 1800 (30 minutes).
min 1
Response10 fields
actor_tokenobject9 fieldsCreated Clerk actor token object from the Backend API.
actor_tokenobjectidstringActor token id.
user_idstringClerk user id (user_...) being impersonated.
statusstringToken status (pending, accepted, or revoked).
actorobject1 fieldActor payload; includes sub with the impersonating user id.
actorobjectsubstringClerk user id (user_...) of the impersonating actor.
tokenstringActor token secret. Treat as high-privilege — do not log.
urlstringOptional sign-in URL that includes the actor token.
created_atintegerUnix timestamp in milliseconds when the token was created.
updated_atintegerUnix timestamp in milliseconds when the token was last updated.
HTTP errors: clerk_connection_required, clerk_connection_not_found, clerk_connection_invalid, validation_error, unauthorized, payment_required