Learn how to list, attach, update, and remove connectors using the connector sub-resource endpoints.
This guide shows you how to manage connectors attached to an agent using the connector sub-resource endpoints. You will learn about the full connector CRUD lifecycle and JSON Merge Patch semantics.
Understanding of connectors and the five connector types
Two ways to manage connectors
You can manage connectors in two ways:
Via the agent’s connectors array: When you PATCH an agent, the connectors array is replaced wholesale. This is good for bulk changes.
Via the connector sub-resource: Attach, update, remove, or list individual connectors without rewriting the full agent. This is good for incremental changes.
This guide focuses on the sub-resource approach.
List connectors
# Replace these with your valuesAGENT_ID="<your-agent-id>"ENVIRONMENT="<eu-or-us>"TENANT="<your-tenant-name>"TOKEN="<your-access-token>"curl "https://api.${ENVIRONMENT}.corti.app/v2/agentic/agents/${AGENT_ID}/connectors" \ -H "Authorization: Bearer ${TOKEN}" \ -H "Tenant-Name: ${TENANT}"
The response is a JSON object with a connectors array, each discriminated by type: