PgBeam Docs
Internal

handleSlackSupportEvent

Handle a Slack support event

Receives a forwarded Slack event from the dashboard webhook handler and creates a support message.

Usage

const result = await api.internal.handleSlackSupportEvent({
  body: {
    channel_id: "...",
    thread_ts: "...",
    user_id: "...",
    text: "...",
  },
});

Parameters

ParameterTypeRequiredDescription
body.channel_idstringYesSlack channel ID where the message was posted.
body.thread_tsstringYesSlack thread timestamp identifying the support case thread.
body.user_idstringYesSlack user ID of the message author.
body.textstringYesMessage text from Slack.

Response

Promise<unknown> — the result.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.internal.handleSlackSupportEvent({
  body: {
    channel_id: "...",
    thread_ts: "...",
    user_id: "...",
    text: "...",
  },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
404Resource not found.

On this page