# Push Message

## Push

<mark class="gb-c-green">`POST`</mark> `http://h1.eko12.local/bot/v2/message/push`

```
curl --location '{process.env.EKO_HTTP_URI}/bot/v2/message/push' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
--data '{
    "tid": "67f8b9d48233e6b19c8501f1",
    "gid": "67f8b9d48233e6a3b68501ef",
    "messages": [
        {
            "type": "text",
            "text": "OTP test: 12345"
        }
    ]
}'
```

#### Request Body

| Name     | Type   | Description                                        |
| -------- | ------ | -------------------------------------------------- |
| tid      | string | Thread ID                                          |
| gid      | string | Group ID                                           |
| messages | array  | An array of messages object (see "Message Schema") |

**200**

```
[
    {
        "status": "success",
        "message": {
            "id": "67f8bebe57f4dd6001e2f2dc",
            "type": "botv2",
            "groupId": "67f8b9d48233e6a3b68501ef",
            "threadId": "67f8b9d48233e6b19c8501f1"
        }
    }
]
```
