cURL
curl --request POST \ --url https://api.example.com/api/v2/auth/refresh \ --header 'Content-Type: application/json' \ --data ' { "refresh_token": "<string>" } '
Get a new access token using a refresh token
curl -X POST https://neuralbox.top/api/v2/auth/refresh \ -H "Content-Type: application/json" \ -d '{"refresh_token": "eyJhbGciOiJIUzI1NiJ9..."}'
{ "access_token": "eyJhbGciOiJIUzI1NiJ9...", "refresh_token": "eyJhbGciOiJIUzI1NiJ9...", "token_type": "bearer" }
401