cURL
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 }
Compile a template with provided data and send it to Slack via the organization’s Slack connection. Credits are deducted only after successful send.
LithoBlocks API key obtained from your organization dashboard
Send message request
Show child attributes
Message sent successfully