Panther api token API

The api token api handles all operations for api tokens

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api-tokens List my API tokens · List api tokens #
Ask an LLM
“Which API tokens have I created?”
“Can I see all my Panther API keys?”
Tell an agent
List all my API tokens.
Show every API key I own.
POST /api-tokens Create an API token · Create an api token #
Ask an LLM
“How do I generate a new API key?”
“Can I restrict a new API token to certain CIDR blocks?”
Tell an agent
Create an API token named {name} with permissions {permissions}.
Generate a new API key {name} limited to CIDR blocks {allowedCIDRBlocks}.
DELETE /api-tokens/{id} Delete an API token · delete api token #
Ask an LLM
“How do I revoke an API token?”
“Can I delete an API key I no longer use?”
Tell an agent destructive · confirm first
Delete API token {id}.
Revoke the API key {id}.
GET /api-tokens/{id} Get an API token · Get an api token #
Ask an LLM
“What are the permissions of a specific API token?”
“Can I look up one API key by ID?”
Tell an agent
Show API token {id}.
Get the permissions of API key {id}.
POST /api-tokens/{id} Update an API token · Update an api token #
Ask an LLM
“Can I change the permissions on an existing API token?”
“Is it possible to rotate an API token's secret?”
Tell an agent
Update API token {id} to name {name} with permissions {permissions}.
Set the CIDR blocks of existing API key {id} to {allowedCIDRBlocks}.
POST /api-tokens/{id}/rotate Rotate an API token · Rotate an api token. If self is provided the current token will be rotated #
Ask an LLM
“Can I rotate an API token's secret without deleting it?”
“What happens to the old secret when I rotate a key?”
Tell an agent
Rotate API token {id}.
Issue a new secret for API key {id} and invalidate the old one.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/panther:panther-api-token-api"
All apis
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.

Get an API 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 Specification

panther-api-token-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Panther REST api token API
  version: '1.0'
  description: The api token api handles all operations for api tokens
servers:
- url: https://{api_host}
  variables:
    api_host:
      default: your-api-host
security:
- ApiKeyAuth: []
tags:
- name: API Token
  description: The api token api handles all operations for api tokens
paths:
  /api-tokens:
    get:
      tags:
      - API Token
      summary: List api tokens
      operationId: apiToken#list
      responses:
        '200':
          description: OK response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.ListResp'
      x-operation-id-source: normalized
      x-operation-id-original: api token#list
    post:
      tags:
      - API Token
      summary: Create an api token
      operationId: apiToken#create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/APITokenAPI.ModifyAPIToken'
      responses:
        '200':
          description: OK response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.APIToken'
        '400':
          description: 'bad_request: Bad Request response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.BadRequestError'
      x-operation-id-source: normalized
      x-operation-id-original: api token#create
  /api-tokens/{id}:
    delete:
      tags:
      - API Token
      summary: delete api token
      operationId: apiToken#delete
      parameters:
      - name: id
        in: path
        description: 'ID of the api token to delete. Note: if self is provided, the current api token will be deleted'
        required: true
        schema:
          type: string
          description: 'ID of the api token to delete. Note: if self is provided, the current api token will be deleted'
      responses:
        '204':
          description: No Content response.
        '400':
          description: 'bad_request: Bad Request response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.BadRequestError'
        '404':
          description: 'not_found: Not Found response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.NotFoundError'
      x-operation-id-source: normalized
      x-operation-id-original: api token#delete
    get:
      tags:
      - API Token
      summary: Get an api token
      operationId: apiToken#get
      parameters:
      - name: id
        in: path
        description: 'ID of the api token. Note: if self is provided, the current api token will be returned'
        required: true
        schema:
          type: string
          description: 'ID of the api token. Note: if self is provided, the current api token will be returned'
      responses:
        '200':
          description: OK response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.APIToken'
        '400':
          description: 'bad_request: Bad Request response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.BadRequestError'
        '404':
          description: 'not_found: Not Found response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.NotFoundError'
      x-operation-id-source: normalized
      x-operation-id-original: api token#get
    post:
      tags:
      - API Token
      summary: Update an api token
      operationId: apiToken#update
      parameters:
      - name: id
        in: path
        description: 'ID of the api token. Note: if self is provided, the current api token will be updated'
        required: true
        schema:
          type: string
          description: 'ID of the api token. Note: if self is provided, the current api token will be updated'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/APITokenAPI.ModifyAPIToken'
      responses:
        '200':
          description: OK response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.APIToken'
        '400':
          description: 'bad_request: Bad Request response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.BadRequestError'
        '404':
          description: 'not_found: Not Found response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.NotFoundError'
      x-operation-id-source: normalized
      x-operation-id-original: api token#update
  /api-tokens/{id}/rotate:
    post:
      tags:
      - API Token
      summary: Rotate an api token. If self is provided the current token will be rotated
      operationId: apiToken#rotate
      parameters:
      - name: id
        in: path
        description: 'ID of the api token to rotate. Note: if self is provided, the current api token will be rotated'
        required: true
        schema:
          type: string
          description: 'ID of the api token to rotate. Note: if self is provided, the current api token will be rotated'
      responses:
        '200':
          description: OK response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.APIToken'
        '400':
          description: 'bad_request: Bad Request response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.BadRequestError'
        '403':
          description: 'forbidden: Forbidden response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.ForbiddenErr'
        '404':
          description: 'not_found: Not Found response.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APITokenAPI.NotFoundError'
      x-operation-id-source: normalized
      x-operation-id-original: api token#rotate
