Module · at the center of the platform
XTM One
How-to guide

Start an agent from another tool with a webhook

Let a SIEM, a SOAR playbook or a ticketing tool start an XTM One agent's assignment by posting to its webhook URL with its secret, and diagnose a delivery that does not arrive.

XTM OneEnterprise EditionFor AI agent builders and SOC managers

A webhook trigger lets another system start an AI agent's work. Your SIEM raises an alert, your SOAR runs a playbook, your ticketing tool opens a case: each one posts to a URL, and the agent starts working on what it received. The URL belongs to an assignment, the automation rule that tells an agent when to run and what to do, with Webhook as its trigger type. This page finds the URL and its secret, authenticates the request, wires a SOAR playbook, and reads the answer when a delivery does not arrive. Creating the agent and its assignment is in Create an agent.

YOUR TOOLSXTM ONERESULTSSOAR or SIEMPlaybook actionTicketing toolNew caseWebhook URLChecks the secretAssignmentUp to 10 runs at onceAgentWorks on the bodyOperationsEach run recorded
  1. SOAR or SIEM → Webhook URL: POST + secret
  2. Ticketing tool → Webhook URL: POST + secret
  3. Webhook URL → Assignment: accepted
  4. Assignment → Agent: starts a run
  5. Agent → Operations: recorded
A tool posts to the assignment's webhook URL with its secret, and XTM One starts the agent on what it received

Before you start

  • The agent has an assignment whose Trigger type is Webhook, and the assignment is enabled.
  • You can manage the assignment: only people who can manage it see its secret. If the Trigger card shows the URL but no secret, ask the assignment's owner.
  • The sending system can reach XTM One over HTTPS and set a request header.

Find the URL and the secret

  1. Open Orchestration, then Agents and the agent, then open the assignment from its Assignments card.
  2. Read the Trigger card:
    • Webhook URL: the address the sending system posts to. It already holds the assignment's identifier, under /api/hooks/assignments/.
    • Webhook secret: the credential the sending system presents. Every webhook assignment gets one when it is created.
    • How to trigger: a ready-made curl request with both, to test the assignment before you touch the other system.
  3. Copy the How to trigger request and run it from a terminal. A run of the agent appears in Work, then Operations.
XTM One 1.261119.1

The agent receives the JSON body of the request with the assignment's instructions. Send the fields the agent needs to work, such as the alert's name, its host and its identifier, rather than a link it cannot open.

Authenticate the request

Send the secret in one of these headers. A request with none of them is refused with 401, even when the URL and the secret are right: check the header's name first.

HeaderValue
X-Webhook-TokenThe secret, as it is. The first choice for any new sender
X-Webhook-SecretThe same, under the name the Webhook secret label suggests
AuthorizationBearer followed by a space and the secret, for senders that only offer standard authentication fields
X-OpenCTI-TokenThe original name, still accepted so that existing senders keep working. Use one of the names above for anything new

A sender that can compute an HMAC can sign the body instead and keep the secret off the wire: put the hexadecimal HMAC-SHA256 of the raw body, keyed with the secret, in X-Signature. The signatures of GitHub and Slack webhooks are recognized too.

Warning

Anyone who has the secret can start the assignment with any body until someone changes it. Keep it in the sending system's credential store and reference it there, never as plain text in a playbook that is exported, cloned or committed. A signed body (X-Signature) never sends the secret at all: prefer it when the sender can compute one.

An administrator can refuse every delivery to an assignment without a secret, platform-wide, with WEBHOOK_REQUIRE_SECRET: see the configuration reference.

Trigger from a SOAR playbook

Many SOAR webhook actions only offer a URL and a token field, with nowhere to put a header. Use the playbook's generic HTTP request action instead. In Google SecOps SOAR, it is Execute HTTP request:

