{"openapi":"3.1.0","info":{"title":"Twilio Pricing (BYOK) API","version":"0.1.0","description":"Twilio Pricing (BYOK) lets an AI assistant read your own Twilio Pricing data through the Twilio Pricing API with a key you supply (Account SID or API key SID (use a restricted API key, SID starts with SK, rather than the main Auth Token where possible)). Read-only: 9 tools (list_sms_countries, get_sms_country_prices, list_number_countries, get_number_country_prices, list_voice_countries,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-twilio-pricing.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-twilio-pricing/docs"},"termsOfService":"https://connectorbay.com/byok-twilio-pricing/terms"},"servers":[{"url":"https://byok-twilio-pricing.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-twilio-pricing/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_sms_countries":{"post":{"operationId":"list_sms_countries","summary":"List the countries where Twilio publishes SMS prices. Use for \"In which countries does Twilio list SMS prices\".","description":"List the countries where Twilio publishes SMS prices. Use for \"In which countries does Twilio list SMS prices\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 1000).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging token: the PageToken value inside meta.next_page_url from the previous answer (leave empty for the first page).","title":"Page Token"}},"title":"list_sms_countriesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_sms_country_prices":{"post":{"operationId":"get_sms_country_prices","summary":"Get SMS prices for one country: inbound price per number type and outbound prices per carrier (MCC and MNC). Prices are ","description":"Get SMS prices for one country: inbound price per number type and outbound prices per carrier (MCC and MNC). Prices are in the unit given by price_unit. Use for \"How much does an SMS to India cost with Twilio\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"iso_country":{"description":"Two-letter ISO 3166 country code, for example 'US' or 'IN'.","maxLength":2,"title":"Iso Country","type":"string"}},"required":["iso_country"],"title":"get_sms_country_pricesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_number_countries":{"post":{"operationId":"list_number_countries","summary":"List the countries where Twilio publishes phone number prices. Use for \"In which countries can I rent Twilio phone numbe","description":"List the countries where Twilio publishes phone number prices. Use for \"In which countries can I rent Twilio phone numbers\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 1000).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging token: the PageToken value inside meta.next_page_url from the previous answer (leave empty for the first page).","title":"Page Token"}},"title":"list_number_countriesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_number_country_prices":{"post":{"operationId":"get_number_country_prices","summary":"Get monthly phone number prices for one country, per number type (local, mobile, toll-free ...). Prices are in the unit ","description":"Get monthly phone number prices for one country, per number type (local, mobile, toll-free ...). Prices are in the unit given by price_unit. Use for \"How much does a Twilio phone number in Germany cost per month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"iso_country":{"description":"Two-letter ISO 3166 country code, for example 'US' or 'IN'.","maxLength":2,"title":"Iso Country","type":"string"}},"required":["iso_country"],"title":"get_number_country_pricesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_voice_countries":{"post":{"operationId":"list_voice_countries","summary":"List the countries where Twilio publishes voice prices. Use for \"In which countries does Twilio list voice call prices\".","description":"List the countries where Twilio publishes voice prices. Use for \"In which countries does Twilio list voice call prices\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 1000).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging token: the PageToken value inside meta.next_page_url from the previous answer (leave empty for the first page).","title":"Page Token"}},"title":"list_voice_countriesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_voice_country_prices":{"post":{"operationId":"get_voice_country_prices","summary":"Get voice prices for one country: outbound price per destination prefix and inbound price per number type. Prices are in","description":"Get voice prices for one country: outbound price per destination prefix and inbound price per number type. Prices are in the unit given by price_unit. Use for \"What does a call to Brazil cost with Twilio Voice\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"iso_country":{"description":"Two-letter ISO 3166 country code, for example 'US' or 'IN'.","maxLength":2,"title":"Iso Country","type":"string"}},"required":["iso_country"],"title":"get_voice_country_pricesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_voice_price_for_number":{"post":{"operationId":"get_voice_price_for_number","summary":"Get the outbound voice price for calling one specific phone number, optionally from a given Twilio number. Only a price ","description":"Get the outbound voice price for calling one specific phone number, optionally from a given Twilio number. Only a price lookup; no call is made. Use for \"How much would it cost to call +4930123456 with Twilio\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"destination_number":{"description":"Destination phone number in E.164 format, for example +14155550100.","maxLength":20,"title":"Destination Number","type":"string"},"origination_number":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Optional Twilio number the call would come from, E.164 format.","title":"Origination Number"}},"required":["destination_number"],"title":"get_voice_price_for_numberArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_trunking_countries":{"post":{"operationId":"list_trunking_countries","summary":"List the countries where Twilio publishes Elastic SIP Trunking prices. Use for \"In which countries does Twilio list SIP ","description":"List the countries where Twilio publishes Elastic SIP Trunking prices. Use for \"In which countries does Twilio list SIP trunking prices\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 1000).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging token: the PageToken value inside meta.next_page_url from the previous answer (leave empty for the first page).","title":"Page Token"}},"title":"list_trunking_countriesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_trunking_country_prices":{"post":{"operationId":"get_trunking_country_prices","summary":"Get Elastic SIP Trunking prices for one country: terminating prices per destination prefix and originating prices per nu","description":"Get Elastic SIP Trunking prices for one country: terminating prices per destination prefix and originating prices per number type. Use for \"What does SIP trunking to the UK cost with Twilio\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"iso_country":{"description":"Two-letter ISO 3166 country code, for example 'US' or 'IN'.","maxLength":2,"title":"Iso Country","type":"string"}},"required":["iso_country"],"title":"get_trunking_country_pricesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}