cURL
curl --request POST \ --url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#SLACK_SEND_DIRECT_MESSAGE' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "action": "SLACK_SEND_DIRECT_MESSAGE", "parameters": { "memberId": "<string>", "message": "<string>", "botName": "<string>", "botIcon": "<string>", "blocks": {}, "authenticatedUser": true, "additionalFields": {} } } '
Your Paragon User Token (JWT), which you can generate using your project's signing keys.
Your Paragon Project ID. You can copy your Project ID from your dashboard URL or by clicking Copy Project ID under the Environment switcher.
Show child attributes
Enter the member ID to send the message to. Defaults to the authenticated user if not provided.
Message
Bot name : The name of the bot that sends this message.
Bot icon : Can be either an image URL or an emoji available to your team (e.g. :dog:)
Block kit JSON : Use the Slack Block Kit Builder (https://app.slack.com/block-kit-builder) to design your message and copy the Payload here. (example: "{ "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Hello, this is a sample message using Slack blocks!" } }, { "type": "actions", "elements": [ { "type": "button", "text": { "type": "plain_text", "text": "Click Me" }, "value": "click_me_123" } ] } ] }")
Send as authenticated user : If set to true, this message will appear to come from your authenticated Slack user instead of your application. Defaults to false.
Additional Fields : Specify additional fields to include on this message as JSON. Doc link: https://api.slack.com/reference/messaging/link-unfurling (example: "{ "text": "<https://api.slack.com|Slack API>", "unfurl_links": true }")
Success
Was this page helpful?