Create New Agent
POST/api/agents/create
This endpoint creates a new agent with the provided configuration. The request must include a valid API key and user ID.
Request
Header Parameters
API key to authorize the request.
ID of the user making the request.
- application/json
Body
required
Array [
]
The name of the agent.
User-facing prompt template with parameter placeholders.
Parameters that can be passed to the agent.
The primary goal of the agent.
Detailed description of what the agent does.
stepsBreakdown
object[]
required
Type of step (rag, compile, or structure).
Detailed instructions for this step.
Name of the agent handling this step.
content
object
Instructions for this step.
Response from this step.
External source used for this step.
Responses
- 200
- 400
- 403
- 405
- 500
Successfully created a new agent.
- application/json
- Schema
- Example (from schema)
Schema
Response message containing the created agent details.
{
"message": {}
}
Invalid request body.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating the issue with the request.
{
"message": "string"
}
Invalid API key or authentication failed.
- application/json
- Schema
- Example (from schema)
Schema
Detailed error message indicating authentication failure.
{
"message": "string"
}
Method not allowed.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating that the method is not allowed.
{
"message": "string"
}
Internal server error.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating an internal server error.
{
"message": "string"
}