View all created unsubscribers
https://portal.mobtexting.com/api/v2/
Note: Few elements in the endpoint may change from service to service.
{endpoint}whatsapp/suppressions/unsubscribers
name | optional | value |
---|---|---|
filter[id] | Yes | The id is unsubscriber id |
filter[iso] | Yes | The ISO2 of country |
filter[receiver] | Yes | The unsubscribed mobile number |
filter[type] | Yes | Type can be (tag, sender, service) |
filter[value] | Yes | Value for any of the given type |
curl -X GET \
'{endpoint}whatsapp/suppressions/unsubscribers' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer 7160f04c0587xxxxxxxxxxxxxxxx'
Kindly replace the token with your respective access_token and other params.
{
"status": "OK",
"code": 200,
"message": "Unsubscribers list",
"data": [
{
"id": "0e3fdaad-2b46-4dcf-8b14-xxxxxxxxxxxx",
"iso": "IN",
"receiver": "9198xxxxxxxx",
"type": "xxxxxxx",
"value": "xxxxx",
"created_at": "2023-04-11T12:53:29.000000Z"
},
....
],
"links": {
"first": "{endpoint}whatsapp/suppressions/unsubscribers?page=1",
"last": "{endpoint}whatsapp/suppressions/unsubscribers?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "{endpoint}whatsapp/suppressions/unsubscribers?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "{endpoint}whatsapp/suppressions/unsubscribers",
"per_page": 15,
"to": 6,
"total": 6
}
}
Create receiver using POST method.
https://portal.mobtexting.com/api/v2/
Note: Few elements in the endpoint may change from service to service.
{endpoint}whatsapp/suppressions/unsubscribers
Name | optional | Descriptions |
---|---|---|
receiver | No | Enter the receiver that you want to create |
type | Mixed | Type of the receivers (tag, product, sender, all) |
value | Mixed | Input the value of the type |
curl -X POST\
'{endpoint}whatsapp/suppressions/unsubscribers' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer 7160f04c0587xxxxxxxxxxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"receiver": "98xxxxxxxx",
"type": "xxxxxxx",
"value": "xxxxx"
}'
{
"status": "OK",
"code": 200,
"message": "Receiver added successfully",
"data": {
"id": "848c22a0-6969-455a-b5dc-4b119016b55b",
"iso": "IN",
"receiver": "919876543210",
"type": "tag",
"value": "promo",
"created_at": "2023-04-11T12:50:17.000000Z"
}
}
Edit receiver using put method.
https://portal.mobtexting.com/api/v2/
Note: Few elements in the endpoint may change from service to service.
{endpoint}whatsapp/suppressions/unsubscribers/{id}
Replace the with the actual id of the receiver that you would like to Edit.
Name | optional | Descriptions |
---|---|---|
receiver | No | Enter the receiver that you want to edit |
type | Mixed | Type of the receivers (tag, product, sender, all) |
value | Mixed | Input the value of the type |
curl -X PUT \
'{endpoint}whatsapp/suppressions/unsubscribers/848c22a0-6969-455a-b5dc-4b119016b55b' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer 7160f04c0587xxxxxxxxxxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"receiver": "98xxxxxxxx",
"type": "xxxxxxx",
"value": "xxxxx"
}'
{
"status": "OK",
"code": 200,
"message": "Receiver update successfully",
"data": {
"id": "848c22a0-6969-455a-b5dc-4b119016b55b",
"iso": "IN",
"receiver": "919876543210",
"type": "tag",
"value": "promo1",
"created_at": "2023-04-11T12:50:17.000000Z"
}
}
View one created receiver
https://portal.mobtexting.com/api/v2/
Note: Few elements in the endpoint may change from service to service.
{endpoint}whatsapp/suppressions/unsubscribers/{id}
curl -X GET \
'{endpoint}whatsapp/suppressions/unsubscribers/0e3fdaad-2b46-4dcf-8b14-aafffbxxxxxx' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer 7160f04c0587xxxxxxxxxxxxxxxx'
Kindly replace the token with your respective access_token .
{
"status": "OK",
"code": 200,
"message": "Unsubscribers data",
"data": {
"id": "0e3fdaad-2b46-4dcf-8b14-xxxxxxxxxxxx",
"iso": "IN",
"receiver": "9198xxxxxxxx",
"type": "xxxxxxx",
"value": "xxxxxx",
"created_at": "2023-04-11T12:53:29.000000Z"
}
}
Import receiver by uploading a file
https://portal.mobtexting.com/api/v2/
Note: Few elements in the endpoint may change from service to service.
{endpoint}/whatsapp/suppressions/unsubscribers/import
curl -X POST\
'{endpoint}whatsapp/suppressions/unsubscribers/import' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer 7160f04c0587xxxxxxxxxxxxxxxx' \
-H 'Content-Type: application/form-data' \
-F 'file=@"yourfilepath/receiver.xlsx"'
| Name | Description | Limits | Required |
| -------- | ------------------------------------------------------------ | ------ | -------- |
| file | Receiver number file. (Supported filetype: txt,csv,xls,xlsx) | 100 MB | Yes |
{
"status": "OK",
"message": "Receivers accepted for import"
}
Delete receiver using delete method
https://portal.mobtexting.com/api/v2/
Note: Few elements in the endpoint may change from service to service.
{endpoint}whatsapp/suppressions/unsubscribers/{id}
Replace the with the actual id of the receiver that you would like to delete.
curl -X DELETE \
'{endpoint}whatsapp/suppressions/unsubscribers/0e3fdaad-2b46-4dcf-8b14-aafffbxxxxxx' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer 7160f04c0587xxxxxxxxxxxxxxxx'
{
"status": "OK",
"code": 200,
"message": "Deleted Successfully",
"data": []
}
Delete all receiver at once
https://portal.mobtexting.com/api/v2/
Note: Few elements in the endpoint may change from service to service.
{endpoint}whatsapp/suppressions/unsubscribers
curl -X DELETE \
'{endpoint}whatsapp/suppressions/unsubscribers' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer 7160f04c0587xxxxxxxxxxxxxxxx'
{
"status": "OK",
"code": 200,
"message": "Deleted Successfully",
"data": []
}