Authentication

Refresh access token

A unexpired refresh token must be used. Returns a new access token and refresh token.

POST
/auth/refresh
refresh_tokenRefresh Token

A valid refresh token.

Response Body

Examples

curl -X POST "https://v2.api.piktid.com/auth/refresh" \
  -H "Content-Type: application/json" \
  -d '{
    "refresh_token": "string"
  }'
{
  "token": "string",
  "expiration_date": "string",
  "refresh_token": "string",
  "refresh_expiration": "string"
}
{
  "error": "Invalid request",
  "detail": [
    {
      "field": null,
      "message": "string",
      "position": "query"
    }
  ]
}
Empty