---
# System prepended metadata

title: '**JIM Protocol**'

---


# **JIM Protocol**


# 群發訊息
#### Request:
```json=
{
  "command": 11,
  "data": {
    "chatType": 1,
    "cmd": 11,
    "content": "test",
    "createTime": 1565160617861,
    "from": "1565160145126",
    "group_id": "100",
    "id": "54c7bc474d8d41188e14b3428ead2547",
    "msgType": 0
  }
}
```
#### Response:
```json=
{
  "code": 10000,
  "command": 12,
  "msg": "ok 发送成功"
}
```

# 私聊
#### Request:
```json=
{
  "from": "1565160145126",
  "to": "1565062323129",
  "cmd": 11,
  "createTime": 1565160990221,
  "chatType": "2",
  "msgType": "0",
  "content": "111"
}
```
##### Response:
```jsonld=
{
  "code": 10000,
  "command": 12,
  "msg": "ok 发送成功"
}
```