Manage your AI agents with the API
Create, read, update, clone and delete agents from code with the v2 API, so you can script setup across many agents.
You can now manage your agents from code. The v2 API covers the whole life of an agent, which helps if you run many of them or want your setup to live in a script.
What you can do
- List the agents in a workspace and read one by its
agt_ID - Create an agent with a name, type, model, language and instructions
- Update an agent, including its settings and styles
- Clone an agent to start a new one from a working configuration
- Delete an agent you no longer need
- Read analytics for an agent
- Turn Auto-retrain on or off
A first request
Create an API key under Settings > API keys. It starts with oc_live_ for production or oc_test_ for testing, and it is shown only once.
curl https://api.askocto.co/v2/agents \
-H "Authorization: Bearer $OCTO_API_KEY"
The response is { "data": [...], "nextCursor": ... }. Pass cursor to fetch the next page.
Good to know
Keys act on the whole workspace, so store them on your server and never in a browser or an app. Errors return a code, a message and a requestId you can quote to support.
Start with the agents reference and the authentication guide.
See every update in one place.