English
Documentation
How to use the Orkeia AI platform
Executes an action associated with the agent.
POST https://gateway.orkeia.ai/agents/{id}/execute
authorization: <your_token> Content-Type: application/json
{ "id": "Agent ID (required)" }
{ "agent": "agent id", "input": "prompt", "context": [{ "role": ["user","assistant"], "content": "context content" }], "chatId": "chat id, if any", "files": "array of files, if any", "metadata": Metadata, }
curl -X POST "https://gateway.orkeia.ai/agents/agent123/execute" \ -H "authorization: <your_token>" \ -H "Content-Type: application/json" \ -d '{ "action": "process"}'
{ "status": "OK", "data": { "response" : "processing result", "chatId": "chat id", "file": "file path, if any"} } }
{ "status": "ERROR", "code": "server/error", "data": null }
{ "status": "ERROR", "code": "client/error", "data": null }
Was this page helpful?