Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qoder.com/llms.txt

Use this file to discover all available pages before exploring further.

POST /v1/vaults Creates a new Vault. A Vault is used to securely store credentials for MCP servers. At least one credential must be provided when creating a vault.

Headers

HeaderRequiredDescription
AuthorizationYesBearer $QODER_PAT
Content-TypeYesapplication/json

Request body

FieldTypeRequiredDescription
display_namestringYesVault display name
credentialsarrayYesArray of credentials. Must contain at least one credential object

credentials array element

FieldTypeRequiredDescription
mcp_server_urlstringYesMCP server URL
protocolstringYesProtocol type. One of: sse, streamable_http
typestringYesCredential type. Currently only static_bearer is supported
access_tokenstringYesAccess token (required for static_bearer type)

Example request

curl -X POST https://openapi.qoder.sh/api/v1/cloud/vaults \
  -H "Authorization: Bearer $QODER_PAT" \
  -H "Content-Type: application/json" \
  -d '{
    "display_name": "my-mcp-vault",
    "credentials": [
      {
        "mcp_server_url": "https://example.com/mcp",
        "protocol": "sse",
        "type": "static_bearer",
        "access_token": "your-access-token"
      }
    ]
  }'

Example response

HTTP 201 Created
{
  "id": "vault_019e3bb940277f0db05ab74291acf6ef",
  "type": "vault",
  "display_name": "my-mcp-vault",
  "status": "active",
  "metadata": {},
  "credentials": [
    {
      "id": "vcred_019e3bb940297658a632dbf920057eff",
      "vault_id": "vault_019e3bb940277f0db05ab74291acf6ef",
      "mcp_server_url": "https://example.com/mcp",
      "protocol": "sse",
      "type": "static_bearer",
      "status": "active",
      "created_at": "2026-05-18T15:34:16.876188Z",
      "updated_at": "2026-05-18T15:34:16.876188Z"
    }
  ],
  "created_at": "2026-05-18T15:34:16.874877Z",
  "updated_at": "2026-05-18T15:34:16.874877Z"
}

Errors

HTTPTypeTrigger
400invalid_request_errorMissing credentials array: “At least one credential is required when creating a vault.”
400invalid_request_errorMissing access_token: “Field ‘access_token’ is required for static_bearer type.”
401TOKEN_INVALIDMissing or invalid authentication token
See Errors for the full error envelope.