Notify workflows waiting for an event to resume them. See our documentation to learn more.
Request
Event data passed to the notified workflows
Response
The response contains a list of
- notified waiter objects,
- id of the message sent,
- workflowRunId and workflowCreatedAt fields for the related workflow runs, as a result of the notify request.
type NotifyResponse = { waiter: Waiter, messageId: string, workflowRunId: string, workflowCreatedAt: number}[]
Waiter object:
Unix timestamp for when the wait will time out
Headers sent in case of notify
Body used in timeout request
Headers sent in case of time out
curl -X POST https://qstash.upstash.io/v2/notify/myEvent \
  -H "Authorization: Bearer <token>" \
  -d "Hello World!"
[
  {
    "waiter": {
      "url": "https://my-workflow.com/path",
      "headers": {
        "Upstash-Workflow-Runid": [
          "wfr_melCHYvPkVhDqIhhk2"
        ],
        "Upstash-Workflow-Url": [
          "https://my-workflow.com/path"
        ]
      },
      "deadline": 1729869206
    },
    "messageId": "msg_26hZCxxbG2TT3AnHEr1w"
  }
]