Get Started
Generate a new Access token
Generate a Secret key
Go to the settings page and generate a secret key.
Use the secret key to exchange for an Access token
curl --request POST \
--url https://api.public.com/userapiauthservice/personal/access-tokens \
--header 'Content-Type: application/json' \
--data '{
"validityInMinutes": 60,
"secret": "YOUR_SECRET_KEY"
}'
accessToken is returned in the response:
{
"accessToken": "YOUR_ACCESS_TOKEN"
}
Authenticate your request
Include the accessToken in the Authorization header to authenticate any API request:
Authorization: Bearer YOUR_ACCESS_TOKEN