{"openapi":"3.1.0","info":{"title":"Twilio Voice (BYOK) API","version":"0.1.0","description":"Twilio Voice (BYOK) lets an AI assistant read your own Twilio Voice data through the Twilio Voice 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: 10 tools (list_byoc_trunks, get_byoc_trunk, list_connection_policies, list_connection_policy_targets, list_dialing_permissions_countries,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-twilio-voice.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-twilio-voice/docs"},"termsOfService":"https://connectorbay.com/byok-twilio-voice/terms"},"servers":[{"url":"https://byok-twilio-voice.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-twilio-voice/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_byoc_trunks":{"post":{"operationId":"list_byoc_trunks","summary":"List Bring Your Own Carrier (BYOC) trunks with webhook URLs, connection policy and CNAM lookup flag. Use for \"Which BYOC","description":"List Bring Your Own Carrier (BYOC) trunks with webhook URLs, connection policy and CNAM lookup flag. Use for \"Which BYOC trunks do I have in Twilio Voice\".","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_byoc_trunksArguments","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_byoc_trunk":{"post":{"operationId":"get_byoc_trunk","summary":"Get one BYOC trunk: voice and status callback URLs, connection policy and source domain. Use for \"How is BYOC trunk CR..","description":"Get one BYOC trunk: voice and status callback URLs, connection policy and source domain. Use for \"How is BYOC trunk CR... configured\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"sid":{"description":"The SID of the BYOC trunk: 'CR' followed by 32 hex characters.","maxLength":34,"title":"Sid","type":"string"}},"required":["sid"],"title":"get_byoc_trunkArguments","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_connection_policies":{"post":{"operationId":"list_connection_policies","summary":"List connection policies (ordered sets of carrier SIP targets used by BYOC trunks). Use for \"Which Twilio connection pol","description":"List connection policies (ordered sets of carrier SIP targets used by BYOC trunks). Use for \"Which Twilio connection policies exist\".","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_connection_policiesArguments","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_connection_policy_targets":{"post":{"operationId":"list_connection_policy_targets","summary":"List the SIP targets of one connection policy with priority, weight and enabled flag. Use for \"Which carrier targets doe","description":"List the SIP targets of one connection policy with priority, weight and enabled flag. Use for \"Which carrier targets does connection policy NY... use\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"connection_policy_sid":{"description":"The SID of the connection policy: 'NY' followed by 32 hex characters.","maxLength":34,"title":"Connection Policy Sid","type":"string"},"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"}},"required":["connection_policy_sid"],"title":"list_connection_policy_targetsArguments","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_dialing_permissions_countries":{"post":{"operationId":"list_dialing_permissions_countries","summary":"List countries with whether the account may dial low-risk, high-risk special-service and toll-fraud numbers there. Filte","description":"List countries with whether the account may dial low-risk, high-risk special-service and toll-fraud numbers there. Filter by country, continent or flag. Use for \"Which countries is my Twilio account allowed to call\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"iso_code":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Only this country (ISO 3166-1 alpha-2, for example US).","title":"Iso Code"},"continent":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only this continent, for example EUROPE or ASIA.","title":"Continent"},"country_code":{"anyOf":[{"maxLength":6,"type":"string"},{"type":"null"}],"default":null,"description":"Only countries with this dialing code, for example 44.","title":"Country Code"},"low_risk_numbers_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to list countries where low-risk numbers can be dialed, false for those where they cannot.","title":"Low Risk Numbers Enabled"},"high_risk_special_numbers_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True or false: dialing of high-risk special-service numbers enabled.","title":"High Risk Special Numbers Enabled"},"high_risk_tollfraud_numbers_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True or false: dialing of high-risk toll-fraud numbers enabled.","title":"High Risk Tollfraud Numbers Enabled"},"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_dialing_permissions_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_dialing_permissions_country":{"post":{"operationId":"get_dialing_permissions_country","summary":"Get the dialing permissions for one country: low-risk, high-risk special-service and toll-fraud switches. Use for \"Can m","description":"Get the dialing permissions for one country: low-risk, high-risk special-service and toll-fraud switches. Use for \"Can my Twilio account call Germany\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"iso_code":{"description":"Country code, ISO 3166-1 alpha-2, for example 'DE'.","maxLength":2,"title":"Iso Code","type":"string"}},"required":["iso_code"],"title":"get_dialing_permissions_countryArguments","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_high_risk_special_prefixes":{"post":{"operationId":"list_high_risk_special_prefixes","summary":"List the high-risk special-service number prefixes of one country. Use for \"Which high-risk number prefixes exist for th","description":"List the high-risk special-service number prefixes of one country. Use for \"Which high-risk number prefixes exist for the UK\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"iso_code":{"description":"Country code, ISO 3166-1 alpha-2, for example 'GB'.","maxLength":2,"title":"Iso Code","type":"string"},"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"}},"required":["iso_code"],"title":"list_high_risk_special_prefixesArguments","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_dialing_permissions_settings":{"post":{"operationId":"get_dialing_permissions_settings","summary":"Show whether subaccounts inherit the main account's dialing permissions. Use for \"Do my subaccounts inherit dialing perm","description":"Show whether subaccounts inherit the main account's dialing permissions. Use for \"Do my subaccounts inherit dialing permissions\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_dialing_permissions_settingsArguments","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_ip_records":{"post":{"operationId":"list_ip_records","summary":"List IP address records (allowed source addresses for BYOC trunks) with CIDR length and name. Use for \"Which IP records ","description":"List IP address records (allowed source addresses for BYOC trunks) with CIDR length and name. Use for \"Which IP records are registered for Twilio Voice\".","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_ip_recordsArguments","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_source_ip_mappings":{"post":{"operationId":"list_source_ip_mappings","summary":"List mappings from IP records to SIP domains. Use for \"Which IP records map to which Twilio SIP domains\".","description":"List mappings from IP records to SIP domains. Use for \"Which IP records map to which Twilio SIP domains\".","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_source_ip_mappingsArguments","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}}}}