Work Market Developer Portal

WorkMarket Developer Portal

We are building the modern work market,
a frictionless exchange between businesses and workers.
See API Docs

    

Webhook Examples

The following webhook recipes are samples to highlight the capabilities of webhooks as a feature. In most cases, these require some setup on the remote system (typically to enable API access).

Premium Feature

Webhooks are a premium feature and must be enabled by your account manager.

Dropbox - Sync Files

This example shows who to keep pass assignment deliverables directly to Dropbox.

Prerequisite

You must set up API access for your Dropbox account and get an access token. See here: https://www.dropbox.com/developers

Description

Upload new files into a Dropbox folder rootFolder/[assignmentId]/[fileName].

Event

Attachment Added

Method

PUT

Headers

Authorization: Bearer [YOUR_DROPBOX_TOKEN]
Content-type: application/octet-stream

Body

${file_data_base64}

Description

Removes files from Dropbox if they are removed from the corresponding Work Market assignment.

Event

Attachment Removed

Method

POST

Headers

Authorization: Bearer [YOUR_DROPBOX_TOKEN]
Content-type: application/octet-stream

Body

[None]

Slack - Send a Notification

Use Slack? Get notified when key actions happen on Work Market assignments

Prerequisite

In order to post to a channel, you must set up an "Incoming WebHook" within Slack. That will give you a custom URL that you'll need below.

Description

Post a message to a Slack channel.

Event

Note Added (but you could post a message for other events as well)

URL

[YOUR_SLACK_INCOMING_WEBHOOK_URL]

Method

POST

Headers

Content-type: application/json

Body

{
"text": "${note}"
}

Twilio - Send and SMS

This example sends an SMS message via the Twilio API.

Prerequisite

You must have a Twilio account and will need to get your account SID and auth token.

Description

Sends an SMS message via the Twilio API.

Event

Note Added (but you could use any number of events here)

Method

POST

Headers

Content-Type: application/x-www-form-urlencoded

Body

To=[TO_PHONE_NUMBER]&From=+[FROM_PHONE_NUMBER]&Body=${note}