Token

Use this API endpoint to manipulate your API token.

Current version: 1

Refresh

Use this API endpoint to refresh your API token. Refreshing your API token will generate a new access_token to use, and will extend the expires_at date. You can refresh your API token at any time.

URL
PUT /api/token/:id/refresh
PATCH /api/token/:id/refresh

Request

Header

Use the refresh_token to authenticate.

Authorization: Token token="Lmn987Opq654Rst321Uv"
Body

This request does not need a body.

Response

Status
200 - OK
Body
{
  "api_token": {
    "id": "Abc123",
    "access_token": "Abc123Def456Ghi789Jk",
    "expires_at": "2024-01-01T13:00:00.000+01:00"
  }
}
<?xml version="1.0" encoding="UTF-8"?>
<api-token>
  <id>Abc123</id>
  <access-token>Abc123Def456Ghi789Jk</access-token>
  <expires-at type="dateTime">2024-01-01T13:00:00+01:00</expires-at>
</api-token>