Saltar al contenido principal
POST
/
v1
/
integration
Create Integration
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": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request schema for creating an integration.

name
string
required

Integration name

base_url
string
required

Base URL (HTTP API or MCP server)

integration_type
enum<string>
required

Integration type

Opciones disponibles:
HTTP,
MCP
description
string | null

Integration description

auth_key
string | null

Bearer token or API key

headers
Headers · object

Custom headers

Response

Successful Response

Response schema for integration.

id
string<uuid>
required
company_id
string<uuid>
required
name
string
required
base_url
string
required
auth_type
enum<string>
required
Opciones disponibles:
NONE,
OAUTH,
API_KEY
integration_type
enum<string>
required

Integration type enum

Opciones disponibles:
HTTP,
MCP
created_at
string<date-time>
required
updated_at
string<date-time>
required
description
string | null
auth_key
string | null
headers
Headers · object