WABA
Subscribe app to WABA webhook events
POST
/
v1
/
waba
/
subscribe-webhook
Subscribe app to WABA webhook events
curl --request POST \
--url https://api.wazapin.com/v1/waba/subscribe-webhook \
--header 'Content-Type: application/json' \
--data '
{
"phone_number_id": "<string>",
"progress_id": "<string>",
"waba_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phone_number_id: '<string>', progress_id: '<string>', waba_id: '<string>'})
};
fetch('https://api.wazapin.com/v1/waba/subscribe-webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/waba/subscribe-webhook"
payload = {
"phone_number_id": "<string>",
"progress_id": "<string>",
"waba_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"channel_id": "<string>",
"completed_steps": "<unknown>",
"created_at": "<string>",
"current_step": "<string>",
"error": "<string>",
"id": "<string>",
"organization_id": "<string>",
"phone_number_id": "<string>",
"step_status": "<string>",
"updated_at": "<string>",
"waba_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Response
OK
⌘I
Subscribe app to WABA webhook events
curl --request POST \
--url https://api.wazapin.com/v1/waba/subscribe-webhook \
--header 'Content-Type: application/json' \
--data '
{
"phone_number_id": "<string>",
"progress_id": "<string>",
"waba_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phone_number_id: '<string>', progress_id: '<string>', waba_id: '<string>'})
};
fetch('https://api.wazapin.com/v1/waba/subscribe-webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/waba/subscribe-webhook"
payload = {
"phone_number_id": "<string>",
"progress_id": "<string>",
"waba_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"channel_id": "<string>",
"completed_steps": "<unknown>",
"created_at": "<string>",
"current_step": "<string>",
"error": "<string>",
"id": "<string>",
"organization_id": "<string>",
"phone_number_id": "<string>",
"step_status": "<string>",
"updated_at": "<string>",
"waba_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}