# Send Message

Request işleminde **JSON** bir model gönderilir.&#x20;

{% hint style="info" %}
&#x20;Request tipi **POST** olabilir.
{% endhint %}

**Request;**

```
{
  "instanceID": "instance1",
  "userID": 1,
  "chatPhoneNumber": "908504900290",
  "messageType": 1,
  "messageText": "WapCRM Test Mesajı",
  "fileurl":"https://cxapi.wapcrm.net/documents/wapcrm.jpeg",
  "filename":"wapcrm.jpeg "
}
```

**instanceID:** - Required - \
Mesajın gönderileceği firmaya ait telefon numarası. Mesaj bu telefon numarasından gönderilir. \
[Phones ](/ayarlar/api/phone-list-telefon-listesi.md)metodundan dönen telefonlar bu alanda kullanılır.&#x20;

**userID:** - Required - \
Mesajı gönderen kullanıcı. Gönderilen mesaj ilgili kullanıcının raporunda listelenir. \
[Users ](/ayarlar/api/user-list-kullanici-listesi.md)işleminden dönen kullanıcılar bu alanda kullanılır.&#x20;

**chatPhoneNumber:**  - Required - \
Mesaj gönderilecek telefon numarasını belirtir. \
Türkiye numaraları için 905778889900 formatında ve 12 hane olmak zorundadır.

**messageType:**  - Required -  \
**1 -** (Mesaj / text) ya da **2** **-** (Resim / image) değerlerini alabilir.&#x20;

**messageText:** \
`messageType` alanı **1** gönderilirse girilmesi zorunlu alandır. \
Gönderilecek metin mesajını içerir.&#x20;

**Fileurl:** \
`messageType` alanı **2** gönderilirse girilmesi zorunlu alandır.\
Gönderilecek dosyanın alınacağı **URL** bilgisini içerir. \
Bu alandaki **URL** üzerinde herhangi bir izin olmaması gerekir ve her yerden erişilebilir gerekmektedir.&#x20;

**Filename:** `messageType` alanı **2** gönderilirse girilmesi zorunlu alandır. \
Dosyanın ismini belirtir.

Postman için örnek Json dosyasını buradan indirebilirsiniz.

{% file src="/files/-MEba\_bFnsMDPfCQEacJ" %}
WapCRM API Sample Json - Postman
{% endfile %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.wapcrm.net/ayarlar/api/send-message-mesaj-goender.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
