MCP Connections

Create MCP connection

Register a remote HTTPS MCP server, optionally authenticated with an active Secret whose server_url matches exactly. Idempotency-Key is required.

post/v1/mcp-connections

Request

  • Base URL: https://api.sandbase.ai
  • URL: https://api.sandbase.ai/v1/mcp-connections
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Headers

Idempotency-Keystring required

Required. 1-128 characters without leading or trailing whitespace. Reuse the same key and body when retrying.

Request body

namestring required
server_urlstring uri required

HTTPS URL without credentials, query, or fragment.

secret_idstring

Optional active Secret for the same server_url. Omit for an anonymous server.

Response

Connection created

idstring required

Connection ID (mcp_ prefix).

namestring required
server_urlstring required
secret_idstring
status'active' | 'disabled' required
row_versioninteger required
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.