CipherHUB.Cloud · Schema

EncryptedApiRequest

REST encrypted-channel request body. `encrypted_data` contains the ChaCha20-Poly1305 ciphertext. New clients also send `nonce` as a separate 12-byte hex string. For legacy compatibility, `encrypted_data` may contain `ciphertext || nonce`; the server accepts both forms.

CryptographySecurityCloudArtificial IntelligenceTrustInfrastructure

Properties

Name Type Description
key_id string Protection key identifier returned by `/cipherhub/get_protection_key`.
encrypted_data string ChaCha20-Poly1305 ciphertext as hex. Legacy clients append the 12-byte nonce to this field.
nonce stringnull 12-byte ChaCha20-Poly1305 nonce as hex. If omitted, the server extracts nonce from the last 12 bytes of `encrypted_data`.
encrypted_key string Client ephemeral ECC public key encoded as hex.
signature string HMAC-SHA512 over the plaintext business JSON, encoded as hex.
timestamp string Client send time in ISO 8601 format.
request_id string Client-generated request identifier. It should match the plaintext business request `request_id`.
View JSON Schema on GitHub

JSON Schema

cipherhub-cloud-encrypted-api-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cipherhub-cloud/json-schema/cipherhub-cloud-encrypted-api-request-schema.json",
  "title": "EncryptedApiRequest",
  "description": "REST encrypted-channel request body. `encrypted_data` contains the ChaCha20-Poly1305 ciphertext.\nNew clients also send `nonce` as a separate 12-byte hex string. For legacy compatibility, `encrypted_data`\nmay contain `ciphertext || nonce`; the server accepts both forms.\n",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cipherhub-cloud-openapi.yaml#/components/schemas/EncryptedApiRequest",
  "type": "object",
  "required": [
    "key_id",
    "encrypted_data",
    "encrypted_key",
    "signature",
    "timestamp",
    "request_id"
  ],
  "properties": {
    "key_id": {
      "type": "string",
      "description": "Protection key identifier returned by `/cipherhub/get_protection_key`."
    },
    "encrypted_data": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]+$",
      "description": "ChaCha20-Poly1305 ciphertext as hex. Legacy clients append the 12-byte nonce to this field."
    },
    "nonce": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[0-9a-fA-F]{24}$",
      "description": "12-byte ChaCha20-Poly1305 nonce as hex. If omitted, the server extracts nonce from the last 12 bytes of `encrypted_data`."
    },
    "encrypted_key": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]+$",
      "description": "Client ephemeral ECC public key encoded as hex."
    },
    "signature": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]{128}$",
      "description": "HMAC-SHA512 over the plaintext business JSON, encoded as hex."
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Client send time in ISO 8601 format."
    },
    "request_id": {
      "type": "string",
      "minLength": 8,
      "maxLength": 64,
      "description": "Client-generated request identifier. It should match the plaintext business request `request_id`."
    }
  }
}

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/cipherhub-cloud-encrypted-api-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. See our Privacy Policy and Terms.

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