Call each function by its full path. A question mark marks an optional field.
mobile/v1/messages:block
{
expectedTenantId?: string
actorId: string
}Response type
{
blocked: Array<{
actorId: string
displayName: string
}>
}mobile/v1/messages:blocked
{
expectedTenantId?: string
}Response type
{
blocked: Array<{
actorId: string
displayName: string
}>
}mobile/v1/messages:deleteThread
{
expectedTenantId?: string
threadId: string
}Response type
{
threadId: string
status: "saved"
}mobile/v1/messages:markRead
{
expectedTenantId?: string
threadId: string
}Response type
{
threadId: string
status: "saved"
}mobile/v1/messages:report
{
expectedTenantId?: string
threadId: string
messageId?: string
reason: string
}Response type
{
status: "reported"
}mobile/v1/messages:send
{
expectedTenantId?: string
clientOpId: string
body: string
threadId?: string
recipientIds?: Array<string>
}Response type
{
clientOpId: string
threadId: string
messageId: string
createdAt: string
replayed: boolean
}mobile/v1/messages:star
{
expectedTenantId?: string
threadId: string
starred: boolean
}Response type
{
threadId: string
status: "saved"
}mobile/v1/messages:thread
{
expectedTenantId?: string
threadId: string
paginationOpts: {
numItems: number
cursor: string | null
endCursor?: string | null
id?: number
maximumRowsRead?: number
maximumBytesRead?: number
}
}Response type
{
thread: {
threadId: string
participants: Array<{
actorId: string
displayName: string
isMe: boolean
}>
starred: boolean
blockedByMe: Array<string>
canSend: boolean
}
page: Array<{
messageId: string
authorId: string
isMine: boolean
body: string
createdAt: string
}>
isDone: boolean
continueCursor: string
}mobile/v1/messages:threads
{
expectedTenantId?: string
paginationOpts: {
numItems: number
cursor: string | null
endCursor?: string | null
id?: number
maximumRowsRead?: number
maximumBytesRead?: number
}
}Response type
{
page: Array<{
threadId: string
participants: Array<{
actorId: string
displayName: string
isMe: boolean
}>
lastMessage: null | {
body: string
isMine: boolean
createdAt: string
}
unreadCount: number
starred: boolean
updatedAt: string
}>
isDone: boolean
continueCursor: string
unreadTotal: number
}mobile/v1/messages:unblock
{
expectedTenantId?: string
actorId: string
}Response type
{
blocked: Array<{
actorId: string
displayName: string
}>
}mobile/v1/messages:unreadCount
{
expectedTenantId?: string
}Response type
{
count: number
}