Skip to content
Read a custom integration

Read a custom integration

Read a saved custom integration's configuration.

GET/api/v1/custom-integrations/:key

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/custom-integrations/example", {
  method: "GET",
  headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();

Use your server-side apiKey. Replace the example IDs.

Path parameters#

keystringrequired

The saved integration's command key, URL-encoded.

Responses#

Returns the configuration, original tool definitions, generated command names, enablement, and timestamps. Static header values and the saved signing secret are never readable; headerNames lists names only.

200 response
{
  "key": "example",
  "name": "Example",
  "description": "Record lookup",
  "endpointUrl": "https://tools.example.com/tools",
  "timeoutMs": 30000,
  "headerNames": [
    "x-api-key"
  ],
  "enabled": true,
  "tools": [
    {
      "name": "lookup",
      "description": "Look up a record",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      }
    }
  ],
  "commands": [
    {
      "name": "lookup",
      "command": "lookup",
      "mode": "unknown"
    }
  ],
  "createdAt": "2026-10-22T10:00:00.000Z",
  "updatedAt": "2026-10-22T10:00:00.000Z"
}
More about this endpoint

Authenticate with a workspace API key. Unknown body fields and query parameters are rejected.