cURL
curl --request GET \ --url https://agents-api.kolena.com/api/v1/client/agents/{agent_id} \ --header 'Authorization: Bearer <token>'
{ "id": 123, "workspace_id": 123, "name": "<string>", "objective": "<string>", "created": "2023-11-07T05:31:56Z", "updated": "2023-11-07T05:31:56Z", "created_by": "<string>", "n_runs": 123, "prompts": [ { "created": "2025-01-01T00:00:00", "documents": [], "last_updated_by": "user@example.com", "name": "Account number", "options": { "code_generation": false, "prompt": "Find the account number", "type": "string", "web_search": false }, "updated": "2025-01-01T00:00:00" }, { "created": "2025-01-01T00:00:00", "documents": [], "last_updated_by": "user@example.com", "name": "Account info", "options": { "code_generation": false, "fields": [ "full name", "address" ], "prompt": "Extract form fields", "type": "form", "web_search": false }, "updated": "2025-01-02T00:00:00" } ] }
Return a single Agent
Bearer authentication header of the form Bearer <token>. The <token> represents your API key, which must be acquired from the Kolena platform.
Bearer <token>
<token>
Successful Response
The response is of type object.
object
Was this page helpful?