Morpheus API Gateway LogoMorpheus API Gateway
Auth

Refresh Token

Get a new access token using a refresh token.

POST
/api/v1/auth/refresh

Authorization

AuthorizationRequiredBearer <token>

Enter the JWT token you received from the login endpoint (without 'Bearer' prefix)

In: header

Request Body

application/jsonRequired
refresh_tokenRequiredRefresh Token

Response Body

Schema for token response.

TypeScript Definitions

Use the response body type in TypeScript.

access_tokenRequiredAccess Token
refresh_tokenRequiredRefresh Token
token_typeToken Type
Default: "bearer"
curl -X POST "http://api.mor.org/api/v1/auth/refresh" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "refresh_token": "string"
  }'
{
  "access_token": "string",
  "refresh_token": "string",
  "token_type": "bearer"
}

How is this guide?