Bandwidth · JSON Structure

Bandwidth Message Structure

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

Type: object Properties: 13 Required: 3
CommunicationsCPaaSVoiceMessagingTelephonySMSMFA

Bandwidth Message is a JSON Structure definition published by Bandwidth, describing 13 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id owner applicationId from to text media direction segmentCount time tag priority expiration

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://api-evangelist.com/schemas/bandwidth/message.json",
  "name": "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": "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": "int32",
      "minimum": 1,
      "description": "The number of segments the message was split into for delivery"
    },
    "time": {
      "type": "datetime",
      "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": "datetime",
      "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 Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/bandwidth-message-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?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.