Skip to main content

Generate Callback URL Action

Generate callback URLs to receive asynchronous responses and webhook data in Blink workflows.
The Generate Callback URL action creates a unique, temporary URL that external systems can use to send data back to your workflow. To send data back through the callback URL, the request must be authenticated. You can authenticate in either of these ways:
  • Callback URL API Key – Enable the “Include API Key” option. This creates an API key and embeds it in the callback URL. Use this same key when you send the response.
  • Blink API Key – Send the response with a valid Blink API Key that has workflow-execution permissions.
To leverage this callback URL, you need to:
  1. Send it to the external system (e.g. via a custom HTTP request).
  2. Add a Wait Action to the following step to pause the workflow until the callback response is received. When data is sent to the callback URL, the workflow automatically resumes and continues to the next step using the data returned by the external system.

Handling Callback Responses in Workflows

After generating a Callback URL using the Generate Callback URL action, immediately add a Wait Action to the next step. This pauses workflow execution while the external service completes its process and sends back data upon completion.

Configuring the Third-Party System to Respond

Once the external system receives the callback URL, it needs to be configured to send its response back to Blink. Here’s exactly how to do that.

Request Method and URL

The external system must send an HTTP POST request to the callback URL provided by Blink.
POST <callback_url>

Request Headers

Include the following headers in the request:
HeaderValue
Content-Typeapplication/json
AuthorizationBearer <your-api-key> (if not embedded in the URL)
Authentication options:
  • If you enabled “Include API Key” when generating the callback URL, the API key is already embedded in the URL. No Authorization header is needed.
  • If you are using a Blink API Key, pass it as a Bearer token in the Authorization header:
    Authorization: Bearer <your-blink-api-key>
    

Request body

Send the response data as a JSON object in the request body. Blink will make this data available to subsequent steps in your workflow.
{
  "status": "completed",
  "ticket_id": "TKT-4821",
  "assigned_to": "jane.doe@example.com",
  "sla_due": "2025-06-10T14:00:00Z"
}
Any valid JSON structure is accepted — Blink passes the full body to the next workflow step as-is.

Example: cURL

curl -X POST "<callback_url>" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <your-blink-api-key>" \
  -d '{
    "status": "completed",
    "ticket_id": "TKT-4821",
    "assigned_to": "jane.doe@example.com",
    "sla_due": "2025-06-10T14:00:00Z"
  }'
If the API key is embedded in the callback URL, you can omit the Authorization header entirely.

What Happens After the Response is Sent

Once Blink receives a valid POST request at the callback URL:
  1. The Wait Action is released and workflow execution resumes.
  2. The JSON body from the response is available as output data in all subsequent workflow steps.
  3. The callback URL is invalidated- it can only be used once per workflow execution.

Example Use Case

Callback URLs are especially useful in workflows that involve asynchronous interactions with third-party systems. For example, a customer uses Blink to automate support ticket triage:
  • When an end user submits a support request through the customer’s support portal, a Blink workflow is triggered to create a corresponding ticket in the external ticketing system (passing along the callback URL).
  • After creating the ticket, the Wait Action pauses the workflow until the ticket is assigned and its SLA is defined on the ticketing system’s side.
  • Once those updates occur, the ticketing system sends the relevant details back to Blink via an HTTP POST to the callback URL, with the ticket data as a JSON body.
  • Blink resumes the workflow and passes the updated ticket information to the next step.
In this scenario, the callback URL enables smooth, secure coordination between Blink and the external ticketing platform, allowing the workflow to handle asynchronous operations seamlessly.