AI Agents

Get all AI Agents

Retrieves a list of all AI Agents associated with a specific account and application. This endpoint provides information about each AI Agent in your account, including its configuration and metadata.

GET/v1/accounts/:accountID/applications/:applicationID/ai-agents
Click to copy
curl --request GET \
  --url https://api.sidecarcx.com/v1/accounts/:accountID/applications/:applicationID/ai-agents \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

Path Parameters

  • :accountID - REQUIRED[String]

    The referenced account ID.

  • :applicationID - REQUIRED[String]

    The referenced application ID.

AI Agents Response - [Map]

A list of AI Agents.

Attributes

  • aiAgents - REQUIRED[Array]

    The list of AI Agents.

    List Contents- type of [Map]
    • aiAgentID - REQUIRED[String]

      A unique identifier assigned to the AI Agent.

    • createdAt - REQUIRED[String]

      The timestamp indicating when the AI Agent was created.

    • inputPlaceholder - REQUIRED[String]

      The placeholder text displayed in the AI widget's input field.

    • name - REQUIRED[String]

      The user-defined name of the AI Agent.

    • primaryColor - REQUIRED[String]

      The primary theme color of the widget, represented as a HEX code.

    • type - REQUIRED[String]

      The type of AI Agent [chatbot, search].

    • updatedAt - REQUIRED[String]

      The timestamp indicating the last update to the AI Agent.

    • welcomeMessage - REQUIRED[String]

      The default welcome message displayed when the AI Agent starts interacting with a user.

    • widgetAppImageURL - REQUIRED[String]

      The URL of the application image used in the widget.

    • widgetAvatarURL - REQUIRED[String]

      The URL of the avatar image representing the AI Agent.

    • widgetFontSize - REQUIRED[Integer]

      The font size of the text within the widget, specified in pixels.

    • widgetSubtext - REQUIRED[String]

      A short descriptive text appearing below the widget header.

    • widgetTitle - REQUIRED[String]

      The title displayed in the widget's header.

  • totalAiAgents - REQUIRED[Integer]

    The total number of AI Agents in the list.

AI Agents Response Shape
Click to copy
{
  "aiAgents": [
    {
      "aiAgentID": "string",
      "createdAt": "string",
      "inputPlaceholder": "string",
      "name": "string",
      "primaryColor": "string",
      "type": "string",
      "updatedAt": "string",
      "welcomeMessage": "string",
      "widgetAppImageURL": "string",
      "widgetAvatarURL": "string",
      "widgetFontSize": 0,
      "widgetSubtext": "string",
      "widgetTitle": "string"
    }
  ],
  "totalAiAgents": 0
}

Errors

A common set of Error Responses can be found here.