> ## 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.

# Reactivate a webhook encryption key

> Reactivate an encryption key so it can be used for new webhook deliveries again.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/webhooks/keys/{key_id}/reactivate
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/keys/{key_id}/reactivate:
    post:
      tags:
        - Webhooks
      summary: Reactivate a webhook encryption key
      description: >-
        Reactivate an encryption key so it can be used for new webhook
        deliveries again.
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[A-Za-z0-9_-]+$
            description: The ID of the webhook encryption key to reactivate (e.g. whk_...).
          required: true
          description: The ID of the webhook encryption key to reactivate (e.g. whk_...).
          name: key_id
          in: path
      responses:
        '200':
          description: Webhook encryption key reactivated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Webhook Encryption Key'
                  error:
                    type: 'null'
                required:
                  - data
                  - error
        '404':
          description: Webhook encryption key not found.
          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
                required:
                  - data
                  - error
                example:
                  data: null
                  error:
                    code: NOT_FOUND
                    message: Webhook encryption key not found.
                    hint: >-
                      The webhook encryption key with the given ID was not
                      found.
                    docs: https://kayle.id/docs/api/webhooks/keys#reactivate
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: 'null'
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - INTERNAL_SERVER_ERROR
                      message:
                        type: string
                        enum:
                          - Internal server error.
                      hint:
                        type: string
                        enum:
                          - The server encountered an error.
                      docs:
                        type: string
                        enum:
                          - https://kayle.id/docs/api/errors
                    required:
                      - code
                      - message
                      - hint
                      - docs
                required:
                  - data
                  - error
      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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````