cURL
curl --request POST \ --url https://api.bunship.com/api/v1/auth/refresh \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "refreshToken": "<string>" } '
{ "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expiresIn": 900 }
Exchange a refresh token for a new token pair
401
AUTHENTICATION_ERROR
curl -X POST https://api.bunship.com/api/v1/auth/refresh \ -H "Content-Type: application/json" \ -d '{ "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }'