Twilio · Schema
CreateMessageRequest
AuthenticationCommunicationsContact CenterEmailIoTMessagingPhoneSMST1VerificationVideoVoiceTwilioTelecommunicationsReal-TimeWhatsApp
Properties
| Name | Type | Description |
|---|---|---|
| To | string | Recipient phone number in E.164 format |
| From | string | Twilio phone number, short code, or alphanumeric sender ID |
| Body | string | The text content of the message (max 1600 characters) |
| MessagingServiceSid | string | SID of the messaging service to use |
| MediaUrl | array | URLs of media to include in MMS messages (max 10) |
| StatusCallback | string | URL for status callback notifications |
| MaxPrice | number | Maximum price in USD to pay for the message |
| ValidityPeriod | integer | Validity period in seconds (max 14400) |
| SendAt | string | Time to send a scheduled message (requires messaging service) |
| ScheduleType | string | Schedule type for scheduled messages |
| ContentSid | string | SID of a content template to use |
| ContentVariables | string | JSON string of variables for content templates |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/twilio/main/json-schema/twilio-create-message-request-schema.json",
"title": "CreateMessageRequest",
"x-generated": "2026-10-08",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/twilio-messages-api-openapi.yml#/components/schemas/CreateMessageRequest",
"type": "object",
"required": [
"To"
],
"properties": {
"To": {
"type": "string",
"description": "Recipient phone number in E.164 format"
},
"From": {
"type": "string",
"description": "Twilio phone number, short code, or alphanumeric sender ID"
},
"Body": {
"type": "string",
"description": "The text content of the message (max 1600 characters)",
"maxLength": 1600
},
"MessagingServiceSid": {
"type": "string",
"description": "SID of the messaging service to use",
"pattern": "^MG[0-9a-fA-F]{32}$"
},
"MediaUrl": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"description": "URLs of media to include in MMS messages (max 10)",
"maxItems": 10
},
"StatusCallback": {
"type": "string",
"format": "uri",
"description": "URL for status callback notifications"
},
"MaxPrice": {
"type": "number",
"description": "Maximum price in USD to pay for the message"
},
"ValidityPeriod": {
"type": "integer",
"description": "Validity period in seconds (max 14400)",
"maximum": 14400
},
"SendAt": {
"type": "string",
"format": "date-time",
"description": "Time to send a scheduled message (requires messaging service)"
},
"ScheduleType": {
"type": "string",
"enum": [
"fixed"
],
"description": "Schedule type for scheduled messages"
},
"ContentSid": {
"type": "string",
"description": "SID of a content template to use",
"pattern": "^HX[0-9a-fA-F]{32}$"
},
"ContentVariables": {
"type": "string",
"description": "JSON string of variables for content templates"
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/twilio-create-message-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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.