{"openapi":"3.1.0","info":{"title":"Twilio Elastic SIP Trunking (BYOK) API","version":"0.1.0","description":"Twilio Elastic SIP Trunking (BYOK) lets an AI assistant read your own Twilio Elastic SIP Trunking data through the Twilio Elastic SIP Trunking 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: 7 tools (list_trunks, get_trunk, list_origination_urls, list_trunk_phone_numbers,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-twilio-trunking.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-twilio-trunking/docs"},"termsOfService":"https://connectorbay.com/byok-twilio-trunking/terms"},"servers":[{"url":"https://byok-twilio-trunking.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-twilio-trunking/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_trunks":{"post":{"operationId":"list_trunks","summary":"List Elastic SIP trunks with domain name, authentication type, secure-media, recording, transfer and CNAM settings. Use ","description":"List Elastic SIP trunks with domain name, authentication type, secure-media, recording, transfer and CNAM settings. Use for \"Which Elastic SIP trunks do I have in Twilio\".","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_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_trunk":{"post":{"operationId":"get_trunk","summary":"Get one Elastic SIP trunk: domain name, auth type, secure media, recording, call transfer and CNAM lookup settings. Use ","description":"Get one Elastic SIP trunk: domain name, auth type, secure media, recording, call transfer and CNAM lookup settings. Use for \"How is trunk TK... configured\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"sid":{"description":"The SID of the trunk: 'TK' followed by 32 hex characters.","maxLength":34,"title":"Sid","type":"string"}},"required":["sid"],"title":"get_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_origination_urls":{"post":{"operationId":"list_origination_urls","summary":"List the origination SIP URLs of a trunk (where inbound calls are sent) with priority, weight and enabled flag. Use for ","description":"List the origination SIP URLs of a trunk (where inbound calls are sent) with priority, weight and enabled flag. Use for \"Where does trunk TK... send inbound calls\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"trunk_sid":{"description":"The SID of the Elastic SIP Trunk: 'TK' followed by 32 hex characters.","maxLength":34,"title":"Trunk 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":["trunk_sid"],"title":"list_origination_urlsArguments","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_trunk_phone_numbers":{"post":{"operationId":"list_trunk_phone_numbers","summary":"List the Twilio phone numbers associated with a trunk with capabilities. Webhook URLs are not returned. Use for \"Which p","description":"List the Twilio phone numbers associated with a trunk with capabilities. Webhook URLs are not returned. Use for \"Which phone numbers are on trunk TK\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"trunk_sid":{"description":"The SID of the Elastic SIP Trunk: 'TK' followed by 32 hex characters.","maxLength":34,"title":"Trunk 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":["trunk_sid"],"title":"list_trunk_phone_numbersArguments","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_trunk_ip_access_control_lists":{"post":{"operationId":"list_trunk_ip_access_control_lists","summary":"List the IP access control lists attached to a trunk. Use for \"Which IP access lists protect trunk TK\".","description":"List the IP access control lists attached to a trunk. Use for \"Which IP access lists protect trunk TK\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"trunk_sid":{"description":"The SID of the Elastic SIP Trunk: 'TK' followed by 32 hex characters.","maxLength":34,"title":"Trunk 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":["trunk_sid"],"title":"list_trunk_ip_access_control_listsArguments","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_trunk_credential_lists":{"post":{"operationId":"list_trunk_credential_lists","summary":"List the credential lists attached to a trunk by name. The credentials themselves are not read. Use for \"Which credentia","description":"List the credential lists attached to a trunk by name. The credentials themselves are not read. Use for \"Which credential lists are attached to trunk TK\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"trunk_sid":{"description":"The SID of the Elastic SIP Trunk: 'TK' followed by 32 hex characters.","maxLength":34,"title":"Trunk 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":["trunk_sid"],"title":"list_trunk_credential_listsArguments","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_trunk_recording":{"post":{"operationId":"get_trunk_recording","summary":"Show a trunk's call recording mode and trim setting. Use for \"Are calls on trunk TK... being recorded\".","description":"Show a trunk's call recording mode and trim setting. Use for \"Are calls on trunk TK... being recorded\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"trunk_sid":{"description":"The SID of the Elastic SIP Trunk: 'TK' followed by 32 hex characters.","maxLength":34,"title":"Trunk Sid","type":"string"}},"required":["trunk_sid"],"title":"get_trunk_recordingArguments","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}}}}