{"openapi":"3.1.0","info":{"title":"Bandwidth Voice (BYOK) API","version":"0.1.0","description":"Bandwidth Voice (BYOK) lets an AI assistant read your own Bandwidth Voice data through the Bandwidth Voice API with a key you supply (API username). Read-only: 6 tools (list_calls, get_call, list_conferences, get_conference, list_recordings, list_call_recordings). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-bandwidth-voice.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-bandwidth-voice/docs"},"termsOfService":"https://connectorbay.com/byok-bandwidth-voice/terms"},"servers":[{"url":"https://byok-bandwidth-voice.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-bandwidth-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_calls":{"post":{"operationId":"list_calls","summary":"List voice calls oldest first (calls are kept 7 days after hang-up) with numbers, direction, state, timings and disconne","description":"List voice calls oldest first (calls are kept 7 days after hang-up) with numbers, direction, state, timings and disconnect cause. Only the first page is returned; narrow with the time filters. Use for \"Which Bandwidth calls ended with an error in the last day\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Your Bandwidth account id, for example 9900000.","maxLength":200,"title":"Account Id","type":"string"},"to":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only calls to this number.","title":"To"},"from_number":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only calls from this number.","title":"From Number"},"min_start_time":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only calls started at or after this ISO 8601 time.","title":"Min Start Time"},"max_start_time":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only calls started at or before this ISO 8601 time.","title":"Max Start Time"},"disconnect_cause":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only calls with this disconnect cause.","title":"Disconnect Cause"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Maximum calls to return (1 to 100).","title":"Page Size"}},"required":["account_id"],"title":"list_callsArguments","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_call":{"post":{"operationId":"get_call","summary":"Get the state of one call: numbers, direction, state, timings, disconnect cause and error message (kept for 7 days). Use","description":"Get the state of one call: numbers, direction, state, timings, disconnect cause and error message (kept for 7 days). Use for \"What happened to Bandwidth call c-15ac29a2-1331029c-2cb0-4a07-b8c4-1e39e9a2f37d\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Your Bandwidth account id, for example 9900000.","maxLength":200,"title":"Account Id","type":"string"},"call_id":{"description":"Programmable Voice call id.","maxLength":200,"title":"Call Id","type":"string"}},"required":["account_id","call_id"],"title":"get_callArguments","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_conferences":{"post":{"operationId":"list_conferences","summary":"List voice conferences (up to the first page) with name, creation and completion time and active members. Use for \"Are a","description":"List voice conferences (up to the first page) with name, creation and completion time and active members. Use for \"Are any Bandwidth conferences active right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Your Bandwidth account id, for example 9900000.","maxLength":200,"title":"Account Id","type":"string"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only conferences with this name.","title":"Name"},"min_created_time":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only conferences created at or after this ISO 8601 time.","title":"Min Created Time"},"max_created_time":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only conferences created at or before this ISO 8601 time.","title":"Max Created Time"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Maximum conferences to return (1 to 100).","title":"Page Size"}},"required":["account_id"],"title":"list_conferencesArguments","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_conference":{"post":{"operationId":"get_conference","summary":"Get one conference: name, times and active members with mute and hold flags. Use for \"Who is in Bandwidth conference con","description":"Get one conference: name, times and active members with mute and hold flags. Use for \"Who is in Bandwidth conference conf-1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Your Bandwidth account id, for example 9900000.","maxLength":200,"title":"Account Id","type":"string"},"conference_id":{"description":"Conference id.","maxLength":200,"title":"Conference Id","type":"string"}},"required":["account_id","conference_id"],"title":"get_conferenceArguments","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_recordings":{"post":{"operationId":"list_recordings","summary":"List metadata of call recordings (id, call, numbers, duration, format, status, times); media links and transcripts are n","description":"List metadata of call recordings (id, call, numbers, duration, format, status, times); media links and transcripts are not returned. Capped at 1000 by the API. Use for \"Which Bandwidth calls were recorded today\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Your Bandwidth account id, for example 9900000.","maxLength":200,"title":"Account Id","type":"string"},"to":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only recordings with this destination number.","title":"To"},"from_number":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only recordings from this number.","title":"From Number"},"min_start_time":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only recordings started at or after this ISO 8601 time.","title":"Min Start Time"},"max_start_time":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only recordings started before this ISO 8601 time.","title":"Max Start Time"}},"required":["account_id"],"title":"list_recordingsArguments","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_call_recordings":{"post":{"operationId":"list_call_recordings","summary":"List metadata of the recordings made during one call. Use for \"Was Bandwidth call c-1 recorded\".","description":"List metadata of the recordings made during one call. Use for \"Was Bandwidth call c-1 recorded\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Your Bandwidth account id, for example 9900000.","maxLength":200,"title":"Account Id","type":"string"},"call_id":{"description":"Programmable Voice call id.","maxLength":200,"title":"Call Id","type":"string"}},"required":["account_id","call_id"],"title":"list_call_recordingsArguments","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}}}}