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

DescriptionUpload new files into a Dropbox folder rootFolder/[assignmentId]/[fileName].
EventAttachment Added
URLhttps://api-content.dropbox.com/1/files_put/auto/${client_name}/${assignment_id}/${file_name}
MethodPUT
HeadersAuthorization: Bearer [YOUR_DROPBOX_TOKEN]
Content-type: application/octet-stream
Body${file_data_base64}
DescriptionRemoves files from Dropbox if they are removed from the corresponding Work Market assignment.
EventAttachment Removed
URLhttps://api.dropbox.com/1/fileops/delete?root=auto&path=${client_name}/${assignment_id}/${file_name}
MethodPOST
HeadersAuthorization: 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.

DescriptionPost a message to a Slack channel.
EventNote Added (but you could post a message for other events as well)
URL[YOUR_SLACK_INCOMING_WEBHOOK_URL]
MethodPOST
HeadersContent-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.

DescriptionSends an SMS message via the Twilio API.
EventNote Added (but you could use any number of events here)
URLhttps://[ACCOUNT_SID]:[AUTH_TOKEN]@api.twilio.com/2010-04-01/Accounts/[ACCOUNT_SID]/Messages.json
MethodPOST
HeadersContent-Type: application/x-www-form-urlencoded
BodyTo=[TO_PHONE_NUMBER]&From=+[FROM_PHONE_NUMBER]&Body=${note}