Delete an agent source.

Delete a source for a given agent.

Delete a source for a given agent.

When a new connection is added (such as a sitemap, Google Drive, or SharePoint), each becomes its own source.

For example, if you add two sitemaps, two separate sitemap sources are created.

However, file uploads work a bit differently. All uploaded files are grouped under a single source, and an agent (or project) can only have one file upload source. Each source can contain multiple documents, referred to as "pages" in our system.

So if you're trying to delete a specific file, you need to target the page ID rather than the source ID. Attempting to delete a source would remove all associated files.

To delete an individual file (page), please use this API endpoint: Delete Page API. Once you confirm the correct project and page IDs, the API call should work as expected.

"Action is unauthorized"

Regarding the “action is unauthorized” message, this error maybe triggered when the wrong endpoint is used like attempting to delete a page using the source deletion API.

Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!