Create agent
Changed onCreate a new agent with the specified model, instructions, tools, and knowledge bases. Supports fallback models and configurable execution settings.
Request
- Base URLhttps://my.orq.ai
- URLhttps://my.orq.ai/v2/agents
- AuthHTTP bearer
Request body
Example request
{
"display_name": "HR Assistant",
"description": "Answers employee questions about benefits, PTO, and company policies.",
"path": "Default Project",
"model": {
"parameters": {
"fallbacks": [
{
"model": "openai/gpt-5.4-mini"
}
],
"cache": {
"ttl": 3600
},
"load_balancer": {
"type": "weight_based",
"models": [
{
"model": "openai/gpt-4o",
"weight": 0.7
},
{
"model": "anthropic/claude-3-5-sonnet",
"weight": 0.3
}
]
},
"timeout": {
"call_timeout": 30000
}
},
"retry": {
"count": 3,
"on_codes": [
429,
500,
502,
503,
504
]
}
},
"fallback_models": [
{
"parameters": {
"fallbacks": [
{
"model": "openai/gpt-5.4-mini"
}
],
"cache": {
"ttl": 3600
},
"load_balancer": {
"type": "weight_based",
"models": [
{
"model": "openai/gpt-4o",
"weight": 0.7
},
{
"model": "anthropic/claude-3-5-sonnet",
"weight": 0.3
}
]
},
"timeout": {
"call_timeout": 30000
}
},
"retry": {
"count": 3,
"on_codes": [
429,
500,
502,
503,
504
]
}
}
],
"settings": {
"tools": [
{
"type": "mcp",
"id": "01KA84ND5J0SWQMA2Q8HY5WZZZ",
"tool_id": "01KXYZ123456789",
"requires_approval": false
}
]
},
"knowledge_bases": [
{
"knowledge_id": "customer-knowledge-base"
}
]
}Response
Agent successfully created and ready for use. Returns the complete agent manifest including the generated ID, configuration, and all settings.
Example response
{
"path": "Default Project",
"knowledge_bases": [
{
"knowledge_id": "customer-knowledge-base"
}
],
"model": {
"parameters": {
"fallbacks": [
{
"model": "openai/gpt-5.4-mini"
}
],
"cache": {
"ttl": 3600
},
"load_balancer": {
"type": "weight_based",
"models": [
{
"model": "openai/gpt-4o",
"weight": 0.7
},
{
"model": "anthropic/claude-3-5-sonnet",
"weight": 0.3
}
]
},
"timeout": {
"call_timeout": 30000
}
},
"retry": {
"count": 3,
"on_codes": [
429,
500,
502,
503,
504
]
},
"fallback_models": [
{
"parameters": {
"fallbacks": [
{
"model": "openai/gpt-5.4-mini"
}
],
"cache": {
"ttl": 3600
},
"load_balancer": {
"type": "weight_based",
"models": [
{
"model": "openai/gpt-4o",
"weight": 0.7
},
{
"model": "anthropic/claude-3-5-sonnet",
"weight": 0.3
}
]
},
"timeout": {
"call_timeout": 30000
}
},
"retry": {
"count": 3,
"on_codes": [
429,
500,
502,
503,
504
]
}
}
]
}
}Changes
- breaking
added to the
/////response propertyoneOflist for the response status - breaking
added to the
//response propertyoneOflist for the response status - info
added the new optional request property
////// - info
added the new optional request property
////// - info
added the new optional request property
///// - info
added the new optional request property
///// - info
added
between_toolsdiscriminator mapping keys to the////request property - info
added
between_toolsdiscriminator mapping keys to the///request property - info
added to the
////request propertyoneOflist - info
added to the
///request propertyoneOflist - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added
between_toolsdiscriminator mapping keys to the/////response property for the response status - info
added
between_toolsdiscriminator mapping keys to the//response property for the response status
- breaking
- breaking
removed from the
////request propertyoneOflist - breaking
removed from the
///request propertyoneOflist - warning
removed the request property
////// - warning
removed the request property
////// - warning
removed the request property
///// - warning
removed the request property
///// - warning
removed the optional property
///////from the response with the status - warning
removed the optional property
///////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - info
removed
between_toolsdiscriminator mapping keys from the////request property - info
removed
between_toolsdiscriminator mapping keys from the///request property - info
removed
between_toolsdiscriminator mapping keys from the/////response property for the response status - info
removed
between_toolsdiscriminator mapping keys from the//response property for the response status - info
removed from the
/////response propertyoneOflist for the response status - info
removed from the
//response propertyoneOflist for the response status
- breaking