Refresh Access Token

Endpoint for refreshing access tokens when they expire.

Request Syntax

POST /auth/refresh HTTP/1.1
Host: api.excoinz.com
EXCOINZ_SECRET: ${SECRET_KEY}
Content-Type: application/json

Rather than running a schedule on a calendar cycle, the Check the exp value before the API request or have it run as a handling for error codes.

Request

Response

Sample

curl -X POST https://api.excoinz.com/auth/refresh \
     -H "EXCOINZ_SECRET: ${SECRET_KEY}" \
     -H "Content-Type: application/json" \
     -d '{
         "client_id": "YOUR_CLIENT_ID",
         "access": "YOUR_ACCESS",
         "refresh": "YOUR_REFRESH"
     }'

Last updated