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

Authorizations

Authorization
string
header
required

LithoBlocks API key obtained from your organization dashboard

Path Parameters

id
string
required

Body

application/json

Bulk send message request

data
object
required
destinations
object[]
required
Required array length: 1 - 100 elements

Response

Bulk send results

success
boolean
required
results
object[]
required
total_sent
number
required
total_failed
number
required
remaining_credits
number