Skip to main content
To follow this quickstart, you need a Clicks account with a configured agent, that agent’s template ID (shown on its API access tab), and 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 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.
The response is 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.
Always send input_text. Without it, the API creates the run but never starts a turn: loop_status stays running until someone provides input in the Clicks app.