Viki Platform

Private Messages

Inbox List

GET /v4/users/1u/threads.json?type=inbox

Unread List (subset of inbox)

GET /v4/users/1u/threads.json?type=inbox&unread=true

Sent List

GET /v4/users/1u/threads.json?type=sent

List messages in a thread

GET /v4/users/1u/threads/123123t.json

Create a thread

POST /v4/users/1u/threads.json, with http body: "{\"to\":\"2u\",\"content\":\"hi\"}"

Delete a thread

DELETE /v4/users/1u/threads/123123t.json

Mask as Unread

PUT /v4/users/1u/threads/123123t.json?unread=true

Mask as Read

PUT /v4/users/1u/threads/123123t.json?unread=false

Reply to a thread

POST /v4/users/1u/threads/123123t/messages.json, with http body: "{\"content\":\"hi\"}"

Message count

GET /v4/users/1u/alerts.json?unread=true&only_count=true