You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Step 1: Configure

  1. Log in to your admin console by going to https://admin.flock.com (or by choosing "Manage your team" in the Flock desktop app). You will see a screen similar to the one below.
  2. Click on the Add button next to Incoming Webhook, and you will see the following incoming webhooks configuration window.

    Once you've selected a channel, you'll get a webhook endpoint.

Step 2: Send a message

The webhook endpoint accepts JSON packets posted to it. The following command will post a message to your configured channel.

cURL
curl -X POST <incoming-webhook-endpoint> -H "Content-Type: application/json" -d '{
   "text": "This is a test message"
}'


You can send more than just text messages, see 
Message Object for sending more types of content.