Authentication

List API tokens

Lists all API tokens for the current user. The returned tokens only contain a hashed version of the access token and are not usable as-is.

GET
/auth/token
AuthorizationBearer <token>

Token-based authentication using access tokens.

In: header

Query Parameters

page?Page

Page number.

Default1
Range1 <= value
per_page?Per Page

Number of items per page.

Default10
Range1 <= value <= 100
include_expired?Include Expired

Whether to include expired tokens.

Defaultfalse

Response Body

Examples

curl -X GET "https://v2.api.piktid.com/auth/token?page=1&per_page=10&include_expired=false"
{
  "pagination": {
    "page": 0,
    "per_page": 0,
    "total": 0,
    "pages": 0,
    "has_next": true,
    "has_prev": true
  },
  "tokens": [
    {
      "token_id": "string",
      "expiration_date": "string"
    }
  ]
}
Empty
Empty