KnoxCall · Schema

CreateSecretRequest

Creates a secret. Set `secret_type` to choose the variant: - `string` (default) — requires `name` and `value` - `oauth2` — requires OAuth2 fields (see `CreateOAuth2SecretRequest`) - `certificate` — requires certificate fields (see `CreateCertificateSecretRequest`)

CompanyAPI ManagementSecurityDevOpsAI Agents
View JSON Schema on GitHub

JSON Schema

knoxcall-create-secret-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-create-secret-request-schema.json",
  "title": "CreateSecretRequest",
  "description": "Creates a secret. Set `secret_type` to choose the variant:\n- `string` (default) — requires `name` and `value`\n- `oauth2` — requires OAuth2 fields (see `CreateOAuth2SecretRequest`)\n- `certificate` — requires certificate fields (see `CreateCertificateSecretRequest`)\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knoxcall-secrets-api-openapi.yml#/components/schemas/CreateSecretRequest",
  "oneOf": [
    {
      "title": "String secret",
      "type": "object",
      "required": [
        "name",
        "value"
      ],
      "properties": {
        "secret_type": {
          "type": "string",
          "enum": [
            "string"
          ],
          "default": "string",
          "description": "Omit or set to `string` for a static value secret."
        },
        "name": {
          "type": "string",
          "description": "Secret name. Spaces are replaced with underscores."
        },
        "value": {
          "type": "string",
          "description": "The secret value to encrypt and store."
        },
        "collection_id": {
          "type": "string",
          "format": "uuid",
          "description": "Assign this secret to a collection."
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Optional expiry timestamp (ISO-8601)."
        },
        "strict_expiry_enforcement": {
          "type": "boolean",
          "default": false,
          "description": "When true, the proxy refuses to inject the secret after it expires."
        }
      }
    },
    {
      "$ref": "#/$defs/CreateOAuth2SecretRequest"
    },
    {
      "$ref": "#/$defs/CreateCertificateSecretRequest"
    }
  ],
  "$defs": {
    "CreateCertificateSecretRequest": {
      "type": "object",
      "required": [
        "name",
        "certificate_content"
      ],
      "properties": {
        "secret_type": {
          "type": "string",
          "enum": [
            "certificate"
          ],
          "description": "Must be `certificate` when using this schema via `POST /secrets`."
        },
        "name": {
          "type": "string",
          "description": "Secret name. Spaces are replaced with underscores."
        },
        "certificate_content": {
          "type": "string",
          "description": "The certificate in PEM, PKCS#7, CRT/CER format, or as a base64-encoded DER/PFX/P12\nblob. For PEM, include the full `-----BEGIN CERTIFICATE-----` block.\n"
        },
        "private_key": {
          "type": "string",
          "description": "Optional PEM-encoded private key. If provided, it is combined with the certificate\ncontent before encryption.\n"
        },
        "passphrase": {
          "type": "string",
          "description": "Optional passphrase to decrypt the private key. Encrypted and stored separately\nfrom the certificate.\n"
        },
        "certificate_type": {
          "type": "string",
          "enum": [
            "pem",
            "pfx",
            "p12",
            "crt",
            "cer",
            "key",
            "pkcs7",
            "p7b",
            "p7c"
          ],
          "default": "pem",
          "description": "Format of the certificate content:\n- `pem` / `crt` / `cer` — PEM-encoded X.509 certificate (metadata auto-extracted)\n- `pkcs7` / `p7b` / `p7c` — PKCS#7 certificate bundle (metadata auto-extracted)\n- `pfx` / `p12` — Binary PKCS#12 bundle (pass as base64)\n- `key` — Standalone private key\n"
        },
        "collection_id": {
          "type": "string",
          "format": "uuid",
          "description": "Assign this secret to a collection."
        }
      }
    },
    "CreateOAuth2SecretRequest": {
      "type": "object",
      "required": [
        "name",
        "provider",
        "client_id"
      ],
      "properties": {
        "secret_type": {
          "type": "string",
          "enum": [
            "oauth2"
          ],
          "description": "Must be `oauth2` when using this schema via `POST /secrets`."
        },
        "name": {
          "type": "string",
          "description": "Secret name. Spaces are replaced with underscores."
        },
        "provider": {
          "type": "string",
          "enum": [
            "google",
            "github",
            "salesforce",
            "microsoft",
            "slack",
            "custom"
          ],
          "description": "OAuth2 provider. Use `custom` for any provider not listed — you must then supply\n`auth_url` and `token_url`.\n"
        },
        "client_id": {
          "type": "string",
          "description": "OAuth2 client ID (from your provider's developer console)."
        },
        "client_secret": {
          "type": "string",
          "description": "OAuth2 client secret. Required unless using `mtls_certificate_id` for mTLS auth\nor `grant_type: implicit`.\n"
        },
        "grant_type": {
          "type": "string",
          "enum": [
            "authorization_code",
            "client_credentials",
            "password",
            "implicit"
          ],
          "default": "authorization_code",
          "description": "OAuth2 grant type:\n- `authorization_code` (default) — redirects user to `redirect_uri` for consent\n- `client_credentials` — server-to-server; tokens fetched immediately\n- `password` — ROPC flow; requires `username` and `password`\n- `implicit` — legacy browser flow (not recommended)\n"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "OAuth2 scopes to request. Defaults to the provider's recommended scopes."
        },
        "auth_url": {
          "type": "string",
          "format": "uri",
          "description": "Authorization endpoint URL. Accepted only when `provider` is `custom` — for every\nother provider the platform's known default is used and this field is ignored.\nMust be an absolute `https://` URL with no embedded credentials and no `#`\nfragment; anything else is rejected with `validation_error`. A query string is\nallowed (Azure AD B2C's `?p=<policy>`) and is preserved.\n"
        },
        "token_url": {
          "type": "string",
          "format": "uri",
          "description": "Token endpoint URL. Accepted only when `provider` is `custom` — for every other\nprovider the platform's known default is used and this field is ignored. Must be\nan absolute `https://` URL with no embedded credentials and no `#` fragment;\n`http://` is rejected because this endpoint receives the client secret.\n"
        },
        "username": {
          "type": "string",
          "description": "Username for `password` grant type."
        },
        "password": {
          "type": "string",
          "description": "Password for `password` grant type."
        },
        "mtls_certificate_id": {
          "type": "string",
          "format": "uuid",
          "description": "ID of a `certificate`-type secret to use for mTLS authentication to the token\nendpoint instead of `client_secret`.\n"
        },
        "collection_id": {
          "type": "string",
          "format": "uuid",
          "description": "Assign this secret to a collection."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/knoxcall-create-secret-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.