{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/twilio/main/json-schema/twilio-messaging-service-schema.json",
  "title": "MessagingService",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twilio-messaging-services-api-openapi.yml#/components/schemas/MessagingService",
  "type": "object",
  "properties": {
    "sid": {
      "type": "string",
      "pattern": "^MG[0-9a-fA-F]{32}$",
      "description": "Unique identifier for the messaging service"
    },
    "account_sid": {
      "type": "string",
      "pattern": "^AC[0-9a-fA-F]{32}$"
    },
    "friendly_name": {
      "type": "string",
      "description": "Descriptive name for the messaging service"
    },
    "inbound_request_url": {
      "type": "string",
      "format": "uri",
      "description": "URL for incoming message webhooks"
    },
    "inbound_method": {
      "type": "string",
      "enum": [
        "GET",
        "POST"
      ]
    },
    "fallback_url": {
      "type": "string",
      "format": "uri"
    },
    "fallback_method": {
      "type": "string",
      "enum": [
        "GET",
        "POST"
      ]
    },
    "status_callback": {
      "type": "string",
      "format": "uri",
      "description": "URL for delivery status webhooks"
    },
    "sticky_sender": {
      "type": "boolean",
      "description": "Whether to use sticky sender for conversations"
    },
    "smart_encoding": {
      "type": "boolean",
      "description": "Whether to automatically detect Unicode characters"
    },
    "area_code_geomatch": {
      "type": "boolean",
      "description": "Whether to match sender area code to recipient"
    },
    "validity_period": {
      "type": "integer",
      "description": "Message validity period in seconds"
    },
    "date_created": {
      "type": "string",
      "format": "date-time"
    },
    "date_updated": {
      "type": "string",
      "format": "date-time"
    },
    "url": {
      "type": "string",
      "format": "uri"
    }
  }
}