{"webhook_responses":{"incoming":[{"id":"491533627337955","changes":[{"value":{"messaging_product":"whatsapp","metadata":{"display_phone_number":"923058906050","phone_number_id":"597915633406951"},"message_echoes":[{"from":"923058906050","to":"923058906050","id":"wamid.HBgMOTIzMDU4OTA2MDUwFQIAERgWM0VCMDQ2RUY5MjgxRkE4MzI1NjhENAA=","timestamp":"1764244093","text":{"body":"API Access & Webhook\nWebhook Endpoint\nWhatsApp webhook payload will be forwarded to following endpoint via POST method\n\n Enable Webhook Endpoint\nExample Webhook Response\n\n{\n    \"contact\": {\n        \"status\": \"existing\/updated\/new\",\n        \"phone_number\": \"XXXXXXXXXX\",\n        \"uid\": \"XXXXXXXXXX\",\n        \"first_name\": \"XXXXXXXXXX\",\n        \"last_name\": \"XXXXXXXXXX\",\n        \"email\": \"XXXXXX@XXXXXXXXXX.com\",\n        \"language_code\": \"en\",\n        \"country\": \"XXXX\"\n    },\n      \"message\": {\n        \"whatsapp_business_phone_number_id\": \"XXXXXXXXXX\",\n        \"whatsapp_message_id\": \"wamid.XXXXXXXXXX\",\n        \"replied_to_whatsapp_message_id\": \"wamid.XXXXXXXXXX\",\n        \"is_new_message\": true,\n        \"body\": null,\n        \"status\": null,\n        \"media\": {\n          \"type\": \"image\",\n          \"link\": \"link to media\",\n          \"caption\": null,\n          \"mime_type\": \"image\/jpeg\",\n          \"file_name\": \"XXXXXXXXXX\",\n          \"original_filename\": \"XXXXXXXXXX\"\n        }\n      },\n    \"whatsapp_webhook_payload\": {\n        \/\/ WhatsApp webhook data\n    }\n}\n\nYour Account Access API\nAccess token is required to use available APIs\n\nYou need to pass access token as bearer token in header or 'token' as your url parameter\n\nAPI Access Token\nqLfLu0RsjWG50D5GsNPDuxmvxz9C8Rfmlj1MPu6mFWveOuG1dC1JRjYGkyInlDQP\nAPI Endpoint Information\nAPI Base URL\nhttps:\/\/apiwachat.com\/api\nYour Vendor UID\n93efc63b-46b4-432c-a015-4fa0df1b2c5f\nExample Endpoint for Send Message it will consist of API base url, vendor uid and token. You can also pass token as Bearer Token\nhttps:\/\/apiwachat.com\/api\/93efc63b-46b4-432c-a015-4fa0df1b2c5f\/contact\/send-message?token=qLfLu0RsjWG50D5GsNPDuxmvxz9C8Rfmlj1MPu6mFWveOuG1dC1JRjYGkyInlDQP\nAPI Documentation\nVariables and Parameters\nContact Related Dynamic Parameters\nYou are free to use following dynamic variables for parameters excluding phone_number, template_name, template_language, which will get replaced with contact's concerned field value.\n{first_name} {last_name} {full_name} {phone_number} {email} {country} {language_code}\nExample Parameters\n\n{\n    \"from_phone_number_id\": \"phone number id from which you would like to send message, if not provided default one will be used\",\n    \"phone_number\": \"phone number with country code without prefixing + or 0\",\n    \"template_name\" : \"your_template_name\",\n    \"template_language\" : \"en\",\n    \"header_image\" : \"https:\/\/cdn.pixabay.com\/photo\/2015\/01\/07\/15\/51\/woman-591576_1280.jpg\",\n    \"header_video\" : \"https:\/\/commondatastorage.googleapis.com\/gtv-videos-bucket\/sample\/ForBiggerEscapes.mp4\",\n    \"header_document\" : \"https:\/\/commondatastorage.googleapis.com\/gtv-videos-bucket\/sample\/ForBiggerEscapes.mp4\",\n    \"header_document_name\" : \"{full_name}\",\n    \"header_field_1\" : \"{full_name}\",\n    \"location_latitude\" : \"22.22\",\n    \"location_longitude\" : \"22.22\",\n    \"location_name\" : \"Example Name\",\n    \"location_address\" : \"Example address\",\n    \"field_1\" : \"{first_name}\",\n    \"field_2\" : \"{last_name}\",\n    \"field_3\" : \"{email}\",\n    \"field_4\" : \"{country}\",\n    \"field_5\" : \"{language_code}\",\n    \"button_0\" : \"{full_name}\",\n    \"button_1\" : \"{phone_number}\",\n    \"copy_code\" : \"EXAMPLE_CODE\"\n}"},"type":"text"}]},"field":"smb_message_echoes"}]}]}}