Skip to main content

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

    x-api-key stringrequired

    API key to authorize the request.

    userId stringrequired

    ID of the user making the request.

Responses

Successfully retrieved all agents.

Schema

    data

    object[]

  • Array [

  • active boolean

    Indicates if the agent is active.

    agentid string

    Unique identifier for the agent.

    agenttype string

    Type of the agent (e.g., "standard").

    createdat date-time

    Timestamp when the agent was created.

    description string

    Detailed description of what the agent does.

    displayprompt string

    User-facing prompt template with parameter placeholders.

    goal string

    The primary goal of the agent.

    inputparameters object

    Parameters that can be passed to the agent.

    lastused date-timenullable

    Timestamp when the agent was last used.

    rootAgentName string

    The name of the agent.

    stepsBreakdown

    object[]

  • Array [

  • agentname string

    Name of the agent handling this step.

    content

    object

    query string

    Instructions for this step.

    response stringnullable

    Response from this step.

    external string

    External source used for this step.

    type string

    Type of step (rag, compile, or structure).

    prompt string

    Detailed instructions for this step (for structure steps).

  • ]

  • ]

Loading...