Patricia API Keys API

The api-keys API from Patricia — 2 operation(s) for api-keys.

GitHub OpenAPI

Operations 4

POST /v1/api-keys Create API key #
GET /v1/api-keys Search api keys #
DELETE /v1/api-keys/{id} Revoke API key #
GET /v1/api-keys/{id} Get 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/patricia-app:patricia-app-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

patricia-app-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Patricia API Keys API
  version: 0.1.0
tags:
- name: API Keys
paths:
  /v1/api-keys:
    post:
      tags:
      - API Keys
      summary: Create API key
      description: Mint a tenant API key. The plaintext key is returned once and cannot be retrieved again.
      operationId: create_api_key_v1_api_keys_post
      security:
      - HTTPBearer: []
      parameters:
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/models__api_key__ApiKey__CreateValidator'
      responses:
        '201':
          description: The created key, including the one-time plaintext.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__api_key__ApiKey__CreatedValidator'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      tags:
      - API Keys
      summary: Search api keys
      description: List api keys with filtering, sorting, and pagination.
      operationId: list_items_v1_api_keys_get
      security:
      - HTTPBearer: []
      parameters:
      - name: q
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: ANTLR filter expression
          title: Q
        description: ANTLR filter expression
      - name: limit
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 500
            minimum: 1
          - type: 'null'
          description: Page size
          title: Limit
        description: Page size
      - name: sort_by
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Sort expression (e.g. created_at:desc)
          title: Sort By
        description: Sort expression (e.g. created_at:desc)
      - name: fields
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Field projection (e.g. id,name)
          title: Fields
        description: Field projection (e.g. id,name)
      - name: pq
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Pagination cursor query
          title: Pq
        description: Pagination cursor query
      - name: from_prev
        in: query
        required: false
        schema:
          type: boolean
          description: Backward pagination flag
          default: false
          title: From Prev
        description: Backward pagination flag
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Paginated api key list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__api_key__ApiKey__SearchValidator'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/api-keys/{id}:
    delete:
      tags:
      - API Keys
      summary: Revoke API key
      description: 'Revoke a tenant API key. Soft revoke: the row is kept for audit and the key stops authenticating.'
      operationId: revoke_api_key_v1_api_keys__id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Id
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '204':
          description: No content.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      tags:
      - API Keys
      summary: Get api key
      description: Retrieve a single api key by ID.
      operationId: get_item_v1_api_keys__id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Id
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: The requested api key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models__api_key__ApiKey__FullValidator'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    Role:
      type: string
      enum:
      - owner
      - admin
      - member
      - viewer
      title: Role
    models__api_key__ApiKey__SearchValidator:
      properties:
        items:
          items:
            $ref: '#/components/schemas/models__api_key__ApiKey__FullValidator'
          type: array
          title: Items
        first:
          anyOf:
          - type: string
          - type: 'null'
          title: First
        next:
          anyOf:
          - type: string
          - type: 'null'
          title: Next
        previous:
          anyOf:
          - type: string
          - type: 'null'
          title: Previous
      type: object
      required:
      - items
      title: SearchValidator
      description: Typed cursor-paginated list response ({items, first, next, previous}).
    ErrorResponse:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        errors:
          anyOf:
          - items:
              additionalProperties: true
              type: object
            type: array
          - type: 'null'
          title: Errors
      type: object
      required:
      - code
      - message
      title: ErrorResponse
      description: Standard error envelope, matching exception handler output.
    models__api_key__ApiKey__FullValidator:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        tenant_id:
          type: string
          format: uuid
          title: Tenant Id
        name:
          type: string
          title: Name
        prefix:
          type: string
          title: Prefix
        role_code:
          $ref: '#/components/schemas/Role'
        created_by:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Created By
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
        revoked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Revoked At
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - tenant_id
      - name
      - prefix
      - role_code
      - created_at
      - updated_at
      title: FullValidator
      description: 'Response shape: never includes the stored hash or the plaintext key.'
    models__api_key__ApiKey__CreatedValidator:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        tenant_id:
          type: string
          format: uuid
          title: Tenant Id
        name:
          type: string
          title: Name
        prefix:
          type: string
          title: Prefix
        role_code:
          $ref: '#/components/schemas/Role'
        created_by:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Created By
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
        revoked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Revoked At
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        plaintext_key:
          type: string
          title: Plaintext Key
      type: object
      required:
      - id
      - tenant_id
      - name
      - prefix
      - role_code
      - created_at
      - updated_at
      - plaintext_key
      title: CreatedValidator
      description: 'POST response: carries the one-time plaintext key.'
    models__api_key__ApiKey__CreateValidator:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        role_code:
          $ref: '#/components/schemas/Role'
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
      additionalProperties: false
      type: object
      required:
      - name
      - role_code
      title: CreateValidator
      description: POST body. ``tenant_id`` + key material are server-assigned.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer