Skip to main content
Send a template message to Slack

Authorizations

Authorization
string
header
required

LithoBlocks API key obtained from your organization dashboard. The LithoBlocks MCP server also presents a Supabase-issued user session token here on the user's behalf; such a token acts as that user with the scopes their organization role allows.

Scopes

messages:create

Headers

Idempotency-Key
string

Any unique string (a UUID is fine). Repeating a request with the same key and body within 24 hours replays the original response with Idempotency-Replayed: true instead of running again; the same key with a different body is a 409. Incomplete and 5xx outcomes are retained for reconciliation beyond 24 hours. Applies only on the documented endpoints. Never automatically change keys to bypass an uncertain outcome.

Required string length: 1 - 255
Example:

"3f7d2c1a-9b4e-4f0a-8c6d-2e1b5a7c9d10"

Body

application/json

Send message request

template_id
string<uuid>
required
data
object
required
channel_id
string
required
reference
string | null

Your own handle for the message, e.g. ticket-123, to find, correct or expire it later without keeping its id. Not unique: a bulk send tags every destination's message with it.

Required string length: 1 - 255
expiration
object | null

Expire the message: replace it with a notice, or delete it, after a time. A relative time starts when it is delivered. No extra credit.

Response

Message sent successfully

success
boolean
required
message_id
string<uuid>
required

LithoBlocks' id for the sent message. Use it, not the Slack channel and timestamp, to refer to this message later.

message_ts
string
required
channel
string
required
expires_at
string

When the message expires, if the send asked for an expiration.

remaining_credits
number
warnings
string[]
slack_truncation
object
version_id
string

The template version that was compiled

version_number
number

Its number