Skip to Content
Users

Refresh an existing user access token

Deprecated

POST
/users/refresh-token

Header Parameters

Accept*string

application/json

Content-Type*string

application/json

Request Body

A JSON object containing the resource data

application/json
  1. body
refresh_token*string

A token to be used after the original access token has expired, to issue a new token without requiring a new request to the /users/login endpoint.

Response Body

Ok

application/json
  1. response
token_type*string

The type of the authorization token being issued

expires_in*integer

The number of seconds remaining to the token expiration time, to be counted since the token issue date and time

access_token*string

The issued JWT access token

refresh_token*string

A token to be used after the original access token has expired, to issue a new token without requiring a new request to the /users/login endpoint

Example Request
curl -X POST 'https://api.devopness.com/users/refresh-token' \  -H 'Accept: application/json' \  -H 'Content-Type: application/json' \  -H 'Content-Type: application/json' \  -d '{  "refresh_token": "def50200a757a1c4dbc4859a4c47195632f4df60ebb521ac5a28a0b7553101f08f8b9..."}'
Example Response
{  "token_type": "Bearer",  "expires_in": 3600,  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImYwYjQxZjk1MTdiYWExOTg4Zjk...",  "refresh_token": "def50200a757a1c4dbc4859a4c47195632f4df60ebb521ac5a28a0b7553101f08f8b9..."}