Pinter
ENID
Authentication
View as Markdown

Refresh Expired Access Token

POST/api/identity/token/refresh

Overview

Issues a fresh access_token using an unexpired refresh_token without requiring the user to re-enter credentials.

Authentication & Headers

  • Auth: Public / Refresh Token
  • Required Header: API-Version: 1

Parameters & Request Body

  • refresh_token (string, required): The long-lived refresh token obtained during initial login.

Request body

application/json

refresh_tokenstringrequired
{
  "refresh_token": "string"
}

Responses

200 Token refreshed successfully

401 Refresh token is invalid or expired

422 Validation Error

detailobject[]
detail[].locstring | integer[]required
detail[].msgstringrequired
detail[].typestringrequired
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Example

curl -X POST "$PINTER_URL/api/identity/token/refresh" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"refresh_token":"string"}'