Download OpenAPI specification:Download
The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
Allow your users to sign in on behalf of other users.
Create an actor token that can be used to impersonate the given user.
The actor
parameter needs to include at least a "sub" key whose value is the ID of the actor (impersonating) user.
Success
Request was not successful
Payment required
Invalid request parameters
{- "user_id": "string",
- "actor": {
- "sub": "user_2OEpKhcCN1Lat9NQ0G6puh7q5Rb"
}, - "expires_in_seconds": 3600,
- "session_max_duration_in_seconds": 1800
}
{- "object": "actor_token",
- "id": "string",
- "status": "pending",
- "user_id": "string",
- "actor": { },
- "token": "string",
- "url": "string",
- "created_at": 0,
- "updated_at": 0
}
Revokes a pending actor token.
Success
Request was not successful
Resource not found
{- "object": "actor_token",
- "id": "string",
- "status": "pending",
- "user_id": "string",
- "actor": { },
- "token": "string",
- "url": "string",
- "created_at": 0,
- "updated_at": 0
}