> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.me-mate.net/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.me-mate.net/_mcp/server.

# Quick reply button webhook

POST https://business.me-mate.net/
Content-Type: application/json

## **Payload**

| Field | Type | Description |
| --- | --- | --- |
| `sub_user_assigned_id` | Integer | The ID assigned to the sub-user who received the message. |
| `message_id` | String | The unique ID of the message. |
| `message_text` | String | JSON-encoded message details, including context, sender, timestamp, and button details. |
| `targeted_message_id` | String | The ID of the original message that the incoming message is replying to. |
| `message_type` | String | The type of the message, e.g., `button`. |
| `message_from` | String | The phone number of the user who sent the message. |
| `message_sub_type` | String | A subtype of the message (e.g., `button`). |
| `direction` | String | The direction of the message (`inbound` or `outbound`). |
| `status` | String | The status of the webhook event (e.g., `success`). |
| `timestamp` | Integer | The UNIX timestamp when the message was received. |
| `referral_source_domain` | String |  Source ((e.g. instagram,facebook,whatsapp etc). |
| `referral_source_type` | String | The type of message source(e.g., ad). |

Reference: https://apidocs.me-mate.net/business-me-mate-net-ap-is-document-v-1-0/webhooks/quick-reply-button-webhook

## Request

### Body (application/json)

- `status` (string, required)
- `direction` (string, required)
- `timestamp` (integer, required)
- `message_id` (string, required)
- `message_from` (string, required)
- `message_text` (string, required)
- `message_type` (string, required)
- `message_sub_type` (string, required)
- `targeted_message_id` (string, required)
- `referral_source_type` (string, required)
- `sub_user_assigned_id` (integer, required)
- `referral_source_domain` (string, required)

## Examples

**Request**

```json
{
  "status": "success",
  "direction": "inbound",
  "timestamp": 1736772526,
  "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA",
  "message_from": "966xxxxxx7478",
  "message_text": "{\"context\":{\"from\":\"966xxxxxx6882\",\"id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\"},\"from\":\"966xxxxxx8902\",\"id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\",\"timestamp\":\"1736772526\",\"type\":\"button\",\"button\":{\"payload\":\"Schedule a Call\",\"text\":\"Schedule a Call\"}}",
  "message_type": "button",
  "message_sub_type": "button",
  "targeted_message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==",
  "referral_source_type": "(e.g. ad)",
  "sub_user_assigned_id": 21262,
  "referral_source_domain": "(e.g. instagram,facebook,whatsapp)"
}
```

**SDK Code**

```python
import requests

url = "https://business.me-mate.net/"

payload = {
    "status": "success",
    "direction": "inbound",
    "timestamp": 1736772526,
    "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA",
    "message_from": "966xxxxxx7478",
    "message_text": "{\"context\":{\"from\":\"966xxxxxx6882\",\"id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\"},\"from\":\"966xxxxxx8902\",\"id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\",\"timestamp\":\"1736772526\",\"type\":\"button\",\"button\":{\"payload\":\"Schedule a Call\",\"text\":\"Schedule a Call\"}}",
    "message_type": "button",
    "message_sub_type": "button",
    "targeted_message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==",
    "referral_source_type": "(e.g. ad)",
    "sub_user_assigned_id": 21262,
    "referral_source_domain": "(e.g. instagram,facebook,whatsapp)"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://business.me-mate.net/';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"status":"success","direction":"inbound","timestamp":1736772526,"message_id":"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA","message_from":"966xxxxxx7478","message_text":"{\"context\":{\"from\":\"966xxxxxx6882\",\"id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\"},\"from\":\"966xxxxxx8902\",\"id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\",\"timestamp\":\"1736772526\",\"type\":\"button\",\"button\":{\"payload\":\"Schedule a Call\",\"text\":\"Schedule a Call\"}}","message_type":"button","message_sub_type":"button","targeted_message_id":"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==","referral_source_type":"(e.g. ad)","sub_user_assigned_id":21262,"referral_source_domain":"(e.g. instagram,facebook,whatsapp)"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://business.me-mate.net/"

	payload := strings.NewReader("{\n  \"status\": \"success\",\n  \"direction\": \"inbound\",\n  \"timestamp\": 1736772526,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\",\n  \"message_from\": \"966xxxxxx7478\",\n  \"message_text\": \"{\\\"context\\\":{\\\"from\\\":\\\"966xxxxxx6882\\\",\\\"id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\\\"},\\\"from\\\":\\\"966xxxxxx8902\\\",\\\"id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\\\",\\\"timestamp\\\":\\\"1736772526\\\",\\\"type\\\":\\\"button\\\",\\\"button\\\":{\\\"payload\\\":\\\"Schedule a Call\\\",\\\"text\\\":\\\"Schedule a Call\\\"}}\",\n  \"message_type\": \"button\",\n  \"message_sub_type\": \"button\",\n  \"targeted_message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 21262,\n  \"referral_source_domain\": \"(e.g. instagram,facebook,whatsapp)\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://business.me-mate.net/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"status\": \"success\",\n  \"direction\": \"inbound\",\n  \"timestamp\": 1736772526,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\",\n  \"message_from\": \"966xxxxxx7478\",\n  \"message_text\": \"{\\\"context\\\":{\\\"from\\\":\\\"966xxxxxx6882\\\",\\\"id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\\\"},\\\"from\\\":\\\"966xxxxxx8902\\\",\\\"id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\\\",\\\"timestamp\\\":\\\"1736772526\\\",\\\"type\\\":\\\"button\\\",\\\"button\\\":{\\\"payload\\\":\\\"Schedule a Call\\\",\\\"text\\\":\\\"Schedule a Call\\\"}}\",\n  \"message_type\": \"button\",\n  \"message_sub_type\": \"button\",\n  \"targeted_message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 21262,\n  \"referral_source_domain\": \"(e.g. instagram,facebook,whatsapp)\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://business.me-mate.net/")
  .header("Content-Type", "application/json")
  .body("{\n  \"status\": \"success\",\n  \"direction\": \"inbound\",\n  \"timestamp\": 1736772526,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\",\n  \"message_from\": \"966xxxxxx7478\",\n  \"message_text\": \"{\\\"context\\\":{\\\"from\\\":\\\"966xxxxxx6882\\\",\\\"id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\\\"},\\\"from\\\":\\\"966xxxxxx8902\\\",\\\"id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\\\",\\\"timestamp\\\":\\\"1736772526\\\",\\\"type\\\":\\\"button\\\",\\\"button\\\":{\\\"payload\\\":\\\"Schedule a Call\\\",\\\"text\\\":\\\"Schedule a Call\\\"}}\",\n  \"message_type\": \"button\",\n  \"message_sub_type\": \"button\",\n  \"targeted_message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 21262,\n  \"referral_source_domain\": \"(e.g. instagram,facebook,whatsapp)\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://business.me-mate.net/', [
  'body' => '{
  "status": "success",
  "direction": "inbound",
  "timestamp": 1736772526,
  "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA",
  "message_from": "966xxxxxx7478",
  "message_text": "{\\"context\\":{\\"from\\":\\"966xxxxxx6882\\",\\"id\\":\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\\"},\\"from\\":\\"966xxxxxx8902\\",\\"id\\":\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\\",\\"timestamp\\":\\"1736772526\\",\\"type\\":\\"button\\",\\"button\\":{\\"payload\\":\\"Schedule a Call\\",\\"text\\":\\"Schedule a Call\\"}}",
  "message_type": "button",
  "message_sub_type": "button",
  "targeted_message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==",
  "referral_source_type": "(e.g. ad)",
  "sub_user_assigned_id": 21262,
  "referral_source_domain": "(e.g. instagram,facebook,whatsapp)"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://business.me-mate.net/");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"status\": \"success\",\n  \"direction\": \"inbound\",\n  \"timestamp\": 1736772526,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\",\n  \"message_from\": \"966xxxxxx7478\",\n  \"message_text\": \"{\\\"context\\\":{\\\"from\\\":\\\"966xxxxxx6882\\\",\\\"id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\\\"},\\\"from\\\":\\\"966xxxxxx8902\\\",\\\"id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\\\",\\\"timestamp\\\":\\\"1736772526\\\",\\\"type\\\":\\\"button\\\",\\\"button\\\":{\\\"payload\\\":\\\"Schedule a Call\\\",\\\"text\\\":\\\"Schedule a Call\\\"}}\",\n  \"message_type\": \"button\",\n  \"message_sub_type\": \"button\",\n  \"targeted_message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 21262,\n  \"referral_source_domain\": \"(e.g. instagram,facebook,whatsapp)\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  "status": "success",
  "direction": "inbound",
  "timestamp": 1736772526,
  "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA",
  "message_from": "966xxxxxx7478",
  "message_text": "{\"context\":{\"from\":\"966xxxxxx6882\",\"id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==\"},\"from\":\"966xxxxxx8902\",\"id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggQUMxODRFNjVCQkYwQ0IxQjdDRDhBQzJERUNBMkIwQ0IA\",\"timestamp\":\"1736772526\",\"type\":\"button\",\"button\":{\"payload\":\"Schedule a Call\",\"text\":\"Schedule a Call\"}}",
  "message_type": "button",
  "message_sub_type": "button",
  "targeted_message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSMTkwMDQyRjM5RUY5MUQ4NTcwAA==",
  "referral_source_type": "(e.g. ad)",
  "sub_user_assigned_id": 21262,
  "referral_source_domain": "(e.g. instagram,facebook,whatsapp)"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://business.me-mate.net/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```