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

# forward-media

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

| **Field** | **Type** | **Description** | **Example Value** |
| --- | --- | --- | --- |
| `sub_user_assigned_id` | Integer | Unique identifier assigned to the sub-user within your system. | `2132362` |
| `message_id` | String | Unique WhatsApp message ID associated with this incoming message. | `wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggODIzQzJGQjgyRjcwODNDMkRBNUFFQUI1NjlBRkJGQ0IA` |
| `message_text` | String | URL of the media file (image) sent by the user. | `https://business.me-mate.net/customers/mediafile/4735258744255332475153.jpeg` |
| `message_type` | String | Type of the message — for this payload, the value is `image`. | `image` |
| `message_from` | String | WhatsApp number of the sender in international format. | `966xxxxxxx02` |
| `message_sub_type` | String | Indicates message category — `forwarded` means the image was forwarded by the user. | `forwarded` |
| `direction` | String | Direction of message flow — `inbound` means received from user, `outbound` means sent by system. | `inbound` |
| `status` | String | Current processing or delivery status of the message. | `success` |
| `timestamp` | Integer | Unix timestamp (in seconds) representing when the message was received. | `1736246077` |
| `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/forward-media

## 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)
- `referral_source_type` (string, required)
- `sub_user_assigned_id` (integer, required)
- `referral_source_domain` (string, required)

## Examples

**Request**

```json
{
  "status": "success",
  "direction": "inbound",
  "timestamp": 1736246077,
  "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggODIzQzJGQjgyRjcwODNDMkRBNUFFQUI1NjlBRkJGQ0IA",
  "message_from": "966xxxxxxx02",
  "message_text": "https://business.me-mate.net/customers/mediafile/4735258744255332475153.jpeg",
  "message_type": "image",
  "message_sub_type": "forwarded",
  "referral_source_type": "(e.g. ad)",
  "sub_user_assigned_id": 2132362,
  "referral_source_domain": "(e.g. instagram,facebook,whatsapp)"
}
```

**SDK Code**

```python
import requests

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

payload = {
    "status": "success",
    "direction": "inbound",
    "timestamp": 1736246077,
    "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggODIzQzJGQjgyRjcwODNDMkRBNUFFQUI1NjlBRkJGQ0IA",
    "message_from": "966xxxxxxx02",
    "message_text": "https://business.me-mate.net/customers/mediafile/4735258744255332475153.jpeg",
    "message_type": "image",
    "message_sub_type": "forwarded",
    "referral_source_type": "(e.g. ad)",
    "sub_user_assigned_id": 2132362,
    "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/#post4';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"status":"success","direction":"inbound","timestamp":1736246077,"message_id":"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggODIzQzJGQjgyRjcwODNDMkRBNUFFQUI1NjlBRkJGQ0IA","message_from":"966xxxxxxx02","message_text":"https://business.me-mate.net/customers/mediafile/4735258744255332475153.jpeg","message_type":"image","message_sub_type":"forwarded","referral_source_type":"(e.g. ad)","sub_user_assigned_id":2132362,"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/#post4"

	payload := strings.NewReader("{\n  \"status\": \"success\",\n  \"direction\": \"inbound\",\n  \"timestamp\": 1736246077,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggODIzQzJGQjgyRjcwODNDMkRBNUFFQUI1NjlBRkJGQ0IA\",\n  \"message_from\": \"966xxxxxxx02\",\n  \"message_text\": \"https://business.me-mate.net/customers/mediafile/4735258744255332475153.jpeg\",\n  \"message_type\": \"image\",\n  \"message_sub_type\": \"forwarded\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 2132362,\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/#post4")

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\": 1736246077,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggODIzQzJGQjgyRjcwODNDMkRBNUFFQUI1NjlBRkJGQ0IA\",\n  \"message_from\": \"966xxxxxxx02\",\n  \"message_text\": \"https://business.me-mate.net/customers/mediafile/4735258744255332475153.jpeg\",\n  \"message_type\": \"image\",\n  \"message_sub_type\": \"forwarded\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 2132362,\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/#post4")
  .header("Content-Type", "application/json")
  .body("{\n  \"status\": \"success\",\n  \"direction\": \"inbound\",\n  \"timestamp\": 1736246077,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggODIzQzJGQjgyRjcwODNDMkRBNUFFQUI1NjlBRkJGQ0IA\",\n  \"message_from\": \"966xxxxxxx02\",\n  \"message_text\": \"https://business.me-mate.net/customers/mediafile/4735258744255332475153.jpeg\",\n  \"message_type\": \"image\",\n  \"message_sub_type\": \"forwarded\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 2132362,\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/#post4', [
  'body' => '{
  "status": "success",
  "direction": "inbound",
  "timestamp": 1736246077,
  "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggODIzQzJGQjgyRjcwODNDMkRBNUFFQUI1NjlBRkJGQ0IA",
  "message_from": "966xxxxxxx02",
  "message_text": "https://business.me-mate.net/customers/mediafile/4735258744255332475153.jpeg",
  "message_type": "image",
  "message_sub_type": "forwarded",
  "referral_source_type": "(e.g. ad)",
  "sub_user_assigned_id": 2132362,
  "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/#post4");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"status\": \"success\",\n  \"direction\": \"inbound\",\n  \"timestamp\": 1736246077,\n  \"message_id\": \"wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggODIzQzJGQjgyRjcwODNDMkRBNUFFQUI1NjlBRkJGQ0IA\",\n  \"message_from\": \"966xxxxxxx02\",\n  \"message_text\": \"https://business.me-mate.net/customers/mediafile/4735258744255332475153.jpeg\",\n  \"message_type\": \"image\",\n  \"message_sub_type\": \"forwarded\",\n  \"referral_source_type\": \"(e.g. ad)\",\n  \"sub_user_assigned_id\": 2132362,\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": 1736246077,
  "message_id": "wamid.HBgMOTE3OTc0NzU4OTAyFQIAEhggODIzQzJGQjgyRjcwODNDMkRBNUFFQUI1NjlBRkJGQ0IA",
  "message_from": "966xxxxxxx02",
  "message_text": "https://business.me-mate.net/customers/mediafile/4735258744255332475153.jpeg",
  "message_type": "image",
  "message_sub_type": "forwarded",
  "referral_source_type": "(e.g. ad)",
  "sub_user_assigned_id": 2132362,
  "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/#post4")! 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()
```