Settings
Create API key
Use the Create API keys endpoint to generate a new API key for your client.
API keys are tokens used to control access to the API. Include this token in the Authorization header parameter when making API calls, following the word "Basic" and a space with your API key.
You can read more about authentication at Codat and managing API keys via the Portal UI or API.
Tips and pitfalls
- Your first API key is created for you. Access this key via Codat's Portal.
- If you require multiple API keys, perform multiple calls to the Create API keys endpoint.
- The number of API keys is limited to 10. If you have reached the maximum amount of keys, use the Delete API key endpoint to delete an unused key first.
post/apiKeys
Request body
Response
Success
Example response
{
"id": "e288a972-b402-4b21-93f9-b5335ae5679c",
"name": "azure-invoice-finance-processor",
"apiKey": "ztHQGvnC4XN2CgUhaDWEG4ySLUJqWjp7zkbZkGHd",
"createdDate": "2022-10-23T00:00:00Z"
}