Support
createSupportMessage
Add a message to a support case
Adds a new message to an existing support case thread.
Usage
const result = await api.support.createSupportMessage({
pathParams: { org_id: "org_abc123", case_id: "sc_xxx" },
body: {
body: "...",
},
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| pathParams.org_id | string | Yes | Unique organization identifier. |
| pathParams.case_id | string | Yes | Unique support case identifier (prefixed, e.g. sc_xxx). |
| body.body | string | Yes | Message content. |
Response
Promise<SupportMessage> — message created.
Example
import { PgBeamClient } from "pgbeam";
const client = new PgBeamClient({
token: "pbk_...",
baseUrl: "https://api.pgbeam.com",
});
const result = await client.api.support.createSupportMessage({
pathParams: { org_id: "org_abc123", case_id: "sc_xxx" },
body: {
body: "...",
},
});Errors
| Status | Description |
|---|---|
| 400 | Invalid request parameters. |
| 401 | Missing or invalid authentication. |
| 403 | Operation not allowed by current plan limits. |
| 404 | Resource not found. |