FieldValue
MethodPOST
URL PathThe Webhook URL of the Trigger card
Headers{"Content-Type": "application/json", "X-Webhook-Token": "[the secret, from the credential store]"}
Body PayloadThe JSON the agent receives, such as {"case_id": "[Case.case_id]", "alert_name": "[Alert.alert_name]"}
Fail on 4xx/5xxtrue, so a refused or throttled delivery shows in the playbook instead of passing for a success
Request Timeout120

Write plain JSON in Headers and Body Payload: escaped quotes ({\"Content-Type\": ...}) make the playbook reject the value before sending it. Keep each placeholder inside its quotes, as in "[Alert.alert_name]".

Choose the events a trigger runs on

A trigger can select events: an integration event such as GitHub pull_request, or the events list of a webhook trigger. It runs on exactly the events it selects: pull_request runs on pull_request.opened and pull_request.closed, never on pull_request_review; an events entry issues.opened never matches issues.opened_by_bot.

A trigger saved before exact matching existed keeps the prefix match it had, so that nothing that ran before stops: the Trigger card shows it as Legacy event matching, with the events it also runs on. Click Use exact matching to switch it, or choose its events again in the trigger editor. An administrator applies exact matching to every trigger at once with Exact event matching for every trigger, in Administration, then Settings, then Access and security, then Security options, or with WEBHOOK_EXACT_EVENT_MATCHING=true.

When a delivery does not arrive

Read the answer the sending system received:

AnswerMeaningWhat to do
401 Missing webhook signature…No accepted credential headerCheck the header's name; the message lists the accepted ones
401 Invalid webhook tokenThe header is right, its value is notCopy the secret again from the Trigger card
401 Invalid webhook bearer tokenSame, for Authorization: BearerCopy the secret again
401 Invalid webhook signatureThe body was signed with another secret, or changed after signingSign the exact raw body with the current secret
403XTM One is not in the Enterprise Edition: AI work does not startSee What each edition of XTM One brings
429Too many deliveries, or too many waitingRetry after the delay the answer gives
"status": "ignored"Accepted, but nothing matched: the assignment is disabled, deleted, or not a webhook assignmentCheck the assignment
"reason": "event not selected"A GitHub delivery for an event the trigger does not selectCheck the events on the Trigger card and in GitHub

Every run that started is in Work, then Operations, with runs still waiting behind an active one: see Review what agents did. An assignment runs up to 10 deliveries at once by default (ASSIGNMENT_MAX_CONCURRENT_RUNS); a delivery that arrives while they all run waits in the queue and starts as soon as one ends. Identical deliveries within a short window are counted once. The limits of delivery, the queue and the de-duplication window are in the Webhook delivery section of the configuration reference.

ExampleBrief the CTI team when the SOAR opens a Velvet Harbor case

Grand Meridian Hotels' SOAR opens a case each time the EDR blocks a PowerShell loader on a front-desk workstation. Sophie Laurent gives Velvet Harbor watcher an assignment SOAR case to CTI brief, with Trigger type Webhook and the instruction "Compare the case with what OpenCTI knows about Velvet Harbor and post a short brief for the CTI team". She stores the Webhook secret in the SOAR's credential store as xtm_one_velvet_harbor_secret, and configures the playbook's HTTP request action:

FieldValue
MethodPOST
URL PathThe Webhook URL, on https://xtm-one.grand-meridian.example/api/hooks/assignments/
Headers{"Content-Type": "application/json", "X-Webhook-Token": "[Credentials.xtm_one_velvet_harbor_secret]"}
Body Payload{"case_id": "[Case.case_id]", "alert_name": "[Alert.alert_name]", "host": "[Alert.host]"}
Fail on 4xx/5xxtrue

On 12 April 2026, the EDR blocks a loader on PAR-FD-03: the playbook posts the case, the agent starts, and its run in Work, then Operations shows the brief it sent to the CTI team. The first test had returned 401 Missing webhook signature…: the header had been typed X-Webhook-Key.

What's next

NextStart with XTM One
XTM One
The AI layer at the center of the XTM platform: agents that work across OpenCTI, OpenAEV and OpenCRQ.

Published

Overview