Skip to content

Webhooks

Start automations from other tools with a workspace webhook, and create or move tasks from the request.

A webhook is a URL in your workspace that other tools can call. Each request starts the automations that use the webhook as their trigger. The automation run has no task, and the agent receives the JSON request body, so it can create a task or move one that’s waiting.

Create a webhook in your workspace’s Settings under Webhooks. Give it a name and choose how the sender proves the request is from it:

AuthenticationWhat the sender does
Bearer tokenSends the secret in the Authorization header.
Header tokenSends the secret in a header you name. The default is X-Webhook-Token.
HMAC signatureSigns the request body with the secret using HMAC SHA-256, and sends sha256= and the signature in a header. The default is X-Signature-256.

SuperPlane shows the secret once, after you create the webhook. Copy it into the sending tool.

Add a webhook trigger with the webhook’s ID from the workspace settings:

apiVersion: v2
kind: Automation
name: Feature requests
triggers:
- uses: webhook
config:
webhook_id: <webhook-id>
steps:
- name: Turn the request into a task
prompt: |
Read the feature request in the request body.
Create a task with a clear title, a description of the expected behavior,
and the request URL as its link.

Apply it with Workspace as code, or choose the Webhook trigger when you create the automation on the board. If a task that isn’t closed already has the same link, SuperPlane returns that task instead of a duplicate.

Terminal window
curl -X POST \
-H "Authorization: Bearer $WEBHOOK_TOKEN" \
-H "Content-Type: application/json" \
--data '{"title":"Export reports to CSV","url":"https://support.example.com/requests/123"}' \
<webhook-url>

The settings page shows an example request for each authentication type.

A webhook can also report that something finished, such as a deployment. Put the automation in the stage where the task waits, and ask the agent to find the task and move it:

Terminal window
superplane task get --commit <sha>
superplane task move --task <task> --stage "Done"

superplane task get also finds a task by --pull-request URL. See Stages.

  • Send a JSON body of up to 512 KB.
  • An automation can use several webhooks, each once.
  • Regenerating the secret stops the old one at once. The URL stays the same.
  • Remove a webhook from its automations before you delete it. Requests to a deleted webhook stop working.