{"openapi":"3.1.0","info":{"title":"WhatsApp Business Platform (BYOK) API","version":"0.1.0","description":"WhatsApp Business Platform (BYOK) lets an AI assistant read your own WhatsApp Business Platform data through the WhatsApp Business Platform API with a key you supply (system user access token with whatsapp_business_management permission). Read-only: 6 tools (get_business_account, list_phone_numbers, get_phone_number, get_business_profile, list_message_templates, get_message_template). The BYOK...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-whatsapp.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-whatsapp/docs"},"termsOfService":"https://connectorbay.com/byok-whatsapp/terms"},"servers":[{"url":"https://byok-whatsapp.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-whatsapp/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/get_business_account":{"post":{"operationId":"get_business_account","summary":"Get a WhatsApp Business Account: name, time zone, account review status, business verification status, country, ownershi","description":"Get a WhatsApp Business Account: name, time zone, account review status, business verification status, country, ownership type and primary business location. Use for \"Is my WhatsApp Business Account verified\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"waba_id":{"description":"WhatsApp Business Account ID (a number shown in Meta Business Suite under WhatsApp accounts), for example '102290129340398'.","maxLength":30,"title":"Waba Id","type":"string"},"fields":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":"id,name,timezone_id,account_review_status,business_verification_status,country,ownership_type,primary_business_location","description":"Comma-separated fields to return: id, name, timezone_id, message_template_namespace, account_review_status, business_verification_status, country, ownership_type, primary_business_location.","title":"Fields"}},"required":["waba_id"],"title":"get_business_accountArguments","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_phone_numbers":{"post":{"operationId":"list_phone_numbers","summary":"List the business phone numbers of an account with display number, verified name, connection status, quality rating, mes","description":"List the business phone numbers of an account with display number, verified name, connection status, quality rating, messaging limit tier and verification state. Up to 100 per page. Use for \"What is the quality rating of my WhatsApp business numbers\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"waba_id":{"description":"WhatsApp Business Account ID (a number shown in Meta Business Suite under WhatsApp accounts), for example '102290129340398'.","maxLength":30,"title":"Waba Id","type":"string"},"fields":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":"id,display_phone_number,verified_name,status,quality_rating,country_code,code_verification_status,account_mode,messaging_limit_tier,is_official_business_account,host_platform","description":"Comma-separated fields to return: id, display_phone_number, verified_name, status, quality_rating, country_code, country_dial_code, code_verification_status, unified_cert_status, account_mode, host_platform, messaging_limit_tier, is_official_business_account.","title":"Fields"},"sort":{"anyOf":[{"enum":["creation_time.asc","creation_time.desc","last_onboarded_time.asc","last_onboarded_time.desc"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort order: creation_time.asc, creation_time.desc, last_onboarded_time.asc or last_onboarded_time.desc.","title":"Sort"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many numbers to return (1 to 100).","title":"Limit"},"after":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging cursor: the paging.cursors.after value of the previous answer (leave empty for the first page).","title":"After"}},"required":["waba_id"],"title":"list_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/get_phone_number":{"post":{"operationId":"get_phone_number","summary":"Get one business phone number: display number, verified name, quality rating and optionally name approval status and two","description":"Get one business phone number: display number, verified name, quality rating and optionally name approval status and two-step verification status. Use for \"Show details of my WhatsApp phone number 106540352242922\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"phone_number_id":{"description":"WhatsApp business phone number ID (not the phone number itself; get it from list_phone_numbers), for example '106540352242922'.","maxLength":30,"title":"Phone Number Id","type":"string"},"fields":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":"id,display_phone_number,verified_name,quality_rating,name_status,code_verification_status","description":"Comma-separated fields: the defaults are id, display_phone_number, verified_name, quality_rating; add name_status and code_verification_status as needed.","title":"Fields"}},"required":["phone_number_id"],"title":"get_phone_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/get_business_profile":{"post":{"operationId":"get_business_profile","summary":"Get the public business profile of a phone number: about text, address, description, email, profile picture URL, website","description":"Get the public business profile of a phone number: about text, address, description, email, profile picture URL, websites and industry. Use for \"What is my WhatsApp business profile\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"phone_number_id":{"description":"WhatsApp business phone number ID (not the phone number itself; get it from list_phone_numbers), for example '106540352242922'.","maxLength":30,"title":"Phone Number Id","type":"string"},"fields":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":"about,address,description,email,profile_picture_url,websites,vertical","description":"Comma-separated fields: about, address, description, email, profile_picture_url, websites, vertical, messaging_product.","title":"Fields"}},"required":["phone_number_id"],"title":"get_business_profileArguments","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_message_templates":{"post":{"operationId":"list_message_templates","summary":"List an account's message templates with name, language, status (APPROVED, PENDING, REJECTED ...), category, quality sco","description":"List an account's message templates with name, language, status (APPROVED, PENDING, REJECTED ...), category, quality score and last update time. Add components to the fields to get the template text. Use for \"Which of my WhatsApp templates are approved\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"waba_id":{"description":"WhatsApp Business Account ID (a number shown in Meta Business Suite under WhatsApp accounts), for example '102290129340398'.","maxLength":30,"title":"Waba Id","type":"string"},"fields":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":"id,name,status,category,sub_category,language,quality_score,last_updated_time,rejected_reason,parameter_format","description":"Comma-separated fields: id, name, status, category, sub_category, language, quality_score, last_updated_time, rejected_reason, parameter_format, components, library_template_name, health_status.","title":"Fields"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many templates to return (1 to 100).","title":"Limit"},"after":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging cursor: the paging.cursors.after value of the previous answer (leave empty for the first page).","title":"After"}},"required":["waba_id"],"title":"list_message_templatesArguments","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_message_template":{"post":{"operationId":"get_message_template","summary":"Get one message template by ID with status, category, language, quality score and rejection reason. Use for \"Why was my ","description":"Get one message template by ID with status, category, language, quality score and rejection reason. Use for \"Why was my WhatsApp template 1259544702043867 rejected\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"template_id":{"description":"Message template ID (the id of list_message_templates), for example '1259544702043867'.","maxLength":30,"title":"Template Id","type":"string"},"fields":{"anyOf":[{"maxLength":400,"type":"string"},{"type":"null"}],"default":"id,name,status,category,sub_category,language,quality_score,last_updated_time,rejected_reason,parameter_format","description":"Comma-separated fields: id, name, status, category, sub_category, language, quality_score, last_updated_time, rejected_reason, components.","title":"Fields"}},"required":["template_id"],"title":"get_message_templateArguments","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}}}}