Create an API key
Open the API access tab
In the Clicks app, open the agent you want to call and go to its API access tab.
Create the key
Click Create key and give it a name you’ll recognize later. Use one key per integration, so you can rotate or revoke each one independently.
Send the key
Send the key as a Bearer token on every request:Authenticate a request
https://app.us.goclicks.ai/v1.
If the Authorization header is missing or isn’t a Bearer credential, the API also accepts the key in an X-API-Key header. If a request includes both, the API uses the Bearer token.
Scoping
Each key belongs to exactly one organization and one agent. The key determines which agent runs; the request can’t override it. Iftemplate_id doesn’t match the key’s agent, the API returns 403. A run that belongs to another organization or agent returns 404, the same response as a nonexistent ID.
Key lifecycle
On the same tab, you can disable, re-enable, and delete keys. While a key is disabled, requests fail with401 Invalid API key; you can re-enable it later. Deleting a key is permanent. The key’s Last used timestamp in the app updates within a few seconds of each request. Use it to find keys that are no longer in use. Auth failures are covered in Errors and retries.