Elastio Personal Access Tokens API
Endpoints to manage personal access tokens (tenant admin only)
Endpoints to manage personal access tokens (tenant admin only)
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-personal-access-tokens-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 Personal Access Tokens 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: Personal Access Tokens
description: Endpoints to manage personal access tokens (tenant admin only)
paths:
/gateway/shared-services/v1/personal-access-tokens:
get:
description: Returns the active personal access tokens issued by the requesting user.
operationId: listPersonalAccessTokens
parameters:
- $ref: '#/components/parameters/Limit'
- $ref: '#/components/parameters/Offset'
- $ref: '#/components/parameters/UserRoleAdmin'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ListPATsResponse'
description: Tokens issued by the requesting user, with a total count.
'400':
$ref: '#/components/responses/PATBadRequestError'
'401':
$ref: '#/components/responses/PATUnauthorizedError'
'403':
$ref: '#/components/responses/PATForbiddenError'
'500':
$ref: '#/components/responses/PATInternalError'
summary: List personal access tokens
tags:
- Personal Access Tokens
post:
description: Generates a new personal access token for the requesting user. The raw token value is included in the response and is not shown again.
operationId: issuePersonalAccessToken
parameters:
- $ref: '#/components/parameters/UserRoleAdmin'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/IssuePATRequestBody'
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/IssuePATResponse'
description: Token issued. The body includes the raw token and its details.
'400':
$ref: '#/components/responses/PATBadRequestError'
'401':
$ref: '#/components/responses/PATUnauthorizedError'
'403':
$ref: '#/components/responses/PATForbiddenError'
'500':
$ref: '#/components/responses/PATInternalError'
summary: Issue a personal access token
tags:
- Personal Access Tokens
/gateway/shared-services/v1/personal-access-tokens/{token_id}:
patch:
description: Updates a previously issued personal access token. Omitting both `all_scopes` and `grants` leaves permissions unchanged (a name-only rename). Omitting `expires_at` leaves expiry unchanged.
operationId: updatePersonalAccessToken
parameters:
- description: UUID of the token to update.
in: path
name: token_id
required: true
schema:
format: uuid
type: string
- $ref: '#/components/parameters/UserRoleAdmin'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdatePATRequestBody'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/TokenDetails'
description: Updated token details.
'400':
$ref: '#/components/responses/PATBadRequestError'
'401':
$ref: '#/components/responses/PATUnauthorizedError'
'403':
$ref: '#/components/responses/PATForbiddenError'
'404':
$ref: '#/components/responses/PATNotFoundError'
'500':
$ref: '#/components/responses/PATInternalError'
summary: Update a personal access token
tags:
- Personal Access Tokens
/gateway/shared-services/v1/personal-access-tokens/revoke:
post:
description: Revokes one or more personal access tokens belonging to the requesting user.
operationId: revokePersonalAccessTokens
parameters:
- $ref: '#/components/parameters/UserRoleAdmin'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RevokePATRequestBody'
required: true
responses:
'204':
description: Tokens revoked. There is no response body.
'400':
$ref: '#/components/responses/PATBadRequestError'
'401':
$ref: '#/components/responses/PATUnauthorizedError'
'403':
$ref: '#/components/responses/PATForbiddenError'
'404':
$ref: '#/components/responses/PATNotFoundError'
'500':
$ref: '#/components/responses/PATInternalError'
summary: Revoke personal access tokens
tags:
- Personal Access Tokens
/gateway/shared-services/v1/personal-access-tokens/revoked:
get:
description: Returns revoked personal access tokens issued by the requesting user.
operationId: listRevokedPersonalAccessTokens
parameters:
- $ref: '#/components/parameters/Limit'
- $ref: '#/components/parameters/Offset'
- $ref: '#/components/parameters/UserRoleAdmin'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ListPATsResponse'
description: Revoked tokens issued by the requesting user, with a total count.
'400':
$ref: '#/components/responses/PATBadRequestError'
'401':
$ref: '#/components/responses/PATUnauthorizedError'
'403':
$ref: '#/components/responses/PATForbiddenError'
'500':
$ref: '#/components/responses/PATInternalError'
summary: List revoked personal access tokens
tags:
- Personal Access Tokens
components:
parameters:
Limit:
description: Maximum number of tokens to return.
in: query
name: limit
schema:
format: int64
minimum: 0
type: integer
Offset:
description: Number of tokens to skip.
in: query
name: offset
schema:
format: int64
minimum: 0
type: integer
UserRoleAdmin:
description: Must be `admin` for these endpoints.
in: header
name: X-User-Role
required: true
schema:
enum:
- admin
type: string
responses:
PATNotFoundError:
content:
application/json:
schema:
$ref: '#/components/schemas/PATErrorResponse'
description: Token not found.
PATBadRequestError:
content:
application/json:
schema:
$ref: '#/components/schemas/PATErrorResponse'
description: Invalid request.
PATForbiddenError:
content:
application/json:
schema:
$ref: '#/components/schemas/PATErrorResponse'
description: Caller is not a tenant admin.
PATInternalError:
content:
application/json:
schema:
$ref: '#/components/schemas/PATErrorResponse'
description: Internal server error.
PATUnauthorizedError:
content:
application/json:
schema:
$ref: '#/components/schemas/PATErrorResponse'
description: Missing or invalid authentication.
schemas:
UpdatePATRequestBody:
properties:
all_scopes:
type: boolean
expires_at:
format: date-time
type: string
grants:
items:
$ref: '#/components/schemas/ScopeGrant'
type: array
name:
type: string
type: object
ListPATsResponse:
properties:
tokens_details:
items:
$ref: '#/components/schemas/TokenDetails'
type: array
total:
format: int64
type: integer
required:
- tokens_details
- total
type: object
IssuePATResponse:
properties:
details:
$ref: '#/components/schemas/TokenDetails'
token:
description: Raw token value, shown only once.
type: string
required:
- token
- details
type: object
PATErrorResponse:
properties:
code:
type: string
error:
type: string
required:
- error
- code
type: object
TokenDetails:
properties:
all_scopes:
type: boolean
created_at:
format: date-time
type: string
expires_at:
description: Unset means the token never expires.
format: date-time
type: string
grants:
items:
$ref: '#/components/schemas/ScopeGrant'
type: array
id:
format: uuid
type: string
last_used_at:
format: date-time
type: string
name:
type: string
tenant_id:
format: uuid
type: string
updated_at:
format: date-time
type: string
user_id:
format: uuid
type: string
required:
- id
- name
- user_id
- tenant_id
- all_scopes
- grants
type: object
ScopeGrant:
properties:
access:
description: Write implies read.
enum:
- read
- write
type: string
category:
description: One of inventory, security, protection, reporting, integrations, admin.
type: string
required:
- category
- access
type: object
RevokePATRequestBody:
properties:
token_ids:
items:
format: uuid
type: string
minItems: 1
type: array
required:
- token_ids
type: object
IssuePATRequestBody:
properties:
all_scopes:
description: Universal API access. When true, grants is ignored.
type: boolean
expires_at:
description: Optional. Unset means the token never expires.
format: date-time
type: string
grants:
description: Required (non-empty) when all_scopes is false.
items:
$ref: '#/components/schemas/ScopeGrant'
type: array
name:
type: string
required:
- name
type: object
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