Mega Client icon

Mega Client

Work with Mega Client API

Actions13

Conversation → Create

AI-generated

Summary

Create a new conversation associated with a specific contact in the Mega Client inbox, optionally including custom attributes for the conversation.

Inputs

  • Contact Identifier (required) — The public identifier of the contact to associate with the conversation.
  • Custom Attributes — A JSON object containing custom attributes to assign to the new conversation.

Output shape

a single JSON object representing the created conversation

The output contains the full details of the newly created conversation as returned by the Mega Client API. Errors include descriptive messages and are paired with the input item that caused them.

Examples

Example 1: Create a conversation for a contact with identifier 'contact123' and add custom attributes.

Set Contact Identifier to 'contact123' and Custom Attributes to a JSON object (e.g. {"topic": "support"}).

Links

Discussion