Skip to Content

Send Message with Slack

Send message to an authorized Slack channel.

Billable OperationProviderBilling Mode
Docs
Connection
Docs
Cost per operation
Docs
send-message-slack
P
Slack
n/a
User

n/a

Input Fields

string
message

Output Fields

boolean
slack_message_success

Explained on
YouTube logologo-dark

const options = {
  method: 'POST',
  headers: {'content-type': 'application/json', authorization: 'Bearer <TOKEN>'},
  body: JSON.stringify({
    config: {environment: 'production'},
    pipes: [
      {
        connector: {
          strategy: 'first',
          connections: [{connection: '<PROVIDE_YOUR_OWN_CONNECTION_VIA_DASHBOARD>', type: 'vault'}]
        },
        pipe_id: 'message:send:slack@1',
        config: {channel_id: '<SLACK_CHANNEL_ID>'}
      }
    ],
    input: [{id: '1', message: '<MESSAGE_TEXT>'}]
  })
};

fetch('https://api.pipe0.com/v1/pipes/run', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));