POST /auth/token

Exchange a refresh token for a new access token.

application/json

Body Required

  • refreshToken string Required

Responses

  • 200 application/json

    New tokens issued

    Hide response attributes Show response attributes object
    • token string
    • refreshToken string
    • user object
      Hide user attributes Show user attributes object
      • userId string(uuid)
      • companyId string(uuid)
      • role string
      • email string(email)
POST /auth/token
curl \
 --request POST 'https://api.pairfon.com/auth/token' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"refreshToken":"string"}'
Request examples
{
  "refreshToken": "string"
}
Response examples (200)
{
  "token": "string",
  "refreshToken": "string",
  "user": {
    "userId": "string",
    "companyId": "string",
    "role": "string",
    "email": "hello@example.com"
  }
}