> 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.

# media-reply

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

| **Field**                | **Type**      | **Description**                                                                                           | **Example Value**                                                                                                           |
| ------------------------ | ------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `sub_user_assigned_id`   | Integer       | Unique identifier assigned to the sub-user within your system.                                            | `214362`                                                                                                                    |
| `message_id`             | String        | Unique WhatsApp message ID associated with the message.                                                   | `wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggN0Y0M0E1MUNENjlBQjAzM0U0M0VDMjhGQkFFRTBFMDUA`                                            |
| `message_text`           | String        | The actual message content. In this case, it's an image URL.                                              | `https://business.me-mate.net/customers/mediafile/4735258719255332475153.jpeg`                                              |
| `message_type`           | String        | Type of message received. Can be `text`, `image`, `video`, `audio`, `document`, etc.                      | `image`                                                                                                                     |
| `replyformsg`            | String (JSON) | JSON string containing details of the original message being replied to (if any).                         | `{"message_text":"ok","message_type":"text","message_id":"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSNjRBNjc4QkQ1OUU2OEEwMTA0AA=="}` |
| `message_from`           | String        | The sender’s WhatsApp number in international format.                                                     | `966xxxxxxxx02`                                                                                                             |
| `message_sub_type`       | String        | Indicates that the message is a reply to another message. Possible values: `reply_msg`, `forwarded`, etc. | `reply_msg`                                                                                                                 |
| `direction`              | String        | Message direction, can be `inbound` (received) or `outbound` (sent).                                      | `inbound`                                                                                                                   |
| `status`                 | String        | Message delivery or processing status.                                                                    | `success`                                                                                                                   |
| `timestamp`              | Integer       | Unix timestamp indicating when the message was received.                                                  | `1736245015`                                                                                                                |
| `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/media-reply

## Request

### Body (application/json)

- `status` (string, required)
- `direction` (string, required)
- `timestamp` (integer, required)
- `message_id` (string, required)
- `replyformsg` (string, required)
- `message_from` (string, required)
- `message_text` (string, required)
- `message_type` (string, required)
- `message_sub_type` (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": 1736245015,
  "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggN0Y0M0E1MUNENjlBQjAzM0U0M0VDMjhGQkFFRTBFMDUA",
  "replyformsg": "{\"message_text\":\"ok\",\"message_type\":\"text\",\"message_id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSNjRBNjc4QkQ1OUU2OEEwMTA0AA==\"}",
  "message_from": "966xxxxxxxx02",
  "message_text": "https://business.me-mate.net/customers/mediafile/4735258719255332475153.jpeg",
  "message_type": "image",
  "message_sub_type": "reply_msg",
  "referral_source_type": "(e.g. ad)",
  "sub_user_assigned_id": 214362,
  "referral_source_domain": "(e.g. instagram,facebook,whatsapp)"
}
```

**SDK Code**

