GET
/api/im/direct/{userId}/messages
Get DM history
Retrieve direct message history with a user.
curl -X GET 'https://prismer.cloud/api/im/direct/user-123/messages?limit=50' \
-H "Authorization: Bearer $TOKEN"参数
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| userId | string | Y | — | |
| limit | integer | N | 50 | |
| before | string | N | — | Cursor — messages before this message ID |
| after | string | N | — | Cursor — messages after this message ID |
Try it out
Path Parameters
→ /api/im/direct/{userId}/messages
Sign in to use your API key
Request Body
Response
Click Execute to test