Elastio EQL API
EQL reporting, natural-language drafts, and custom schedules.
EQL reporting, natural-language drafts, and custom schedules.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/elastio:elastio-eql-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Elastio EQL API
description: 'The Elastio API gives you access to the Elastio platform from code. Hunt looks for ransomware, malware, and corrupted files in live, replicated, and backup data. Pursuit investigates copies of your systems for evidence of compromise. The API returns what both find, the incidents they raise, and the evidence that proves which recovery point is clean.
## Base URL
Every request goes to your tenant:
```
https://{tenant}.app.elastio.com
```
`{tenant}` is the subdomain you use to sign in to the Elastio console.
## Authentication
Send a personal access token (PAT) in the `Authorization` header:
```
Authorization: Bearer
```
Tenant admins issue tokens from the Elastio console or with `POST /gateway/shared-services/v1/personal-access-tokens`. Tokens can be scoped to the categories `inventory`, `security`, `protection`, `reporting`, `integrations` and `admin`, each with `read` or `write` access. See the authentication guide for details.
## Trying requests
Select **Test Request** on any operation to send it from your browser. Enter your tenant in the server field and your token under **Authentication**. Requests run against your live tenant, so write operations change real data.'
version: 1.0.0
contact:
name: Elastio Support
email: support@elastio.com
url: https://support.elastio.com
license:
name: Copyright © Elastio Software, Inc. All rights reserved.
url: https://elastio.com
servers:
- url: https://{tenant}.app.elastio.com
description: Your Elastio tenant
variables:
tenant:
default: your-tenant
description: The subdomain of your Elastio console URL
security:
- authorization: []
tags:
- name: EQL
description: EQL reporting, natural-language drafts, and custom schedules.
paths:
/gateway/reporting/v1/eql/datasets:
get:
tags:
- EQL
operationId: listEQLDatasets
summary: Discover EQL datasets and capabilities
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EQLCatalog'
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
/gateway/reporting/v1/eql/draft:
post:
tags:
- EQL
operationId: draftEQLReport
summary: Draft EQL from a natural-language report request
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits. Sends intent and public catalog definitions to Azure OpenAI, not customer rows. Returns compiled EQL or a clarification; never executes, saves or schedules. Use the selected past UTC period, at most 90 days. Maximum prompt 4000 bytes. Two active EQL requests per process, one per tenant, ten attempts per tenant per minute; AI additionally capped at 30/minute and 1000/day per process. No automatic retries.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EQLDraft'
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'422':
description: Generated EQL did not pass validation
content:
application/json:
schema:
$ref: '#/components/schemas/EQLError'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
'502':
description: Provider unavailable or invalid output
content:
application/json:
schema:
$ref: '#/components/schemas/EQLError'
'503':
description: AI not configured
content:
application/json:
schema:
$ref: '#/components/schemas/EQLError'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EQLDraftRequest'
/gateway/reporting/v1/eql/query:
post:
tags:
- EQL
operationId: previewEQLReport
summary: Preview a bounded EQL report
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EQLResult'
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EQLRequest'
/gateway/reporting/v1/eql/reports:
post:
tags:
- EQL
operationId: createEQLReport
summary: Generate and save an EQL report
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits.
responses:
'202':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EQLReport'
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EQLRequest'
get:
tags:
- EQL
operationId: listEQLReports
summary: List saved EQL reports
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EQLReportPage'
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
parameters:
- name: page
in: query
schema:
type: integer
minimum: 1
maximum: 10000
default: 1
/gateway/reporting/v1/eql/reports/{id}:
get:
tags:
- EQL
operationId: getEQLReport
summary: Get a saved EQL report and its query
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EQLReport'
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
/gateway/reporting/v1/eql/reports/{id}/pdf:
get:
tags:
- EQL
operationId: downloadEQLReportPDF
summary: Download a completed EQL PDF
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits.
responses:
'200':
description: Success
content:
application/pdf:
schema:
type: string
format: binary
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'409':
description: Report not ready
content:
application/json:
schema:
$ref: '#/components/schemas/EQLError'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
/gateway/reporting/v1/eql/schedules:
get:
tags:
- EQL
operationId: listEQLSchedules
summary: List EQL report schedules
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits. Requires schedules capability and authenticated scheduler provisioned.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EQLScheduleList'
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
post:
tags:
- EQL
operationId: createEQLSchedule
summary: Schedule an EQL report
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits. Requires schedules capability. Stores query for revalidation on each fire; format json or pdf, template eql. Saved reports only; email/webhook delivery is not supported.
responses:
'201':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EQLSchedule'
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EQLScheduleRequest'
/gateway/reporting/v1/eql/schedules/{id}:
get:
tags:
- EQL
operationId: getEQLSchedule
summary: Get an EQL report schedule
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EQLSchedule'
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
patch:
tags:
- EQL
operationId: updateEQLSchedule
summary: Update or pause an EQL schedule
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EQLSchedule'
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EQLSchedulePatch'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
delete:
tags:
- EQL
operationId: deleteEQLSchedule
summary: Delete an EQL report schedule
description: Requires a signed gateway tenant-admin session or universal API scope and the tenant eql-reporting flag. Available only when the dedicated EQL reader is configured. All queries are validated and executed with bounded resource limits.
responses:
'204':
description: Success
'400':
$ref: '#/components/responses/EQL400'
'401':
$ref: '#/components/responses/EQL401'
'403':
$ref: '#/components/responses/EQL403'
'404':
$ref: '#/components/responses/EQL404'
'429':
$ref: '#/components/responses/EQL429'
'500':
$ref: '#/components/responses/EQL500'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
components:
responses:
EQL400:
description: Invalid EQL request or query.
content:
application/json:
schema:
$ref: '#/components/schemas/EQLError'
EQL429:
description: EQL admission or queue budget exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/EQLError'
EQL401:
description: Missing tenant identity.
content:
application/json:
schema:
$ref: '#/components/schemas/EQLError'
EQL500:
description: EQL service unavailable or operation failed.
content:
application/json:
schema:
$ref: '#/components/schemas/EQLError'
EQL404:
description: EQL report or schedule not found.
content:
application/json:
schema:
$ref: '#/components/schemas/EQLError'
EQL403:
description: EQL feature disabled or caller not authorized.
content:
application/json:
schema:
$ref: '#/components/schemas/EQLError'
schemas:
EQLDataset:
type: object
properties:
name:
type: string
title:
type: string
columns:
type: array
items:
type: string
shape:
type: string
enum:
- array
- object
platform:
type: string
required:
- name
- title
- columns
- shape
- platform
ScheduleSyncStatus:
type: string
description: 'Convergence state of the schedule onto the shared scheduler.
Response-only and additive to the UI contract.
'
enum:
- pending
- synced
- error
EQLScheduleList:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/EQLSchedule'
total:
type: integer
required:
- items
- total
EQLDraft:
type: object
properties:
status:
type: string
enum:
- ready
- clarification
query:
type: string
explanation:
type: string
clarification:
type: string
required:
- status
- query
- explanation
- clarification
additionalProperties: false
EQLCatalog:
type: object
properties:
version:
type: string
aiAvailable:
type: boolean
pdfAvailable:
type: boolean
schedulesAvailable:
type: boolean
datasets:
type: array
items:
$ref: '#/components/schemas/EQLDataset'
limits:
type: object
properties:
maxRows:
type: integer
maxQueryBytes:
type: integer
maxResponseBytes:
type: integer
maxPeriodDays:
type: integer
required:
- version
- aiAvailable
- pdfAvailable
- schedulesAvailable
- datasets
- limits
EQLScheduleRequest:
type: object
required:
- name
- template
- query
additionalProperties: false
description: 'Optional keys may be omitted (server defaults apply) but must not
be explicitly `null`; `delivery.webhook_url` is the contract''s only
nullable property.
'
properties:
name:
type: string
minLength: 1
description: Trimmed server-side; blank after trim is rejected.
template:
type: string
enum:
- eql
period:
$ref: '#/components/schemas/SchedulePeriod'
cadence:
$ref: '#/components/schemas/ScheduleCadence'
cadence_config:
$ref: '#/components/schemas/ScheduleCadenceConfig'
format:
type: string
enum:
- json
- pdf
enabled:
type: boolean
query:
type: string
minLength: 1
maxLength: 8192
EQLResult:
type: object
properties:
version:
type: string
columns:
type: array
items:
type: string
data: {}
rowCount:
type: integer
truncated:
type: boolean
required:
- version
- columns
- data
- rowCount
- truncated
EQLError:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
required:
- code
- message
required:
- error
EQLSchedulePatch:
type: object
additionalProperties: false
description: 'Partial CreateScheduleRequest: the same keys, all optional. Present
keys are merged over the stored schedule and the merged document is
revalidated through the full create path.
'
properties:
name:
type: string
minLength: 1
template:
type: string
enum:
- eql
period:
$ref: '#/components/schemas/SchedulePeriod'
cadence:
$ref: '#/components/schemas/ScheduleCadence'
cadence_config:
$ref: '#/components/schemas/ScheduleCadenceConfig'
format:
type: string
enum:
- json
- pdf
enabled:
type: boolean
query:
type: string
minLength: 1
maxLength: 8192
SchedulePeriod:
type: string
description: Rolling window preset for the generated report.
enum:
- last_24_hours
- last_7_days
- last_30_days
- last_90_days
EQLReport:
type: object
properties:
id:
type: string
format: uuid
title:
type: string
status:
type: string
enum:
- processing
- ready
- failed
query:
type: string
minLength: 1
maxLength: 8192
format:
type: string
enum:
- json
- pdf
periodStart:
type: string
format: date-time
periodEnd:
type: string
format: date-time
createdAt:
type: string
format: date-time
columns:
type: array
items:
type: string
shape:
type: string
rowCount:
type: integer
data: {}
error:
type: string
required:
- id
- title
- status
- query
ScheduleCadence:
type: string
enum:
- hourly
- daily
- weekly
- monthly
ScheduleCadenceConfig:
type: object
description: 'Exact shape per cadence: `{}` (hourly), `{time_utc}` (daily),
`{day_of_week, time_utc}` (weekly), `{day_of_month, time_utc}`
(monthly). Required keys must be present and unknown keys are
rejected. `time_utc` accepts `HH:MM` or `HH:MM:00` (non-zero
seconds rejected) and is canonicalized to `HH:MM`; the timezone is
always UTC.
'
additionalProperties: false
properties:
day_of_week:
type: string
enum:
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday
day_of_month:
type: integer
minimum: 1
maximum: 28
description: 'Capped at 28 (400 above) so monthly schedules never skip short
months.
'
time_utc:
type: string
pattern: ^\d{2}:\d{2}(:00)?$
EQLRequest:
type: object
properties:
query:
type: string
minLength: 1
maxLength: 8192
periodStart:
type: string
format: date-time
periodEnd:
type: string
format: date-time
format:
type: string
enum:
- json
- pdf
description:
type: string
maxLength: 500
required:
- query
- periodStart
- periodEnd
additionalProperties: false
EQLReportPage:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/EQLReport'
total:
type: integer
page:
type: integer
pageSize:
type: integer
required:
- items
- total
- page
- pageSize
EQLDraftRequest:
type: object
properties:
prompt:
type: string
minLength: 1
maxLength: 4000
periodStart:
type: string
format: date-time
periodEnd:
type: string
format: date-time
required:
- prompt
- periodStart
- periodEnd
additionalProperties: false
EQLSchedule:
type: object
required:
- id
- name
- template
- period
- cadence
- cadence_config
- format
- enabled
- created_at
- last_run_at
- next_run_at
- sync_status
- query
properties:
id:
type: string
format: uuid
name:
type: string
template:
type: string
enum:
- eql
period:
$ref: '#/components/schemas/SchedulePeriod'
cadence:
$ref: '#/components/schemas/ScheduleCadence'
cadence_config:
$ref: '#/components/schemas/ScheduleCadenceConfig'
format:
type: string
enum:
- json
- pdf
enabled:
type: boolean
created_at:
type: string
format: date-time
created_by:
type: string
description: 'Email of the creating user. The key is omitted when no user
identity accompanied the create request: never emitted as
`null`.
'
last_run_at:
type:
- string
- 'null'
format: date-time
description: 'Scheduled fire instant of the newest run that created a report
(the report itself may still be generating); `null` before the
first report-creating run.
'
next_run_at:
type:
- string
- 'null'
format: date-time
description: 'Best-effort next fire time from the scheduler; `null` while the
schedule is disabled or the projection is unavailable (the
response stays 200 in every case).
'
sync_status:
$ref: '#/components/schemas/ScheduleSyncStatus'
query:
type: string
minLength: 1
maxLength: 8192
securitySchemes:
authorization:
type: http
scheme: bearer
description: 'A personal access token (PAT) sent as `Authorization: Bearer <token>`. Tenant admins issue tokens from the Elastio console or with `POST /gateway/shared-services/v1/personal-access-tokens`.'
bearerAuth:
type: http
scheme: bearer
description: Integration channel token issued by Elastio for inbound partner events (Wiz).
externalDocs:
description: Elastio Developer Portal
url: https://developer.elastio.com
x-tagGroups:
- name: Platform
tags:
- System
- Tenant Settings
- Licenses
- Plan
- Billing
- Early Access
- AI Provider Credentials
- name: Identity & Access
tags:
- Users
- User Groups
- Roles
- Account Groups
- Personal Access Tokens
- Audit Logs
- name: Inventory & Deployments
tags:
- Deployments
- Assets
- Search
- Inventory
- Asset Accounts
- Tags
- Azure Subscriptions
- GCP Projects
- IBM
- OVA Accounts
- Vault
- Database Monitoring
- Data
- name: Backups & Recovery Points
tags:
- Backup
- name: Hunts & Investigations
tags:
- Scans
- Scan Jobs
- Hunt Rules
- Custom Hunts
- Pursuit
- Pursuit Scans
- Threats
- Ransomware
- Data Classification
- name: Findings & Response
tags:
- Incidents
- Findings
- Violations
- Issues
- Posture
- Compliance
- DRS
- name: Policies & Jobs
tags:
- Policies
- Policy Schedules
- Policy Membership
- System Policies
- System Events
- Jobs
- name: Recovery & Evidence
tags:
- Resilience Program
- Recovery Verdict
- Recovery Analytics
- Evidence
- Security Metrics
- name: Reporting
tags:
- Reports
- Report Schedules
- EQL
- name: Alerts & Integrations
tags:
- Alerts
- Webhooks
- Slack
- Splunk
- VirusTotal
- Wiz
- GuardDuty