```python
import requests

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

payload = {
    "status": "success",
    "direction": "inbound",
    "timestamp": 1736245015,
    "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggN0Y0M0E1MUNENjlBQjAzM0U0M0VDMjhGQkFFRTBFMDUA",
    "replyformsg": "{\"message_text\":\"ok\",\"message_type\":\"text\",\"message_id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSNjRBNjc4QkQ1OUU2OEEwMTA0AA==\"}",
    "message_from": "966xxxxxxxx02",
    "message_text": "https://business.me-mate.net/customers/mediafile/4735258719255332475153.jpeg",
    "message_type": "image",
    "message_sub_type": "reply_msg",
    "referral_source_type": "(e.g. ad)",
    "sub_user_assigned_id": 214362,
    "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/#post6';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"status":"success","direction":"inbound","timestamp":1736245015,"message_id":"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggN0Y0M0E1MUNENjlBQjAzM0U0M0VDMjhGQkFFRTBFMDUA","replyformsg":"{\"message_text\":\"ok\",\"message_type\":\"text\",\"message_id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSNjRBNjc4QkQ1OUU2OEEwMTA0AA==\"}","message_from":"966xxxxxxxx02","message_text":"https://business.me-mate.net/customers/mediafile/4735258719255332475153.jpeg","message_type":"image","message_sub_type":"reply_msg","referral_source_type":"(e.g. ad)","sub_user_assigned_id":214362,"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/#post6"

	payload := strings.NewReader("{\n  \"status\": \"success\",\n  \"direction\": \"inbound\",\n  \"timestamp\": 1736245015,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggN0Y0M0E1MUNENjlBQjAzM0U0M0VDMjhGQkFFRTBFMDUA\",\n  \"replyformsg\": \"{\\\"message_text\\\":\\\"ok\\\",\\\"message_type\\\":\\\"text\\\",\\\"message_id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSNjRBNjc4QkQ1OUU2OEEwMTA0AA==\\\"}\",\n  \"message_from\": \"966xxxxxxxx02\",\n  \"message_text\": \"https://business.me-mate.net/customers/mediafile/4735258719255332475153.jpeg\",\n  \"message_type\": \"image\",\n  \"message_sub_type\": \"reply_msg\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 214362,\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/#post6")

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\": 1736245015,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggN0Y0M0E1MUNENjlBQjAzM0U0M0VDMjhGQkFFRTBFMDUA\",\n  \"replyformsg\": \"{\\\"message_text\\\":\\\"ok\\\",\\\"message_type\\\":\\\"text\\\",\\\"message_id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSNjRBNjc4QkQ1OUU2OEEwMTA0AA==\\\"}\",\n  \"message_from\": \"966xxxxxxxx02\",\n  \"message_text\": \"https://business.me-mate.net/customers/mediafile/4735258719255332475153.jpeg\",\n  \"message_type\": \"image\",\n  \"message_sub_type\": \"reply_msg\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 214362,\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/#post6")
  .header("Content-Type", "application/json")
  .body("{\n  \"status\": \"success\",\n  \"direction\": \"inbound\",\n  \"timestamp\": 1736245015,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggN0Y0M0E1MUNENjlBQjAzM0U0M0VDMjhGQkFFRTBFMDUA\",\n  \"replyformsg\": \"{\\\"message_text\\\":\\\"ok\\\",\\\"message_type\\\":\\\"text\\\",\\\"message_id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSNjRBNjc4QkQ1OUU2OEEwMTA0AA==\\\"}\",\n  \"message_from\": \"966xxxxxxxx02\",\n  \"message_text\": \"https://business.me-mate.net/customers/mediafile/4735258719255332475153.jpeg\",\n  \"message_type\": \"image\",\n  \"message_sub_type\": \"reply_msg\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 214362,\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/#post6', [
  'body' => '{
  "status": "success",
  "direction": "inbound",
  "timestamp": 1736245015,
  "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggN0Y0M0E1MUNENjlBQjAzM0U0M0VDMjhGQkFFRTBFMDUA",
  "replyformsg": "{\\"message_text\\":\\"ok\\",\\"message_type\\":\\"text\\",\\"message_id\\":\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSNjRBNjc4QkQ1OUU2OEEwMTA0AA==\\"}",
  "message_from": "966xxxxxxxx02",
  "message_text": "https://business.me-mate.net/customers/mediafile/4735258719255332475153.jpeg",
  "message_type": "image",
  "message_sub_type": "reply_msg",
  "referral_source_type": "(e.g. ad)",
  "sub_user_assigned_id": 214362,
  "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/#post6");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"status\": \"success\",\n  \"direction\": \"inbound\",\n  \"timestamp\": 1736245015,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggN0Y0M0E1MUNENjlBQjAzM0U0M0VDMjhGQkFFRTBFMDUA\",\n  \"replyformsg\": \"{\\\"message_text\\\":\\\"ok\\\",\\\"message_type\\\":\\\"text\\\",\\\"message_id\\\":\\\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSNjRBNjc4QkQ1OUU2OEEwMTA0AA==\\\"}\",\n  \"message_from\": \"966xxxxxxxx02\",\n  \"message_text\": \"https://business.me-mate.net/customers/mediafile/4735258719255332475153.jpeg\",\n  \"message_type\": \"image\",\n  \"message_sub_type\": \"reply_msg\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 214362,\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": 1736245015,
  "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggN0Y0M0E1MUNENjlBQjAzM0U0M0VDMjhGQkFFRTBFMDUA",
  "replyformsg": "{\"message_text\":\"ok\",\"message_type\":\"text\",\"message_id\":\"wamid.HBgMOTE3OTc0NzU4OTAyFQIAERgSNjRBNjc4QkQ1OUU2OEEwMTA0AA==\"}",
  "message_from": "966xxxxxxxx02",
  "message_text": "https://business.me-mate.net/customers/mediafile/4735258719255332475153.jpeg",
  "message_type": "image",
  "message_sub_type": "reply_msg",
  "referral_source_type": "(e.g. ad)",
  "sub_user_assigned_id": 214362,
  "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/#post6")! 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()
```