Get an AI agent
GET /ai_agents/{uuid}
/ai_agents/{uuid}Reads one AI agent: its draft (the definition being edited) and its current published version (the one that runs), with the state, who can use it, its spend cap and how much it is used.
Draft and published: draft is what update_ai_agent changes and nothing runs from it until it is published. published is the frozen version that automations and run_ai_agent use. When unpublished_changes is true they differ.
When to use: To see what an agent does (instructions, tools, limits) before asking it something, improving it or publishing it. Read it before update_ai_agent: a key of draft that is sent (for example tools) replaces that key as a whole.
When not to use: To find an agent by name use list_ai_agents. To see earlier published versions use list_ai_agent_versions. To see what an agent answered, use get_ai_agent_run.
Permissions: Requires the automations.read capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the agent. Get it from list_ai_agents.
uuidResponse Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/ai_agents/6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40" \ -H "X-Auth-Token: YOUR_API_KEY"{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "description": "string", "icon": "string", "status": "draft", "published_version": 1, "unpublished_changes": true, "access": "team", "period_cap": {}, "tool_types": [ "string" ], "draft": {}, "published": {}, "used_in": 0, "spent_last_30_days": {}, "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4", "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "archived_at": "2019-08-24T14:15:22Z"}