Sources are managed through dedicated endpoints — never through collection
PATCH (which would be ambiguous about intent). When a source is added, the resource is created with status set to ready and its content is indexed for search.
Add One Source
POST /v2/ai/collections/{uuid}/sources adds a single source without touching the others.
201 Created with the new source object.
Replace All Sources
PUT /v2/ai/collections/{uuid}/sources replaces the complete source list. The server reconciles by logical identity:
voice— bysource_type
List Sources
Remove One Source
DELETE /v2/ai/collections/{uuid}/sources/{source_id} removes a single source; the rest are untouched. Excluded from new searches immediately — this detaches the collection’s pointer to the source only.
A source can back many collections, so detaching never starts physical cleanup of chunks, embeddings, or metadata. Never deletes the original Telnyx product data. Never disables a bucket or credential connection.
204 No Content — no body.
Related
- Collections — create, list, retrieve, update, and delete collections
- Settings — configure retrieval type and top_k