Webhooks
Instant HTTP callbacks on every completed task
Webhooks are POST
requests sent by the Human Lambdas API towards a callback URL of your choice, which you can register per queue in its corresponding Connections screen.
Currently, Webhooks can only be enabled for completed tasks. The callback structure mimics the format of the task object.
Here's how you can replicate a sample Webhooks callback:
Fetching and setting a queue's webhook
We currently only support setting one webhook per queue between the UI and the API. The webhook object is represented in the API as:
With target
being the URL that will receive a callback every time a task in a specific queue is completed.
Get a queue's webhook
GET
https://api.humanlambdas.com/orgs/$ORGANIZATION_ID/queues/$QUEUE_ID/webhook
Path Parameters
ORGANIZATION_ID
integer
The organization's identifier
QUEUE_ID
integer
The queue's identifier
Headers
Authorization
string
Token $API_KEY
or visit the Introduction page for more details
Set a queue's webhook
PUT
https://api.humanlambdas.com/orgs/$ORGANIZATION_ID/queues/$QUEUE_ID/webhook
Path Parameters
ORGANIZATION_ID
integer
The organization's identifier
QUEUE_ID
integer
The queue's identifier
Headers
Authorization
string
Token $API_KEY
or visit the Introduction page for more details
Content-Type
string
application/json
Last updated
Was this helpful?