POST
/
v1
/
oauth
/
refresh
curl --request POST \
  --url https://public.api.collectpure.com/v1/oauth/refresh \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "refresh_token": "<string>",
  "public_key": "<string>",
  "secret_key": "<string>"
}'
{
  "access_token": "<string>",
  "token_type": "bearer",
  "expires_in": 123,
  "id_token": "<string>",
  "refresh_token": "<string>"
}

This endpoint allows you to refresh an expired access token by providing a valid refresh token along with your OAuth application credentials.

Response Example

{
  "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzoxMjM0NTY3ODkwIiwidHlwIjoiSldUIn0...",
  "token_type": "bearer",
  "expires_in": 3600,
  "refresh_token": "rt_abc123def456ghi789jkl",
  "id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzoxMjM0NTY3ODkwIiwidHlwIjoiSldUIn0..."
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json

Response

200
application/json

Default Response

The response is of type object.