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"

参数

FieldTypeReqDefaultDescription
userIdstringY
limitintegerN50
beforestringNCursor — messages before this message ID
afterstringNCursor — 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