Saltar al contenido principal
POST
/
v1
/
integration
Create integration
import requests

url = "https://api.diga.io/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",
  "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": {}
}

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json

Request schema for creating an integration.

name
string
requerido

Integration name

base_url
string
requerido

Base URL (HTTP API or MCP server)

integration_type
enum<string>
requerido

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

Respuesta

Successful Response

Response schema for integration.

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

Integration type enum

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