Documentation Index
Fetch the complete documentation index at: https://mintlify.com/PaymanAI/sigilum/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Gateway admin endpoints provide local management for:- Connections - CRUD operations for HTTP and MCP connectors
- Credential Variables - Shared secrets reusable across connections
- Service Catalog - Templates for quick connection setup
- Testing & Discovery - Validate connections and discover MCP tools
Admin Access Modes
Gateway supports three admin access trust models:Hybrid Mode (Default)
- Loopback addresses (
127.0.0.1,::1), OR - Any IP with valid
Authorization: Bearer <GATEWAY_ADMIN_TOKEN>header
Loopback Mode
Token Mode
GATEWAY_ADMIN_TOKEN is required when using token or hybrid mode.Signed Admin Checks
Test and discovery endpoints can require Sigilum-signed requests:POST /api/admin/connections/{id}/testrequires signature headers + approved claimPOST /api/admin/connections/{id}/discoverrequires signature headers + approved claim
false only for trusted local maintenance.
Connections
List Connections
Response
Array of connection objects
Example Request
Example Response
Create Connection
Request Body
Unique connection identifier (alphanumeric, hyphens, underscores)
Human-readable connection name
Protocol type:
http or mcpUpstream base URL (e.g.,
https://slack.com/api)Optional path prefix prepended to all requests
Authentication mode:
bearer, header_key, or query_paramHeader name for auth injection (e.g.,
Authorization, X-API-Key)Prefix for auth value (e.g.,
Bearer for OAuth tokens)Key name in
secrets object to use for auth (HTTP connections require this)Credential key-value pairs (encrypted before storage)Example:
{"bot_token": "xoxb-123", "api_key": "{{SHARED_KEY}}"}Credential rotation interval in days (for rotation enforcement)
MCP transport protocol (currently only
streamable_http supported)MCP endpoint path or full URL (for
protocol: "mcp")Connection-level tool allowlist (only these tools exposed)
Connection-level tool denylist (these tools blocked)
Maximum tools to expose (truncate additional tools)
Per-subject tool policies keyed by
sigilum-subject valueExample:Example: HTTP Connection
Example: MCP Connection with Shared Variable
Shared variable references use
{{VARIABLE_NAME}} syntax. Define variables first via /api/admin/credential-variables.Response (201 Created)
Get Connection
Connection identifier
Example Request
Response
Returns the connection object (same structure as List Connections).Secrets are never returned in GET responses. Only metadata is included.
Update Connection
Connection identifier
Request Body
All fields are optional. Only provided fields are updated.Update connection name
Update status:
active or disabledUpdate path prefix
Update auth mode
Update MCP tool allowlist
Update MCP tool denylist
Update per-subject tool policies
Example: Disable Connection
Example: Update MCP Policies
Delete Connection
Connection identifier
Example Request
Response (204 No Content)
Empty response on success.Rotate Connection Secret
Connection identifier
Request Body
New credential key-value pairs
Subject who performed rotation (for audit trail)
Reason for rotation (e.g.,
scheduled, compromised, manual)Example Request
Response
Rotation updates
last_rotated_at, increments secret_version, and recalculates next_rotation_due_at based on rotation_interval_days.Test Connection
Connection identifier
Request Body
HTTP method for test request
Upstream path to test (e.g.,
/auth.test for Slack)Additional headers for test request
Request body for POST/PUT tests
When
GATEWAY_REQUIRE_SIGNED_ADMIN_CHECKS=true, this endpoint requires Sigilum signature headers and approved claim.Example Request
Response (Success)
Response (Failure)
Discover MCP Tools
MCP connection identifier (must have
protocol: "mcp")Refresh mode:
force- Bypass cache and refresh from upstream (default for admin discovery)auto- Use cache policy (TTL + stale-if-error)
When
GATEWAY_REQUIRE_SIGNED_ADMIN_CHECKS=true, this endpoint requires Sigilum signature headers and approved claim.Example Request
Response
Credential Variables
Shared credential variables allow reusing secrets across multiple connections.List Credential Variables
Response
Array of credential variable metadata
Example Response
Create/Update Credential Variable
Request Body
Variable key (uppercase recommended, e.g.,
OPENAI_API_KEY)Secret value (encrypted before storage)
Subject creating the variable (for audit trail)
If
sigilum-subject header is present, it takes precedence over created_by_subject in request body.Example Request
Response (201 Created)
Delete Credential Variable
Variable key to delete
Example Request
Response (204 No Content)
Empty response on success.Service Catalog
Service catalog provides templates for quick connection setup.Get Service Catalog
Response
Catalog schema version
Array of service templates
Example Response
The
env_var field is a dashboard hint for shared variable detection. Gateway does not automatically read from host environment variables.Update Service Catalog
Request Body
Full catalog JSON (same structure as GET response).CLI Reference
Gateway includes a local CLI for direct connection management:List Connections
Add HTTP Connection
Add MCP Connection
Test Connection
Rotate Credentials
Delete Connection
CLI reads
GATEWAY_DATA_DIR and GATEWAY_MASTER_KEY from environment or accepts --master-key flag.Configuration Variables
Key environment variables for admin operations:| Variable | Default | Description |
|---|---|---|
GATEWAY_ADMIN_ACCESS_MODE | hybrid | Admin access model: hybrid, loopback, or token |
GATEWAY_ADMIN_TOKEN | - | Admin token (required for token/hybrid modes) |
GATEWAY_REQUIRE_SIGNED_ADMIN_CHECKS | true | Require signatures for test/discover endpoints |
GATEWAY_ALLOWED_ORIGINS | - | CORS allowed origins (comma-separated) |
GATEWAY_DATA_DIR | ~/.local/share/sigilum-gateway | Local data directory |
GATEWAY_SERVICE_CATALOG_FILE | $DATA_DIR/service-catalog.json | Service catalog path |
GATEWAY_MASTER_KEY | - | Encryption key for secrets (base64-encoded) |
Next Steps
Proxy Endpoints
Use configured connections for runtime requests
MCP Runtime
Execute MCP tools after discovery