List integrations
List integration options your application can offer its represented users.
/api/v1/integrationsconst response = await fetch("https://api.smallworld.sh/api/v1/integrations", {
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.
Responses#
Returns items, without a pagination cursor. Each integration has key, name, description, authScheme (oauth2, api_key, or none), enabled, credentialFields, and nullable credentialInstructions. Credential fields include name, label, description, secret, nullable pattern, and maxLength. credentialInstructions contains text and a nullable url.
{
"items": [
{
"key": "github",
"name": "GitHub",
"description": "Work with repositories, issues, and pull requests using each user's own GitHub account.",
"authScheme": "api_key",
"enabled": true,
"credentialFields": [
{
"name": "token",
"label": "Personal access token",
"description": "A fine-grained token (github_pat_…) or a classic token (ghp_…). Smallworld stores it encrypted and only sends it to GitHub.",
"secret": true,
"pattern": "^(?:ghp_|github_pat_)[A-Za-z0-9_]{20,}$",
"maxLength": 512
}
],
"credentialInstructions": {
"text": "Create a personal access token in your GitHub settings. A fine-grained token can be limited to selected repositories; a classic token with the repo, read:org, and read:user scopes works across your organizations.",
"url": "https://github.com/settings/personal-access-tokens/new"
}
}
]
}
More about this endpoint
Use the returned authScheme and fields instead of assuming a fixed provider flow. GitHub, for example, can use OAuth or a personal access token depending on workspace setup.
Disabled integrations need setup and activation before users can connect. Use the configuration endpoints or dashboard. Built-in integrations use none, have no per-user credentials, and reject connection endpoints.
This lists connection options, including configured MCP servers. Custom integrations are managed in the dashboard.