List opt-outs
Who opted out of messages from this number, oldest first. By default it lists active opt-outs only.
Set up WhatsApp first. Connect a WhatsApp number in the dashboard or with Connect numbers. Included on every paid plan. See plans.
number_idrequiredactivestring · enumtrue for active only, false for lifted only, all for both.
customerstringFind one customer by any spelling of their number.
limitintegerRows per page.
cursorstringThe next_cursor from the previous page.
curl -X GET 'https://backend.omnidim.io/api/v1/whatsapp/numbers/{number_id}/opt_outs?active=true&limit=20' \ -H 'Authorization: Bearer YOUR_API_KEY'
{ "data": [ { "id": 0, "phone_number_id": 0, "customer": "+15551234567", "source": "instructed_keyword", "active": false, "opted_out_at": "string", "opted_in_at": "string", "note": "string" } ], "has_more": false, "next_cursor": "string" }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
number_id*integerId of a WhatsApp number in your workspace, from
listWhatsappNumbers.
A number in another workspace answers 404.
active?stringtrue for active only, false for lifted only, all for both.
"true"truefalse"all"customer?stringFind one customer by any spelling of their number.
limit?integerRows per page.
1 <= value <= 10020cursor?stringThe next_cursor from the previous page.
Response body
application/jsonOne page of opt-outs.
application/jsondata?has_more?booleannext_cursor?stringUpload media
Upload an image or a document, then send it by its media_id on sendWhatsappMessage. Uploading costs nothing; only the send is charged. The media_id works for 24 hours and only for the number and type it was uploaded for.
Block a customer
Stop every message you start to this customer from this number, until the block is lifted. The response is 201 when the block is new and 200 when the customer was already blocked, in which case the entry is returned unchanged.
