Refresh a user token

POST /api/v2/refresh

Refresh a user token.

application/json

Body

  • refresh string

    The refresh token you got when you logged in.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • token string

      The bearer token you should use for future requests.

    • refresh string

      The refresh token you should use to get a new token after the current one expires.

    • expiry string(date-time)

      The time the token expires. This is always 12 hours after the token was issued.

POST /api/v2/refresh
curl \
 -X POST https://api.hcgateway.shuchir.dev/api/v2/refresh \
 -H "Content-Type: application/json" \
 -d '{"refresh":"string"}'
Request examples
{
  "refresh": "string"
}
Response examples (200)
{
  "token": "string",
  "refresh": "string",
  "expiry": "2024-05-04T09:42:00+00:00"
}