Skip to main content
POST
/
templates
/
{id}
/
send
Send a template message to Slack
curl --request POST \
  --url https://api.lithoblocks.com/templates/{id}/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {},
  "channelId": "<string>",
  "recipientEmail": "[email protected]",
  "recipientSlackId": "<string>"
}
'
{
  "success": true,
  "message_ts": "<string>",
  "channel": "<string>",
  "remaining_credits": 123
}

Authorizations

Authorization
string
header
required

LithoBlocks API key obtained from your organization dashboard

Path Parameters

id
string
required

Body

application/json

Send message request

data
object
required
channelId
string
recipientEmail
string<email>
recipientSlackId
string

Response

Message sent successfully

success
boolean
required
message_ts
string
required
channel
string
required
remaining_credits
number