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": {}
}Create a new HTTP or MCP integration. For MCP integrations, tools are automatically synced from the MCP server. Authentication is validated during creation.
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": {}
}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
Mostrar atributos secundarios
Successful Response
Response schema for integration.
NONE, API_KEY Integration type enum
HTTP, MCP Mostrar atributos secundarios