Elastio Custom Hunts API
Hunts you define with your own hunt rules, and their results.
Hunts you define with your own hunt rules, and their results.
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-custom-hunts-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 Custom Hunts 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: Custom Hunts
description: Hunts you define with your own hunt rules, and their results.
paths:
/gateway/api/v1/assets/{asset_id}/custom-hunts:
get:
operationId: list_hunt_scans_for_asset
summary: List custom hunt runs for an asset
tags:
- Custom Hunts
description: Returns custom hunt scans associated with a given asset. For EC2 instances and Azure VMs, also includes hunts on attached volumes/disks.
parameters:
- schema:
type: integer
minimum: 1
maximum: 500
default: 50
in: query
name: page_size
required: false
description: Number of results per page. Used on the first request; subsequent pages use page_token.
- schema:
type: string
in: query
name: page_token
required: false
description: Opaque pagination token from a previous response (next_page_token or prev_page_token).
- schema:
type: string
format: date-time
in: query
name: start_date
required: false
description: Start of the time range filter. Defaults to 6 months ago.
- schema:
type: string
format: date-time
in: query
name: end_date
required: false
description: End of the time range filter. Defaults to now.
- schema:
type: string
format: uuid
in: path
name: asset_id
required: true
description: Asset ID to list hunt scans for
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
hunt_scans:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
tenant_name:
type: string
cc_id:
type: string
format: uuid
job_id:
type: string
format: uuid
target:
type: object
additionalProperties: true
target_asset:
type:
- object
- 'null'
description: The asset this run targeted. kind is the raw asset kind (for example, ebs_volume).
properties:
id:
type: string
format: uuid
kind:
type: string
enum:
- ec2_instance
- ebs_volume
- s3_bucket
- efs_filesystem
- generic_host
- ova_server
- fsx_ontap_volume
- azure_storage_blob_container
- azure_compute_disk
- azure_compute_vm
- ibm_cos_bucket
- azure_storage_file_share
- aws_ami_family
- azure_gallery_image
- azure_managed_image
- gcp_compute_vm
- gcp_compute_disk
- gcp_cloud_storage_bucket
- gcp_compute_image_family
- gcp_compute_machine_image_family
description: Raw asset kind
name:
type:
- string
- 'null'
report_location:
type: object
properties:
bucket:
type: string
key:
type: string
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
pagination:
type: object
properties:
next_page_token:
type: string
prev_page_token:
type: string
total_count:
type: integer
'401':
description: Client error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Client error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
4XX:
description: Client error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
5XX:
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/gateway/api/v1/custom-hunts/{hunt_scan_id}:
get:
operationId: get_hunt_scan_by_id
summary: Get a custom hunt run by ID
tags:
- Custom Hunts
description: Returns a single custom hunt scan with its associated queries. RBAC is enforced based on the asset the hunt scan belongs to.
parameters:
- schema:
type: string
format: uuid
in: path
name: hunt_scan_id
required: true
description: Hunt scan ID
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
hunt_scan:
type: object
properties:
id:
type: string
format: uuid
tenant_name:
type: string
cc_id:
type: string
format: uuid
job_id:
type: string
format: uuid
target:
type: object
additionalProperties: true
target_asset:
type:
- object
- 'null'
description: The asset this run targeted. kind is the raw asset kind (for example, ebs_volume).
properties:
id:
type: string
format: uuid
kind:
type: string
enum:
- ec2_instance
- ebs_volume
- s3_bucket
- efs_filesystem
- generic_host
- ova_server
- fsx_ontap_volume
- azure_storage_blob_container
- azure_compute_disk
- azure_compute_vm
- ibm_cos_bucket
- azure_storage_file_share
- aws_ami_family
- azure_gallery_image
- azure_managed_image
- gcp_compute_vm
- gcp_compute_disk
- gcp_cloud_storage_bucket
- gcp_compute_image_family
- gcp_compute_machine_image_family
description: Raw asset kind
name:
type:
- string
- 'null'
report_location:
type: object
properties:
bucket:
type: string
key:
type: string
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
queries:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
tenant_name:
type: string
hunt_scan_id:
type: string
format: uuid
query:
type: string
raw_json:
type: object
additionalProperties: true
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
'401':
description: Client error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Client error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
4XX:
description: Client error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
5XX:
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ErrorResponse:
type: object
description: The error envelope returned by the Elastio API gateway.
properties:
status:
type: integer
minimum: 400
maximum: 599
example: 404
error:
type: string
example: Not Found
message:
type: string
example: Asset 6c1f... was not found
cached:
type: boolean
example: false
required:
- status
- error
- message
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