Get All Agents
GET/api/agents
This endpoint retrieves all agents available to the user. 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.
Responses
- 200
- 400
- 403
- 405
- 500
Successfully retrieved all agents.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
data
object[]
Indicates if the agent is active.
Unique identifier for the agent.
Type of the agent (e.g., "standard").
Timestamp when the agent was created.
Detailed description of what the agent does.
User-facing prompt template with parameter placeholders.
The primary goal of the agent.
Parameters that can be passed to the agent.
Timestamp when the agent was last used.
The name of the agent.
stepsBreakdown
object[]
Name of the agent handling this step.
content
object
Instructions for this step.
Response from this step.
External source used for this step.
Type of step (rag, compile, or structure).
Detailed instructions for this step (for structure steps).
{
"data": [
{
"active": true,
"agentid": "string",
"agenttype": "string",
"createdat": "2025-04-25T15:31:48.719Z",
"description": "string",
"displayprompt": "string",
"goal": "string",
"inputparameters": {},
"lastused": "2025-04-25T15:31:48.719Z",
"rootAgentName": "string",
"stepsBreakdown": [
{
"agentname": "string",
"content": {
"query": "string",
"response": "string"
},
"external": "string",
"type": "string",
"prompt": "string"
}
]
}
]
}
Error with fetch operation.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating the issue with the fetch operation.
{
"error": "string"
}
Invalid API key or authentication failed.
- application/json
- Schema
- Example (from schema)
Schema
error
object
Detailed error message indicating authentication failure.
{
"error": {
"message": "string"
}
}
Method not allowed.
- application/json
- Schema
- Example (from schema)
Schema
error
object
Error message indicating that the method is not allowed.
{
"error": {
"message": "string"
}
}
Internal server error.
- application/json
- Schema
- Example (from schema)
Schema
error
object
Error message indicating an internal server error.
{
"error": {
"message": "string"
}
}