post
https://app.customgpt.ai/api/v1/projects//sources
Create a new data source for a given agent (formerly known as project), allowing you to add additional context by specifying a sitemap URL or uploading a file. This endpoint enables you to enrich the agent's information by incorporating relevant data sources. Here is an example to add a new source to agent: API SDK.
Purpose
Create a new data source for a given agent (formerly known as project), allowing you to add additional context by specifying a sitemap URL or uploading a file. This endpoint enables you to enrich the agent's information by incorporating relevant data sources.
Here is an example to add a new source to agent: API SDK.
At a high level, this is the canonical way to work with sources resources via the CustomGPT API.
When to use
- When you need to create a new agent source as part of your backend or automation workflows.