components:
  schemas:
    APITokenAPI.ModifyAPIToken:
      type: object
      properties:
        allowedCIDRBlocks:
          type: array
          items:
            type: string
          description: The set of CIDR blocks that are allowed to use this API token. If empty, all CIDR blocks are allowed
        name:
          type: string
          description: The name of the token
        permissions:
          type: array
          items:
            type: string
            enum:
            - AIRunAsModify
            - AlertModify
            - AlertRead
            - BulkUpload
            - BulkUploadValidate
            - CloudsecSourceModify
            - CloudsecSourceRead
            - DataAnalyticsModify
            - DataAnalyticsRead
            - DestinationModify
            - DestinationRead
            - GeneralSettingsModify
            - GeneralSettingsRead
            - LogSourceModify
            - LogSourceRawDataRead
            - LogSourceRead
            - LookupModify
            - LookupRead
            - ManageAIResponses
            - ManageAISkills
            - ManageScheduledPrompts
            - McpServerModify
            - McpServerRead
            - NotificationsSend
            - OrganizationAPITokenModify
            - OrganizationAPITokenRead
            - PolicyModify
            - PolicyRead
            - ResourceModify
            - ResourceRead
            - RuleModify
            - RuleRead
            - RunPantherAI
            - SummaryRead
            - UserModify
            - UserRead
            - ViewAIPrivateResponses
            - ViewAISkills
            - ViewScheduledPrompts
      required:
      - name
      - permissions
    APITokenAPI.APIToken:
      type: object
      properties:
        allowedCIDRBlocks:
          type: array
          items:
            type: string
          description: The set of CIDR blocks that are allowed to use this API token. If empty, all CIDR blocks are allowed
        createdAt:
          type: string
          description: Time when the API token was created
        createdBy:
          type: object
          properties:
            id:
              type: string
              enum:
              - user
              - api-token
              - system
            type:
              type: string
          description: The actor who created the token
        expiresAt:
          type: string
          description: Time when the API token will expire. Will be null if the token is non-expiring
        id:
          type: string
          description: The unique identifier of the token
        lastUsedAt:
          type: string
          description: The last time this token was used to authenticate
        name:
          type: string
          description: The name of the token
        permissions:
          type: array
          items:
            type: string
            enum:
            - AIRunAsModify
            - AlertModify
            - AlertRead
            - BulkUpload
            - BulkUploadValidate
            - CloudsecSourceModify
            - CloudsecSourceRead
            - DataAnalyticsModify
            - DataAnalyticsRead
            - DestinationModify
            - DestinationRead
            - GeneralSettingsModify
            - GeneralSettingsRead
            - LogSourceModify
            - LogSourceRawDataRead
            - LogSourceRead
            - LookupModify
            - LookupRead
            - ManageAIResponses
            - ManageAISkills
            - ManageScheduledPrompts
            - McpServerModify
            - McpServerRead
            - NotificationsSend
            - OrganizationAPITokenModify
            - OrganizationAPITokenRead
            - PolicyModify
            - PolicyRead
            - ResourceModify
            - ResourceRead
            - RuleModify
            - RuleRead
            - RunPantherAI
            - SummaryRead
            - UserModify
            - UserRead
            - ViewAIPrivateResponses
            - ViewAISkills
            - ViewScheduledPrompts
        rotatedAt:
          type: string
          description: Time when the API token was rotated
        updatedAt:
          type: string
          description: Time when the API token was updated
        updatedBy:
          type: object
          properties:
            id:
              type: string
              enum:
              - user
              - api-token
              - system
            type:
              type: string
          description: The actor who updated the token
        value:
          type: string
          description: The API token value, only populated during create and rotate actions
      required:
      - name
      - permissions
      - id
      - createdAt
    APITokenAPI.ListResp:
      type: object
      properties:
        next:
          type: string
          description: Pagination token for the next page of results
        results:
          type: array
          items:
            $ref: '#/components/schemas/APITokenAPI.APIToken'
      required:
      - results
    APITokenAPI.ForbiddenErr:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    APITokenAPI.NotFoundError:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    APITokenAPI.BadRequestError:
      type: object
      properties:
        message:
          type: string
      required:
      - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: X-API-Key
      in: header
x-provenance:
  method: harvested
  publisher: Panther
  source: https://openapi.gitbook.com/o/-LgddDaIOc7MA4mxoaPa/spec/panther-labs-api.yaml
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)