Opt-in consent
Parameter table common for all methods (show, add, remove)
https://portal.bulkgate.com/api/1.0/address-book/agreement/show
https://portal.bulkgate.com/api/1.0/address-book/agreement/add
https://portal.bulkgate.com/api/1.0/address-book/agreement/remove
Show consent
API URL (show)
URL used to send HTTP requests:
https://portal.bulkgate.com/api/1.0/address-book/agreement/show
Example of full request (show)
POST /api/1.0/address-book/agreement/show HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
{
"application_id": 451,
"application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj",
"phone_number": "+420777777777"
}
Response to this command may be: (show)
In case of success:
{
"data": {
"phone_number": "+420777777777",
"agreement": "2023-03-30T13:29:15+02:00"
}
}
In case of error:
{
"type": "number_not_found",
"code": 400,
"error": "Number not found",
"detail": null
}
{
"type": "invalid_phone_mobile",
"code": 400,
"error": "Invalid phone mobile",
"detail": null
}
Add consent
If the phone number does not exist in the address book, it will be automatically added.
API URL (add)
URL used to send HTTP requests:
https://portal.bulkgate.com/api/1.0/address-book/agreement/add
Example of full request (add)
POST /api/1.0/address-book/agreement/add HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
{
"application_id": 451,
"application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj",
"phone_number": "+420777777777"
}
Response to this command may be: (add)
In case of success:
{
"data": {
"phone_number": "+420777777777",
"agreement": "2023-03-30T12:59:26+02:00"
}
}
In case of error:
{
"type": "invalid_phone_mobile",
"code": 400,
"error": "Invalid phone mobile",
"detail": null
}
Remove consent
API URL (remove)
URL used to send HTTP requests:
https://portal.bulkgate.com/api/1.0/address-book/agreement/remove
Example of full request (remove)
POST /api/1.0/address-book/agreement/remove HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
{
"application_id": 451,
"application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj",
"phone_number": "+420777777777"
}
Response to this command may be: (remove)
In case of success:
{
"data": {
"phone_number": "+420777777777",
"agreement": "null"
}
}
In case of error:
{
"type": "number_not_found",
"code": 400,
"error": "Number not found",
"detail": null
}
{
"type": "invalid_phone_mobile",
"code": 400,
"error": "Invalid phone mobile",
"detail": null
}
Was this page helpful?
Thank you for your feedback.