import requests
url = "http://localhost:3000/v1/integration"
payload = {
"name": "<string>",
"base_url": "<string>",
"integration_type": "HTTP",
"description": "<string>",
"auth_key": "<string>",
"headers": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"base_url": "<string>",
"auth_type": "NONE",
"integration_type": "HTTP",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"auth_key": "<string>",
"headers": {}
}Create a new integration for the authenticated company. For MCP integrations, also syncs tools from the server to the database.
import requests
url = "http://localhost:3000/v1/integration"
payload = {
"name": "<string>",
"base_url": "<string>",
"integration_type": "HTTP",
"description": "<string>",
"auth_key": "<string>",
"headers": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"base_url": "<string>",
"auth_type": "NONE",
"integration_type": "HTTP",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"auth_key": "<string>",
"headers": {}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request schema for creating an integration.
Integration name
Base URL (HTTP API or MCP server)
Integration type
HTTP, MCP Integration description
Bearer token or API key
Custom headers
Successful Response
Response schema for integration.
NONE, OAUTH, API_KEY Integration type enum
HTTP, MCP