POST /api/auth/refresh
application/json

Body Required

  • refresh_token string Required

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • access_token string Required

      Token for API access

    • token_type string Required

      Token Type

    • scopes array[string]

      User scopes

      Default value is [] (empty).

    • expires_in integer Required

      Access Token lifetime in seconds

    • refresh_token string Required

      Token for updating the access token

  • 503 application/json

    Database connection error

    Hide response attribute Show response attribute object
    • detail string

      Default value is Can't connect to MySQL server on '[SERVER]'.

  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
      • loc array[string | integer] Required
      • msg string Required
      • type string Required
POST /api/auth/refresh
curl \
 -X POST https://lztup.toil.cc/api/auth/refresh \
 -H "Content-Type: application/json" \
 -d '{"refresh_token":"string"}'
Request example
{
  "refresh_token": "string"
}
Request examples
{
  "refresh_token": "string"
}
Response examples (200)
{
  "access_token": "string",
  "token_type": "string",
  "scopes": [],
  "expires_in": 42,
  "refresh_token": "string"
}
Response examples (503)
{
  "detail": "Can't connect to MySQL server on '[SERVER]'"
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}