Information
- OpenAPI version:
3.0.0
To create an API key please make sure you first contact a ClicknClear admin so they can enable API Key support for your user account.
See the Login routes for more information on how to get Access Tokens and Refresh Tokens. There is a Postman script on the Login route that will automatically add the access and refresh tokens to your postman environment. To authenticate your requests to the ClicknClear API add the access token to the “Authorization” header with the value of “Bearer {ACCESS_TOKEN}”.
Example:
'Authorization': 'Bearer XXXXX'
Most endpoints will have example responses, however they may not always be 100% up to date. To find up to date, annotated typescript types you can directly use or view on Github, please see: https://github.com/ClicknClear/Public-Resources/tree/main/packages/lvs-types
Throughout our APIs we heavily utilise HTTP Codes to signify the status of the request. In general, a 4xx status code will have the error type and usually a message to help the developer know why the request failed. Below is an example of an erroneous login request.
{
"statusCode": 400,
"error": "Bad Request",
"message": "[\n {\n \"code\": \"invalid_type\",\n \"expected\": \"string\",\n \"received\": \"undefined\",\n \"path\": [\n \"apiKey\"\n ],\n \"message\": \"Required\"\n }\n]"
}
If you are consistently receiving 400s or even 500s and you’re not sure how to fix it please email the Tech Team email with steps to reproduce your issue.
Security scheme type: http