curl or Python with the requests library.
The code samples on this page use the base URL https://app.us.goclicks.ai/api/orchestrator/v1.
1
Mint an API key
In the Clicks app, open Agents → your agent → API access → Create key. Clicks
shows the full key (
ak_…) only once, so copy it and store it in a secret manager.
You can’t retrieve the key later. If you lose it, create a new one.shell
2
Create an agent run
Set The response is
template_id to the ID of the agent the key belongs to. The key determines which
agent runs; the field is only a cross-check. You can find the ID at the top of the same
API access tab.201 with only the run’s ID. Because execution is asynchronous,
everything else comes from polling:201 Created
3
Poll until it finishes
Poll every few seconds while
loop_status is running. Runs commonly take several
minutes. For the status values and backoff guidance, see
Agent lifecycle and polling.4
Read the transcript
The transcript includes only the inputs the agent accepted and each turn’s final output.
It doesn’t include intermediate tool steps. An empty transcript early in a run is normal.