{"uid":"cap_qGnxlcH3u0Ky3idAYH1SP","slug":"odile-direct-a2a-test-call-17d182d3","name":"Odile Direct A2A Test Call","description":"Resolve an opted-in business number, read its A2A agent card, and send a message or booking through Odile Direct.","url":"https://api.odilelabs.com/a2a/v1/x402/test-call?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"number":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$","description":"E.164 line owned by the person requesting this test. Twilio Lookup must confirm landline, fixedVoip or nonFixedVoip; mobile and unknown are refused."},"language":{"enum":["spanish","chinese","vietnamese","filipino","arabic","polish","es","zh","vi","tl","ar","pl"],"type":"string","description":"Optional name or code matching the selected language scenario."},"scenario":{"enum":["emergency","booking","price","disclosure","spanish","chinese","vietnamese","filipino","arabic","polish","unavailable","cancel","handoff","interrupt"],"type":"string"},"configuration":{"type":"object","properties":{"pushNotificationConfig":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://","maxLength":500,"description":"Public HTTPS URL for the final A2A Task; redirects and private hosts are refused."},"token":{"type":"string","pattern":"^[^\\x00-\\x1f\\x7f]+$","maxLength":256,"minLength":1,"description":"Optional token returned in X-A2A-Notification-Token. authentication is not supported."}},"additionalProperties":false}},"description":"Optional A2A push configuration. It is bound to this payment with the call data; reuse the same configuration on retries.","additionalProperties":false},"owner_attests":{"type":"boolean","const":true,"description":"True only when the owner of this line requested the automated test call."}}},"responseSchema":{"type":"json","example":{"result":{"task":{"id":"dv_example","status":{"state":"TASK_STATE_WORKING"},"artifacts":[{"parts":[{"data":{"status_url":"https://api.odilelabs.com/a2a/v1/voice/dv_example?t=example"}}]}]}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","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":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_m8au3oBNUHiso2sw3jUs7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Initiates a structured AI-to-AI (A2A) test call scenario to an opted-in business phone number via the Odile Direct platform, returning a task status URL for async result tracking.","exampleAgentPrompt":"Run an Odile Direct test call to +12025550188 using the 'booking' scenario in Spanish, and send the result to https://myserver.example.com/a2a-callback — I confirm I own this line.","exampleUseCases":[{"title":"Multilingual booking scenario test","prompt":"Trigger an Odile Direct test call to +13105550177 with the 'booking' scenario in Vietnamese and push the A2A task result to https://hooks.myapp.com/odile-notify — I'm the owner of that number and I want to see how the business agent handles it."},{"title":"Emergency response scenario verification","prompt":"Send a test call to my business line +17185550143 through Odile Direct using the 'emergency' scenario in English, and post the final task status to https://callbacks.example.com/a2a — I attest I own this number."},{"title":"Cancellation handling in Arabic","prompt":"Use Odile Direct to run the 'cancel' scenario in Arabic against +12125550199, with push notifications going to https://pipeline.mycompany.com/a2a-result — I'm the number owner and want to see how the agent handles the cancellation flow."}],"resultDescription":"Returns a JSON object containing an A2A Task with a unique task ID, an initial state of TASK_STATE_WORKING, and an artifact containing a status_url where the agent can poll or await the final result of the test call interaction.","failureModes":["Mobile or unknown number type rejected by Twilio Lookup — only landline, fixedVoip, or nonFixedVoip are accepted","owner_attests not set to true — call refused without explicit attestation","Invalid E.164 phone number format — must match ^\\+[1-9]\\d{6,14}$","Push notification URL is not public HTTPS or uses a private host — configuration refused","Payment of $1 USDC not completed — x402 payment required before call is dispatched","Unsupported scenario or language enum value — request rejected","Business number not opted in to Odile Direct — resolution fails"],"whenToPreferThis":"Choose this endpoint when you need to programmatically test how an opted-in business phone line responds to structured AI agent scenarios (booking, emergency, cancellation, multilingual, etc.) via the Odile Direct A2A protocol. It is purpose-built for AI-to-business voice interaction testing with async task tracking and push notification delivery, and is distinct from generic voice-call or SMS APIs — use it when you specifically need A2A agent card resolution and scenario-driven interaction with a business number that has opted into the Odile ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:34:36.779Z","isFirstParty":false,"canonicalSlug":"odile-direct-a2a-test-call-17d182d3"}