PingZen API Keys API

The API Keys API from PingZen — 2 operation(s) for api keys.

GitHub OpenAPI

Operations 4

POST /api/v1/api-keys Create Api Key #
GET /api/v1/api-keys List Api Keys #
GET /api/v1/api-keys/{key_id} Get Api Key #
DELETE /api/v1/api-keys/{key_id} Revoke Api Key #

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/pingzen-dev:pingzen-dev-api-keys-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

pingzen-dev-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PingZen API Keys API
  description: Service availability monitoring platform. Monitor your websites, APIs, and services with multi-protocol support.
  version: 1.0.0
tags:
- name: API Keys
paths:
  /api/v1/api-keys:
    post:
      tags:
      - API Keys
      summary: Create Api Key
      description: 'Create a new API key.


        IMPORTANT: The raw key is returned ONLY in this response.

        Copy it now - it cannot be retrieved later!


        API keys are used for programmatic access:

        - CI/CD integrations

        - Scripts and automation

        - AI agents (Claude, GPT, MCP servers)


        Usage:

        ```

        curl -H "X-API-Key: pz_abc12345_..." https://pingzen.dev/api/v1/monitors

        ```'
      operationId: create_api_key_api_v1_api_keys_post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApiKeyRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateApiKeyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - API Keys
      summary: List Api Keys
      description: 'List all API keys for the current workspace.


        Returns keys WITHOUT raw values - only the prefix is visible.'
      operationId: list_api_keys_api_v1_api_keys_get
      security:
      - HTTPBearer: []
      parameters:
      - name: include_revoked
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Revoked
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/api-keys/{key_id}:
    get:
      tags:
      - API Keys
      summary: Get Api Key
      description: 'Get API key by ID.


        Returns the key metadata - the raw key value is NEVER returned.'
      operationId: get_api_key_api_v1_api_keys__key_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: integer
          title: Key Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - API Keys
      summary: Revoke Api Key
      description: 'Revoke an API key (soft delete).


        The key will immediately stop working for authentication.

        This action cannot be undone.'
      operationId: revoke_api_key_api_v1_api_keys__key_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: integer
          title: Key Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeApiKeyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CreateApiKeyRequest:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
          description: Human-readable key name (e.g., 'CI/CD Integration')
      type: object
      required:
      - name
      title: CreateApiKeyRequest
      description: Request schema for creating an API key.
    ApiKeyResponse:
      properties:
        id:
          type: integer
          title: Id
          description: API key ID
        name:
          type: string
          title: Name
          description: Key name
        key_prefix:
          type: string
          title: Key Prefix
          description: Key prefix for display
        user_id:
          type: integer
          title: User Id
          description: Owner user ID
        workspace_id:
          type: integer
          title: Workspace Id
          description: Associated workspace ID
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Creation timestamp
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
          description: Last usage timestamp
        is_active:
          type: boolean
          title: Is Active
          description: Whether key is active (not revoked)
      type: object
      required:
      - id
      - name
      - key_prefix
      - user_id
      - workspace_id
      - created_at
      - is_active
      title: ApiKeyResponse
      description: 'Response schema for an API key.


        Note: Does NOT include the raw key - only prefix is visible.'
    CreateApiKeyResponse:
      properties:
        id:
          type: integer
          title: Id
          description: API key ID
        name:
          type: string
          title: Name
          description: Key name
        key_prefix:
          type: string
          title: Key Prefix
          description: Key prefix for display (e.g., 'pz_abc12345')
        workspace_id:
          type: integer
          title: Workspace Id
          description: Workspace the key is bound to (the user's default workspace)
        raw_key:
          type: string
          title: Raw Key
          description: Full API key - COPY NOW! This will NOT be shown again.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Creation timestamp
      type: object
      required:
      - id
      - name
      - key_prefix
      - workspace_id
      - raw_key
      - created_at
      title: CreateApiKeyResponse
      description: 'Response schema for creating an API key.


        IMPORTANT: The raw_key is shown ONCE at creation.

        It cannot be retrieved later - only the prefix is stored.'
      example:
        created_at: '2026-02-05T12:00:00Z'
        id: 1
        key_prefix: pz_abc12345
        name: CI/CD Integration
        raw_key: pz_abc12345_Xk9mN2pQrStUvWxYz0123456789abcdefghij
        workspace_id: 1
    ApiKeyListResponse:
      properties:
        keys:
          items:
            $ref: '#/components/schemas/ApiKeyResponse'
          type: array
          title: Keys
          description: List of API keys
        total:
          type: integer
          title: Total
          description: Total number of keys
      type: object
      required:
      - keys
      - total
      title: ApiKeyListResponse
      description: Response schema for API key list.
    RevokeApiKeyResponse:
      properties:
        id:
          type: integer
          title: Id
          description: Revoked key ID
        key_prefix:
          type: string
          title: Key Prefix
          description: Revoked key prefix
        revoked:
          type: boolean
          title: Revoked
          description: Whether revocation was successful
        message:
          type: string
          title: Message
          description: Status message
      type: object
      required:
      - id
      - key_prefix
      - revoked
      - message
      title: RevokeApiKeyResponse
      description: Response schema for revoking an API key.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key