Download OpenAPI specification:Download
The Clerk REST Backend API, meant to be accessed by backend servers.
When the API changes in a way that isn't compatible with older versions, a new version is released.
Each version is identified by its release date, e.g. 2021-02-05
. For more information, please see Clerk API Versions.
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
}