cURL
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>" }
Get a new access token using a refresh token
{ "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzoxMjM0NTY3ODkwIiwidHlwIjoiSldUIn0...", "token_type": "bearer", "expires_in": 3600, "refresh_token": "rt_abc123def456ghi789jkl", "id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzoxMjM0NTY3ODkwIiwidHlwIjoiSldUIn0..." }
API key for authentication
Default Response
The response is of type object.
object