Get and use an Authorization Token

Example Python request (replace CLIENT_ID and CLIENT_SECRET):

import requests

data = {
    'grant_type': 'client_credentials',
}

response = requests.post('https://api.certn.co/token/', data=data, auth=('CLIENTID', 'CLIENTSECRET'))
  • Replace TOKEN with your API key in the following header:

{ 'Authorization': 'Bearer TOKEN' }

Include this header in every call to our API, and keep it secure. It is your access key.‌

Token lifespan

Token lifespan is indicated by the expires_in parameter returned when a new token is requested. The default value is 36000 seconds (10 hours).

Last updated