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

# List webhook encryption keys

> List encryption keys registered for a webhook endpoint belonging to the authenticated organization.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/webhooks/endpoints/{endpoint_id}/keys
openapi: 3.1.0
info:
  title: Kayle ID
  version: 1.5.0
  description: Privacy-first identity verification.
  license:
    name: Apache License 2.0
    url: https://github.com/kayleai/kayle-id/blob/main/LICENSE
  contact:
    name: Kayle ID
    url: https://kayle.id
    email: help@kayle.id
  termsOfService: https://kayle.id/terms
servers:
  - url: http://127.0.0.1:8787
    description: ''
security:
  - bearerAuth: []
paths:
  /v1/webhooks/endpoints/{endpoint_id}/keys:
    get:
      tags:
        - Webhooks
      summary: List webhook encryption keys
      description: >-
        List encryption keys registered for a webhook endpoint belonging to the
        authenticated organization.
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[A-Za-z0-9_-]+$
            description: >-
              The ID of the webhook endpoint whose keys should be listed (e.g.
              whe_...).
          required: true
          description: >-
            The ID of the webhook endpoint whose keys should be listed (e.g.
            whe_...).
          name: endpoint_id
          in: path
        - schema:
            type: boolean
            description: >-
              Filter keys by active state. If omitted, both active and inactive
              keys are returned.
          required: false
          description: >-
            Filter keys by active state. If omitted, both active and inactive
            keys are returned.
          name: is_active
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            description: Maximum number of keys to return. Defaults to 10 if not specified.
          required: false
          description: Maximum number of keys to return. Defaults to 10 if not specified.
          name: limit
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[A-Za-z0-9_-]+$
            description: >-
              Cursor of the last item from the previous page. When provided, the
              next page of results will be returned.
          required: false
          description: >-
            Cursor of the last item from the previous page. When provided, the
            next page of results will be returned.
          name: starting_after
          in: query
      responses:
        '200':
          description: Successful operation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Webhook Encryption Key'
                  error:
                    type: 'null'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
                required:
                  - data
                  - error
                  - pagination
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: 'null'
                    description: Empty data object.
                  error:
                    type:
                      - object
                      - 'null'
                    properties:
                      code:
                        type: string
                        description: The error code
                      message:
                        type: string
                        description: The error message
                      hint:
                        type: string
                        description: A hint to help the user fix the error
                      docs:
                        type: string
                        description: A link to the documentation for the error
                    required:
                      - code
                      - message
                      - hint
                      - docs
                  pagination:
                    type: object
                    properties:
                      limit:
                        type: number
                      has_more:
                        type: boolean
                        enum:
                          - false
                      next_cursor:
                        type: 'null'
                    required:
                      - limit
                      - has_more
                      - next_cursor
                required:
                  - data
                  - error
                  - pagination
      security:
        - bearerAuth: []
components:
  schemas:
    Webhook Encryption Key:
      type: object
      properties:
        id:
          type: string
          description: The ID of the webhook encryption key
        webhook_endpoint_id:
          type: string
          description: The ID of the webhook endpoint this key belongs to
        key_id:
          type: string
          description: The key identifier, used as `kid` in the JWE header
        algorithm:
          type: string
          description: The JWE algorithm (e.g. ECDH-ES)
        key_type:
          type: string
          description: The JWK key type (e.g. EC)
        jwk:
          type: object
          additionalProperties: {}
          description: The public JWK used to encrypt webhook payloads
        is_active:
          type: boolean
          description: Whether this key is active for new webhook deliveries
        created_at:
          type: string
          description: The time the key was created
        updated_at:
          type: string
          description: The time the key was last updated
        disabled_at:
          type:
            - string
            - 'null'
          description: The time the key was disabled, null if still active
      required:
        - id
        - webhook_endpoint_id
        - key_id
        - algorithm
        - key_type
        - jwk
        - is_active
        - created_at
        - updated_at
        - disabled_at
    Pagination:
      type: object
      properties:
        limit:
          type: number
          description: The maximum number of items returned.
          example: 10
        has_more:
          type: boolean
          description: Whether there are more items available after this page.
          example: false
        next_cursor:
          type:
            - string
            - 'null'
          description: >-
            Cursor to use as `starting_after` to fetch the next page of results,
            or null if there are no more items.
          example: null
      required:
        - limit
        - has_more
        - next_cursor
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````