Deplo
API Reference

Refresh access token using refresh token

POST
/auth/refresh
AuthorizationBearer <token>

Enter your JWT token

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

refreshToken*string

Refresh token received during authentication

Response Body

application/json

curl -X POST "https://loading/auth/refresh" \  -H "Content-Type: application/json" \  -d '{    "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."  }'
{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Empty