{"uid":"cap_fgt-2fsTgmzqCiNik1XLm","slug":"twilio-messages-create-preflight-validator-38ddf265","name":"Twilio Messages.create Preflight Validator","description":"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.","url":"https://gate-network.matsutake-lab.workers.dev/v1/gates/twilio.messages.create/preflight","method":"POST","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8BIu9V6R04cbOb7wCwXXr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a Twilio Messages.create payload for SMS/MMS sending without actually dispatching the message, returning static failures, warnings, and unknowns.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Catch SMS payload errors before sending","prompt":"I'm about to fire off a batch of Twilio SMS messages using Messages.create — can you validate my JSON payload first and flag any failures or warnings so I don't waste credits or miss deliveries?"},{"title":"Validate MMS request structure pre-dispatch","prompt":"I've built a Twilio MMS request body and I want to do a dry run before actually sending — can you preflight check it and tell me if there's anything wrong or any fields Twilio won't recognize?"},{"title":"Debug a failing Twilio messaging integration","prompt":"My Twilio Messages.create calls keep failing and I'm not sure why — can you preflight validate this payload I'm sending and show me exactly which fields are causing errors or triggering warnings?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T13:18:27.531Z","isFirstParty":false}