Get a list of all user’s permanent tokens
POST /tokens
Description
The method returns a list of all active permanent tokens of the user. A JWT token in the header is required for access.
Request format
- HTTP method:
POST - URL:
/tokens - Content-Type:
application/json - Authorization: required
Request parameters
| Parameter | Type | Where passed | Required | Description |
|---|---|---|---|---|
| token | string | Header | ✅ | User JWT token |
Example request (cURL)
curl -X POST "https://api.enface.ai/tokens"
-H "Content-Type: application/json"
-H "Authorization: Bearer jwt.temporary.token" Response examples
Success (200 OK)
[
{
"expires": "2020-04-27T19:05:18.067Z",
"id": "15979340-8293-11ea-8a91-30916e1c4b90"
}
] Error (401 Unauthorized)
{
"message": "access denied",
"status": "error"
}