Skip to navigation

Create Conversation

Start (or find) a direct or group conversation with one or more recipients.

Authentication: Required — Bearer token.

Request body:

  • recipient_ids (optional) — Array of user IDs; OR
  • recipient_id (optional) — A single user ID (used when recipient_ids is empty)

The sender’s own ID is removed. One resolved recipient creates a direct thread; two or more create a group.

Response: data — The conversation list item.

Errors:

  • 422 — recipient_id is required
  • 404 — Recipient not found
  • 403 — Direct messages are not allowed in this community

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
recipient_idslist of integersOptional
recipient_idany or nullOptional

Response

OK