Training

List all websites

Lists all the websites for an AI Agent.

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

Path Parameters

  • :accountID - REQUIRED[String]

    The referenced account ID.

  • :applicationID - REQUIRED[String]

    The referenced application ID.

  • :aiAgentID - REQUIRED[String]

    The referenced AI Agent ID.

Websites Response - [Map]

List of websites.

Attributes

  • totalWebsites - REQUIRED[Integer]

    The total number of websites in the list.

  • websites - REQUIRED[Array]

    The list of websites.

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

      The account ID the website is owned by.

    • aiAgentID - REQUIRED[String]

      The AI agent the website is associated with.

    • createdAt - REQUIRED[String]

      The date the website was added.

    • lastSyncAt - OPTIONAL[String]

      The date the website was last processed.

    • name - REQUIRED[String]

      An easy to remember label for this website.

    • syncStatus - REQUIRED[String]

      Indicates the sync status of the website.

    • updatedAt - REQUIRED[String]

      The date the website was last updated.

    • url - REQUIRED[String]

      The website URL.

    • websiteID - REQUIRED[String]

      The unique identifier for the website.

Websites Response Shape
Click to copy
{
"totalWebsites": 0,
"websites": [
{
"accountID": "string",
"aiAgentID": "string",
"createdAt": "string",
"lastSyncAt": "string",
"name": "string",
"syncStatus": "string",
"updatedAt": "string",
"url": "string",
"websiteID": "string"
}
]
}

Errors

A common set of Error Responses can be found here.