CM.com · Schema

Generate request

CompanyCPaaSMessagingSMSVoicePaymentsVerificationTicketing

Properties

Name Type Description
recipient string Phone number in international format without +.
sender string The name or phone number of the sender. Please note that alphanumeric sender is not supported in all countries. If `allowVoice` is `true`, sender must be a phone number. For alphanumeric senders, the
length integer The length of the code.
expiry integer The expiry in seconds.
allowVoice boolean Send the code via a voice call.
voiceLanguage string Change the language of the voice call.
allowPush boolean Allow code to be send via push notification. When allowPush is set to `true`, a valid app key is required.
appKey string The app key GUID.
message string Set a custom message. You can use the placeholder {code} which will be replaced by the actual code. e.g. Your code is: {code}."
View JSON Schema on GitHub

JSON Schema

cm-com-generate-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-generate-request-schema.json",
  "title": "Generate request",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-verification-otp-v1-openapi.yml#/components/schemas/GenerateRequest",
  "type": "object",
  "properties": {
    "recipient": {
      "type": "string",
      "description": "Phone number in international format without +."
    },
    "sender": {
      "type": "string",
      "description": "The name or phone number of the sender. Please note that alphanumeric sender is not supported in all countries. If `allowVoice` is `true`, sender must be a phone number. For alphanumeric senders, the length should be between 3 and 11 characters.\n"
    },
    "length": {
      "type": "integer",
      "description": "The length of the code.",
      "minimum": 4,
      "maximum": 10,
      "default": 5
    },
    "expiry": {
      "type": "integer",
      "description": "The expiry in seconds.",
      "minimum": 10,
      "maximum": 3600,
      "default": 60
    },
    "allowVoice": {
      "type": "boolean",
      "description": "Send the code via a voice call."
    },
    "voiceLanguage": {
      "type": "string",
      "description": "Change the language of the voice call.",
      "enum": [
        "de",
        "en",
        "es",
        "fr",
        "it",
        "nl"
      ],
      "default": "en"
    },
    "allowPush": {
      "type": "boolean",
      "description": "Allow code to be send via push notification. When allowPush is set to `true`, a valid app key is required.",
      "default": false
    },
    "appKey": {
      "type": "string",
      "description": "The app key GUID.",
      "format": "uuid"
    },
    "message": {
      "type": "string",
      "description": "Set a custom message. You can use the placeholder {code} which will be replaced by the actual code. e.g. Your code is: {code}.\"\n"
    }
  },
  "required": [
    "recipient",
    "sender"
  ]
}

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/cm-com-generate-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.