Agents
Execute an agent task
Changed onInvoke an agent to perform a task with input messages. Supports tool execution, knowledge retrieval, memory context, and model fallback.
post/v2/agents/{key}/task
Request
- Base URLhttps://my.orq.ai
- URLhttps://my.orq.ai/v2/agents/{key}/task
- AuthHTTP bearer
Path parameters
keystring required
The key or ID of the agent to invoke
Request body
Example request
{
"message": {
"parts": [
{
"file": {
"uri": "https://example.com/report.pdf"
}
}
]
},
"identity": {
"id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"display_name": "Jane Doe",
"email": "jane.doe@example.com",
"metadata": [
{
"department": "Engineering",
"role": "Senior Developer"
}
],
"logo_url": "https://example.com/avatars/jane-doe.jpg",
"tags": [
"hr",
"engineering"
]
},
"contact": {
"id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"display_name": "Jane Doe",
"email": "jane.doe@example.com",
"metadata": [
{
"department": "Engineering",
"role": "Senior Developer"
}
],
"logo_url": "https://example.com/avatars/jane-doe.jpg",
"tags": [
"hr",
"engineering"
]
},
"thread": {
"id": "thread_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"tags": [
"customer-support",
"priority-high"
]
}
}Response
Agent task successfully initiated. Returns the task details including task ID, execution status, and initial response. Use the task ID to track execution progress and retrieve full results.
Example response
{
"status": {
"message": {
"parts": [
{
"file": {
"uri": "https://example.com/report.pdf"
}
}
]
}
},
"messages": [
{
"parts": [
{
"file": {
"uri": "https://example.com/report.pdf"
}
}
]
}
]
}Changes
- info
added the non-success response with the status
- info
- info
removed the non-success response with the status
- info