Bandwidth · Schema

Bandwidth Message

Represents an SMS or MMS message sent or received through the Bandwidth Messaging API, including delivery status, media attachments, and routing metadata.

CommunicationsCPaaSVoiceMessagingTelephonySMSMFA

Properties

Name Type Description
id string The unique identifier for the message, assigned by Bandwidth
owner string The Bandwidth phone number that owns the message
applicationId string The Bandwidth application ID associated with the message
from string The source phone number in E.164 format
to array Array of destination phone numbers in E.164 format
text string The text content of the message
media array Array of media URLs for MMS attachments
direction string The direction of the message (in for received, out for sent)
segmentCount integer The number of segments the message was split into for delivery
time string The ISO 8601 timestamp when the message was created
tag string A custom string attached to the message for tracking
priority string The priority level of the message
expiration string The expiration time after which undelivered messages are discarded
View JSON Schema on GitHub

JSON Schema

bandwidth-message-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.com/schemas/bandwidth/message.json",
  "title": "Bandwidth Message",
  "description": "Represents an SMS or MMS message sent or received through the Bandwidth Messaging API, including delivery status, media attachments, and routing metadata.",
  "type": "object",
  "required": ["from", "to", "applicationId"],
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for the message, assigned by Bandwidth"
    },
    "owner": {
      "type": "string",
      "description": "The Bandwidth phone number that owns the message"
    },
    "applicationId": {
      "type": "string",
      "description": "The Bandwidth application ID associated with the message"
    },
    "from": {
      "type": "string",
      "pattern": "^\\+1[2-9]\\d{9}$",
      "description": "The source phone number in E.164 format"
    },
    "to": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\+1[2-9]\\d{9}$"
      },
      "minItems": 1,
      "maxItems": 50,
      "description": "Array of destination phone numbers in E.164 format"
    },
    "text": {
      "type": "string",
      "maxLength": 2048,
      "description": "The text content of the message"
    },
    "media": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "Array of media URLs for MMS attachments"
    },
    "direction": {
      "type": "string",
      "enum": ["in", "out"],
      "description": "The direction of the message (in for received, out for sent)"
    },
    "segmentCount": {
      "type": "integer",
      "minimum": 1,
      "description": "The number of segments the message was split into for delivery"
    },
    "time": {
      "type": "string",
      "format": "date-time",
      "description": "The ISO 8601 timestamp when the message was created"
    },
    "tag": {
      "type": "string",
      "description": "A custom string attached to the message for tracking"
    },
    "priority": {
      "type": "string",
      "enum": ["default", "high"],
      "default": "default",
      "description": "The priority level of the message"
    },
    "expiration": {
      "type": "string",
      "format": "date-time",
      "description": "The expiration time after which undelivered messages are discarded"
    }
  },
  "$defs": {
    "MessageDeliveryEvent": {
      "type": "object",
      "description": "A webhook event for message delivery status updates",
      "required": ["type", "time"],
      "properties": {
        "type": {
          "type": "string",
          "enum": ["message-received", "message-delivered", "message-failed", "message-sending"],
          "description": "The type of messaging event"
        },
        "time": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of the event"
        },
        "description": {
          "type": "string",
          "description": "A human-readable description of the event"
        },
        "to": {
          "type": "string",
          "description": "The destination phone number"
        },
        "errorCode": {
          "type": "integer",
          "description": "The Bandwidth error code for failed messages"
        },
        "message": {
          "type": "object",
          "description": "The message associated with this event",
          "properties": {
            "id": {
              "type": "string",
              "description": "The message identifier"
            },
            "direction": {
              "type": "string",
              "enum": ["in", "out"],
              "description": "The message direction"
            },
            "segmentCount": {
              "type": "integer",
              "description": "Number of message segments"
            }
          }
        }
      }
    },
    "Media": {
      "type": "object",
      "description": "A media file stored in Bandwidth for MMS messaging",
      "properties": {
        "mediaName": {
          "type": "string",
          "description": "The name of the media file"
        },
        "contentLength": {
          "type": "integer",
          "maximum": 3932160,
          "description": "The size of the media file in bytes (max 3.75 MB)"
        },
        "contentType": {
          "type": "string",
          "description": "The MIME type of the media file"
        }
      }
    }
  }
}

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/bandwidth-message"
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.