Pass or release WhatsApp thread control (WAME)

Passthrough to Self Serve thread control (WASS forwards the JSON to Meta thread_control).

Request parameters

Path parameters

KeyDescriptionValuesData TypeRequired/Optional
appIdIdentifier of the WhatsApp app the call acts on.6f414190-d45c-4671-bca1-fb6c3018cb13StringRequired

Body

KeyDescriptionValuesData TypeRequired/Optional
messaging_productMust be whatsapp.whatsapp—Required
toDestination WhatsApp user phone number (the conversation to pass or release).16XXXXXXX34—Required
actionpass hands the thread to another app on the WhatsApp account; release returns control to the primary app. Any other action Meta accepts on thread_control is also forwarded as-is.release—Required

Sample cURL — Pass or release WhatsApp thread control (WAME).

curl --request POST \
  --url 'https://partner.gupshup.io/partner/bizgate/app/6f414190-d45c-4671-bca1-fb6c3018cb13/thread/control' \
  --header 'Authorization: Bearer <UT>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "messaging_product" : "whatsapp",
  "to" : "16XXXXXXX34",
  "action" : "release"
}'

Sample success response (200)

{
  "success": true
}
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Identifier of the WhatsApp app the call acts on.

Body Params

Meta thread-control JSON (messaging_product, to, action).

Meta thread-control payload. WASS resolves the phone number id from the app and forwards this JSON to POST /{phone_number_id}/thread_control.

string
required

Must be whatsapp.

string
required

Destination WhatsApp user phone number (the conversation to pass or release).

string
enum
required

pass hands the thread to another app on the WhatsApp account; release returns control to the primary app. Any other action Meta accepts on thread_control is also forwarded as-is.

Allowed:
Responses

Language
Credentials
Bearer
Universal Token (UT)
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json