> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vellaro.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke My Key

> Disattiva una chiave. Immediato e non reversibile: si rigenera, non si riattiva.

La revoca si propaga entro la TTL della cache del middleware (60s), non
istantaneamente — vale la pena dirlo in interfaccia perché chi revoca dopo
una fuga vuole sapere quanto deve aspettare.



## OpenAPI

````yaml https://api.vellaro.io/openapi.json post /api/v1/admin/api-keys/{key_id}/revoke
openapi: 3.1.0
info:
  title: Vellaro API
  description: Vellaro 2026 — E-commerce API
  version: 0.1.0
servers:
  - url: https://api.vellaro.io
    description: Produzione
security: []
tags: []
paths:
  /api/v1/admin/api-keys/{key_id}/revoke:
    post:
      tags:
        - admin:api-keys
      summary: Revoke My Key
      description: >-
        Disattiva una chiave. Immediato e non reversibile: si rigenera, non si
        riattiva.


        La revoca si propaga entro la TTL della cache del middleware (60s), non

        istantaneamente — vale la pena dirlo in interfaccia perché chi revoca
        dopo

        una fuga vuole sapere quanto deve aspettare.
      operationId: revoke_my_key_api_v1_admin_api_keys__key_id__revoke_post
      parameters:
        - name: key_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Key Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_ApiKeyOut_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ApiResponse_ApiKeyOut_:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/ApiKeyOut'
            - type: 'null'
        meta:
          anyOf:
            - $ref: '#/components/schemas/PaginationMeta'
            - type: 'null'
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
      type: object
      title: ApiResponse[ApiKeyOut]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ApiKeyOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        tenant_id:
          type: string
          format: uuid
          title: Tenant Id
        key_prefix:
          type: string
          title: Key Prefix
        last4:
          type: string
          title: Last4
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
        client_type:
          type: string
          title: Client Type
        environment:
          type: string
          title: Environment
        allowed_origins:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Allowed Origins
        scopes:
          items:
            type: string
          type: array
          title: Scopes
        rate_limit_rpm:
          anyOf:
            - type: integer
            - type: 'null'
          title: Rate Limit Rpm
        is_active:
          type: boolean
          title: Is Active
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        last_used_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Used At
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
        created_at:
          type: string
          format: date-time
          title: Created At
        revoked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Revoked At
      type: object
      required:
        - id
        - tenant_id
        - key_prefix
        - last4
        - label
        - client_type
        - environment
        - allowed_origins
        - scopes
        - rate_limit_rpm
        - is_active
        - expires_at
        - last_used_at
        - notes
        - created_at
        - revoked_at
      title: ApiKeyOut
    PaginationMeta:
      properties:
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total:
          type: integer
          title: Total
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - page
        - page_size
        - total
        - total_pages
      title: PaginationMeta
    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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.