Skip to main content

Connectors API

REST endpoints for managing connector configurations. Connectors define how to connect to target systems like LangGraph agents.

Endpoints

MethodEndpointDescription
GET/api/projects/:projectId/connectorsList connectors
GET/api/projects/:projectId/connectors/typesList available connector types
POST/api/projects/:projectId/connectorsCreate a connector
GET/api/projects/:projectId/connectors/:idGet a connector by ID
PUT/api/projects/:projectId/connectors/:idUpdate a connector
DELETE/api/projects/:projectId/connectors/:idDelete a connector
POST/api/projects/:projectId/connectors/:id/testTest connector connectivity

GET /api/projects/:projectId/connectors

List all connectors.

Response (200 OK)

[
{
"id": "987fcdeb-51a2-3bc4-d567-890123456789",
"name": "LangGraph Dev",
"type": "langgraph",
"baseUrl": "http://localhost:8123",
"headers": {
"X-API-Key": "lg-dev-key"
},
"config": {
"assistantId": "my-assistant"
},
"createdAt": "2026-01-29T10:00:00.000Z",
"updatedAt": "2026-01-29T10:00:00.000Z"
}
]

Example

curl http://localhost:3000/api/projects/PROJECT_ID/connectors

GET /api/projects/:projectId/connectors/types

Get available connector types with descriptions.

Response (200 OK)

{
"langgraph": "LangGraph Dev API connector for langgraph-backed agents"
}

Example

curl http://localhost:3000/api/projects/PROJECT_ID/connectors/types

POST /api/projects/:projectId/connectors

Create a new connector.

Request Body

FieldTypeRequiredDescription
namestringYesConnector name
typestringYesConnector type: "langgraph"
baseUrlstringYesBase URL for the API endpoint
headersobjectNoCustom headers sent with every request (key-value pairs)
configobjectNoType-specific configuration (see below)

Config for LangGraph connectors:

FieldTypeRequiredDescription
assistantIdstringYesThe assistant ID to invoke
configurableobjectNoValues sent as config.configurable in invoke requests
{
"name": "LangGraph Dev",
"type": "langgraph",
"baseUrl": "http://localhost:8123",
"headers": {
"X-API-Key": "lg-dev-key"
},
"config": {
"assistantId": "my-assistant"
}
}

Response (201 Created)

{
"id": "987fcdeb-51a2-3bc4-d567-890123456789",
"name": "LangGraph Dev",
"type": "langgraph",
"baseUrl": "http://localhost:8123",
"headers": {
"X-API-Key": "lg-dev-key"
},
"config": {
"assistantId": "my-assistant"
},
"createdAt": "2026-01-29T10:00:00.000Z",
"updatedAt": "2026-01-29T10:00:00.000Z"
}

Errors

StatusDescription
400Missing required field (name, type, or baseUrl)
409Connector with name already exists

Example

curl -X POST http://localhost:3000/api/projects/PROJECT_ID/connectors \
-H "Content-Type: application/json" \
-d '{
"name": "LangGraph Dev",
"type": "langgraph",
"baseUrl": "http://localhost:8123",
"headers": {"X-API-Key": "lg-dev-key"},
"config": {"assistantId": "my-assistant"}
}'

GET /api/projects/:projectId/connectors/:id

Get a connector by its ID.

Response (200 OK)

{
"id": "987fcdeb-51a2-3bc4-d567-890123456789",
"name": "LangGraph Dev",
"type": "langgraph",
"baseUrl": "http://localhost:8123",
"config": {
"assistantId": "my-assistant"
},
"createdAt": "2026-01-29T10:00:00.000Z",
"updatedAt": "2026-01-29T10:00:00.000Z"
}

Errors

StatusDescription
404Connector not found

Example

curl http://localhost:3000/api/projects/PROJECT_ID/connectors/987fcdeb-51a2-3bc4-d567-890123456789

PUT /api/projects/:projectId/connectors/:id

Update an existing connector.

Request Body

FieldTypeRequiredDescription
namestringNoNew connector name
typestringNoNew connector type
baseUrlstringNoNew base URL
headersobjectNoNew custom headers (replaces existing)
configobjectNoNew configuration (replaces existing)
{
"baseUrl": "http://localhost:8124",
"headers": {
"X-API-Key": "new-key"
},
"config": {
"assistantId": "new-assistant"
}
}

Response (200 OK)

{
"id": "987fcdeb-51a2-3bc4-d567-890123456789",
"name": "LangGraph Dev",
"type": "langgraph",
"baseUrl": "http://localhost:8124",
"headers": {
"X-API-Key": "new-key"
},
"config": {
"assistantId": "new-assistant"
},
"createdAt": "2026-01-29T10:00:00.000Z",
"updatedAt": "2026-01-29T10:30:00.000Z"
}

Errors

StatusDescription
404Connector not found
409Connector with name already exists

Example

curl -X PUT http://localhost:3000/api/projects/PROJECT_ID/connectors/987fcdeb-51a2-3bc4-d567-890123456789 \
-H "Content-Type: application/json" \
-d '{"baseUrl": "http://localhost:8124"}'

DELETE /api/projects/:projectId/connectors/:id

Delete a connector.

Response (204 No Content)

Empty response on success.

Errors

StatusDescription
404Connector not found

Example

curl -X DELETE http://localhost:3000/api/projects/PROJECT_ID/connectors/987fcdeb-51a2-3bc4-d567-890123456789

POST /api/projects/:projectId/connectors/:id/test

Test a connector's connectivity by sending a "hello" message and checking the response.

Response (200 OK)

{
"success": true,
"latencyMs": 145,
"response": "Hello! How can I help you today?"
}

Response (200 OK - Test Failed)

{
"success": false,
"latencyMs": 0,
"error": "Connection refused"
}

Response Fields

FieldTypeDescription
successbooleanWhether the test passed
latencyMsnumberResponse time in milliseconds
responsestringResponse message (on success)
errorstringError message (on failure)

Example

curl -X POST http://localhost:3000/api/projects/PROJECT_ID/connectors/987fcdeb-51a2-3bc4-d567-890123456789/test