# Twilio Messages.create Preflight Validator

> Twilio Messages.create Preflight Validator is a paid API for AI agents from gate-network.matsutake-lab.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Validates a Twilio Messages.create payload for SMS/MMS sending without actually dispatching the message, returning static failures, warnings, and unknowns.

## Facts

- Endpoint: POST https://gate-network.matsutake-lab.workers.dev/v1/gates/twilio.messages.create/preflight
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twilio-messages-create-preflight-validator-38ddf265
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fgt-2fsTgmzqCiNik1XLm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability twilio-messages-create-preflight-validator-38ddf265 -d '<json body>'
```

Example prompt: Before I send this Twilio SMS, can you run a preflight check on my Messages.create payload — it's a POST with a JSON body — and tell me if there are any failures, warnings, or unknown fields I should fix first?

## When to prefer this

Use this endpoint when you want to validate a Twilio Messages.create payload before sending to avoid wasting API credits, hitting delivery failures, or debugging live sends. Prefer this over sending directly when iterating on message templates, building integrations, or running automated pre-send checks in a workflow. It is especially valuable when the cost of a failed or erroneous send is high, or when you want to catch structural and parameter issues in CI/CD pipelines without side effects.

## Known failure modes

- Malformed input schema causes 400 error — body or bodyType not specified correctly
- Unknown Twilio parameters flagged as unknowns rather than errors — may not catch all real Twilio rejections
- Static validation only — does not catch runtime errors like invalid phone numbers or exhausted account credits
- If the Twilio API schema changes, static preflight rules may become stale
- Payment failure via x402 protocol prevents the request from being processed

## How this service works

Twilio SMS and messaging send preflight. Validate a Twilio Messages.create payload before sending SMS/MMS or other supported messages. Returns static failures, warnings, and unknowns without sending the message.

## Output

Returns a structured preflight report containing static validation failures (hard errors that would prevent sending), warnings (potential issues), and unknown fields in the submitted Twilio Messages.create payload — without actually sending any message.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twilio-messages-create-preflight-validator-38ddf265/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gate-network.matsutake-lab.workers.dev](https://www.zero.xyz/host/gate-network.matsutake-lab.workers.dev/llms.txt)
