Natzar Partner API Reference - v1.0.0
    Preparing search index...

    Variable postAsyncMessageSchemaConst

    postAsyncMessageSchema: ZodObject<
        {
            idempotencyKey: ZodOptional<ZodString>;
            text: ZodOptional<ZodString>;
            attachments: ZodOptional<
                ZodArray<
                    ZodObject<
                        {
                            stagingKey: ZodString;
                            fileName: ZodOptional<ZodString>;
                            mimeType: ZodOptional<ZodString>;
                        },
                        $strict,
                    >,
                >,
            >;
        },
        $strict,
    > = ...

    Body of POST /v1/async-consults/{id}/messages — a PATIENT-authored message from your own chat UI (headless integration).

    Accepted with 202: the message is enqueued into the per-patient FIFO pipeline (same lane as every other channel) and appears on the transcript (and as an async_consult.message webhook) moments later. If the thread closes before processing, you receive async_consult.message_rejected instead — a patient message is never silently dropped.

    At least one of text / attachments is required.