Prerequisites
- Understanding of Interactive buttons
- An external webhook URL (or a test service like webhook.site)
- Basic knowledge of HTTP and JSON
How it works
- User clicks a button in Slack
- LithoBlocks receives the interaction
- Your webhook payload is compiled with interaction data
- An HTTP request is sent to your endpoint
- Your system processes the request
Quick start
Step 1: Create a webhook destination
- Go to Integrations → Webhooks
- Click Create Webhook Destination
- Set Name (e.g. “Approval API”), URL (e.g.
https://api.yourcompany.com/approvals), and Method (e.g. POST) - Add headers if needed (e.g.
Authorization: Bearer YOUR_API_KEY,Content-Type: application/json)
Step 2: Define the payload
In the payload editor, use placeholders to send interaction data:interaction.button_value, interaction.user_id, interaction.user_email, interaction.channel_id, and interaction.message_ts.
Step 3: Connect the button
- Open your template and select the button
- In button settings, click Add Action → Webhook
- Select your webhook destination
- Save the template
Step 4: Test
- Send the template to a test channel
- Click the button
- Check Usage → Interactions for webhook logs
- Confirm your API received the request
Authentication
Configure headers on the webhook destination, for example:- Bearer:
Authorization: Bearer sk_live_abc123 - API key:
X-API-Key: your-api-key - Basic:
Authorization: Basic base64(username:password)

