Consent API
This endpoint to check that user has taken opt-in or not.
URL:​ https://waapi.pepipost.com/api/v2/consent/
Method: POST
Parameters:
Parameter
Description
Data Type
Required
phone_number
Provide the phone number which you have used while opt-in.
String
Yes
Request Body
{Â
"phone_number":"919999999999",Â
}Â
Responses
In case of Success :
{Â
"status": "success",Â
"data": {Â
"ip": "192.168.7.26",Â
"phone_number": "919999999999",Â
"optin_source": "6465466",Â
"user_agent": "Mozilla",Â
"created_date": "2019-04-22 15:36:01.0"Â
}Â
}Â
Status is success means optin added successfully.
In case of failure:
{Â
"status": "failure",Â
"error": {Â
"message": "Optin details not found for 919999999999"Â
}Â
}Â
According to error, code and message will change.
Last updated
Was this helpful?