Skip to main content

createMessage

client.inbox.createMessage(data: CreateInboxMessageRequest): Promise<InboxMessage>

Creates a new inbox message.

Posts a message to the inbox that will appear as a notification for the user. Use this to communicate important information, requests for input, or status updates from agents.

Parameters

ParameterTypeRequiredDescription
dataCreateInboxMessageRequestYesMessage creation payload including title, body, and priority

Returns

Promise<InboxMessage> — A promise that resolves to the newly created

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.inbox.createMessage(/* CreateInboxMessageRequest */);
console.log(result);