Skip to content
Elastic Security logo

Connectors / Security and compliance · HTTP Connector

Elastic Security integration and API

Create a detection rule, create an exception list and create a case in Elastic Security.

What can you do with Elastic Security on Tray.ai?

Elastic Security is Elastic's security product for threat detection and response, combining SIEM detection rules, alert triage, endpoint protection, and case management. Tray.ai connects to Elastic Security through the HTTP Connector, so your workflows can call the Elastic Security API alongside the rest of your stack.

  • Create a case when your ticketing system logs a security incident reported by staff.
  • Isolate an endpoint when your identity provider reports a compromised account on that device.
  • Find detection alerts every few minutes and page the on-call engineer for critical ones.
  • Add a comment to a case when your ticketing system records progress on the linked incident.
Connects through
HTTP Connector
Authentication
An API key in a request header or basic authentication

Set it up

Connect Elastic Security to Tray.ai

Each step uses Elastic Security's own API details, from its documentation.

Save Elastic Security's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Import a request from Elastic Security's docs

Add an HTTP Client step and paste a cURL example from Elastic Security's API docs. Tray.ai fills in the method, URL, headers, and query.

Start with “Read a detection rule”

It's one of 16 documented actions, under Detection rules. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Create a detection rule” and “Update a detection rule” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Elastic Security

Connect Elastic Security with ServiceNow, Slack and Jira

Each one uses actions and events from Elastic Security's own API documentation.

Create ServiceNow incidents for Elastic Security alerts

When

On a schedule

Then

  1. Find detection alerts in Elastic Security
  2. Create an incident in ServiceNow for each critical alert
  3. Set alert status in Elastic Security

With ServiceNow

Isolate endpoints for confirmed Elastic Security threats

When

An incident is confirmed in ServiceNow

Then

  1. Isolate an endpoint in Elastic Security
  2. Add a comment to a case in Elastic Security
  3. Post the action to the security channel in Slack

With ServiceNow and Slack

Open Elastic Security cases from Jira security tickets

When

An issue is created in Jira

Then

  1. Create a case in Elastic Security
  2. Run a scan in Elastic Security on the host

With Jira

Apps you can build on Elastic Security data

Internal tools your team can build with an AI assistant, each one using Elastic Security calls from its API documentation.

Alert triage board

Lists detection alerts and lets analysts assign them, change their status and open a case.

Endpoint isolation desk

Shows alerts for a host and lets a responder isolate or release the endpoint or run a scan.

Elastic Security MCP server for AI agents

Build an MCP server on Elastic Security in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create a detection rule
  • Find detection alerts
  • Create an exception list
  • Create a case
  • Isolate an endpoint
  • Read a detection rule
  • Update a detection rule
  • Delete a detection rule

What the Elastic Security API covers

5 resources and 16 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how. New to APIs? Read what an API integration is.

Detection rules

  • Create a detection rule
  • Read a detection rule
  • Update a detection rule
  • Delete a detection rule

Detection alerts

  • Find detection alerts
  • Set alert status
  • Set alert assignees

Exception lists

  • Create an exception list
  • Update an exception list
  • Delete an exception list

Cases

  • Create a case
  • Add a comment to a case
  • Push a case externally

Endpoint response actions

  • Isolate an endpoint
  • Release an endpoint
  • Run a scan

Checked against Elastic Security's own documentation on 2026-10-22

www.elastic.co/docs/api/doc/kibana

Frequently asked questions

What can a Tray.ai workflow do in Elastic Security?

The Elastic Security API documents 16 actions across 5 resources (Detection rules, Detection alerts, Exception lists, Cases, Endpoint response actions). For example: Create a detection rule; Find detection alerts; Create an exception list. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Elastic Security?

The Elastic Security API uses an API key in a request header and basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Elastic Security working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.