POST
/
auth
/
refresh-token
curl --request POST \
  --url https://scribe-api.puppilot.co/auth/refresh-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-Version: <x-api-version>' \
  --data '{
  "token": "<string>"
}'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "token_type": "bearer"
}

Request Body

  • token (string) - The refresh token issued during the initial authentication process. Used to obtain a new access token without requiring the user to sign in again.

Example Request

{
  "token": "a_refresh_token",
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-API-Version
string
required

API versioning is required. Include the header X-API-Version with current version value in all requests.

Example:

"v1"

Body

application/json
token
string
required

Response

200 - application/json
access_token
string
refresh_token
string
token_type
string
Example:

"bearer"