Skip to content

Authentication

In order to make REST calls to the Kero API:

  1. Ensure that Kero has whitelisted the IPs of the various environments on your end from which you intend to connect. This should be the first step in the integration process that is discussed with your Kero representative.

  2. Make a request to the /auth route below using your Kero credentials to retrieve an authentication and a refresh token.

  3. Save these tokens for future usage in all interactions with the Kero API.

  4. Refresh your authentication token once per 24 hours using your refresh token and the /refresh route below. Your refresh token expires every 6 months.

Use your Kero API credentials to request an authentication and a refresh token.

FieldTypeRequiredDescription
namestringusername from credentials
passwordstringpassword from credentials
{
"name": "username",
"password": "some_password123!@#"
}
FieldTypeRequiredDescription
auth_tokenstringauthentication token for further interactions with the Kero API
access_expires_atintegertimestamp in Unix seconds for when auth_token expires
refresh_tokenstringtoken for refreshing auth_token using the /refresh route
refresh_expires_atintegertimestamp in Unix seconds for when refresh_token expires

Use your current refresh_token to request a new auth_token.

FieldTypeRequiredDescription
tokenheaderauthentication token provided from /auth route
{
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRob3JpemVkIjp0cnVlLCJjaGF0X2Jhbm5lZF90aWxsIjpudWxsLCJjdXJyZW5jeSI6IlVTRCIsImV4cCI6MTY5MDUzNTQyMSwiaXNfYmFubmVkIjpmYWxzZSwiaXNfd2hpdGVfbGlzdGVkIjpmYWxzZSwicGFydG5lcl9uYW1lIjoiQmVuZGVyIiwic3lzdGVtX25hbWUiOiJjZ18yMTU1MSIsInR5cGUiOiJSRUZSRVNIIiwidXNlcl9pZCI6MTQzLCJ1c2VyX3Rva2VuIjoiNERDMEMzRjA3N0VFNUMxRkQ2RDlDODk0MzlDNThGMDc1RjFDM0YxNCIsInVzZXJfdG9waWMiOiI3NjAxMDA1ZC05NjgwLTQ5NDctOTViOC0xMDU1ZGJhNGUzOWYiLCJ1c2VybmFtZSI6IkRpbWFLIn0.XSTGEdniuLXB6UP3mefV8CVLoCJUjGHWYl0WbMH-wd0"
}
FieldTypeRequiredDescription
auth_tokenstringauthentication token for further interactions with the Kero API
access_expires_atintegertimestamp in Unix seconds for when auth_token expires
refresh_tokenstringtoken for refreshing auth_token using the /refresh route
refresh_expires_atintegertimestamp in Unix seconds for when refresh_token expires