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

# Webhook v2 public keys of your project

> The ed25519 public keys that verify the signatures of webhook v2 events sent to your project. Responses may be cached for 5 minutes: refetch when a signature does not verify against any cached key. Requires a secret API key.



## OpenAPI

````yaml https://api.rhino.fi/webhook/swagger.json get /public-keys
openapi: 3.1.0
info:
  title: Api
  version: 0.0.1
servers:
  - url: https://api.rhino.fi/webhook
security: []
tags:
  - name: signature
  - name: user-events
paths:
  /public-keys:
    get:
      tags:
        - signature
      summary: Webhook v2 public keys of your project
      description: >-
        The ed25519 public keys that verify the signatures of webhook v2 events
        sent to your project. Responses may be cached for 5 minutes: refetch
        when a signature does not verify against any cached key. Requires a
        secret API key.
      operationId: signature.publicKeys
      parameters: []
      responses:
        '200':
          description: WebhookPublicKeysResponse
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookPublicKeysResponseEncoded'
        '400':
          description: InvalidJwt | HttpApiDecodeError
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/InvalidJwtEncoded'
                  - $ref: '#/components/schemas/HttpApiDecodeErrorEncoded'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedEncoded'
        '503':
          description: WebhookPublicKeysUnavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookPublicKeysUnavailableEncoded'
      security:
        - bearer: []
        - legacyApiKey: []
components:
  schemas:
    WebhookPublicKeysResponseEncoded:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: '#/components/schemas/WebhookPublicKeyEncoded'
      required:
        - keys
      additionalProperties: false
    InvalidJwtEncoded:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - InvalidJwt
        message:
          type: string
      required:
        - _tag
        - message
      additionalProperties: false
    HttpApiDecodeErrorEncoded:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - HttpApiDecodeError
        issues:
          type: array
          items:
            type: object
            properties:
              _tag:
                type: string
                enum:
                  - Pointer
                  - Unexpected
                  - Missing
                  - Composite
                  - Refinement
                  - Transformation
                  - Type
                  - Forbidden
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
                    - type: string
                      enum:
                        - Infinity
                        - '-Infinity'
                        - NaN
              message:
                type: string
            required:
              - _tag
              - path
              - message
            additionalProperties: false
        message:
          type: string
      required:
        - _tag
        - issues
        - message
      additionalProperties: false
    UnauthorizedEncoded:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - Unauthorized
        message:
          type: string
      required:
        - _tag
        - message
      additionalProperties: false
    WebhookPublicKeysUnavailableEncoded:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - WebhookPublicKeysUnavailable
      required:
        - _tag
      additionalProperties: false
    WebhookPublicKeyEncoded:
      type: object
      properties:
        keyId:
          $ref: '#/components/schemas/SigningKeyId'
        publicKey:
          $ref: '#/components/schemas/SigningPublicKey'
        state:
          type: string
          enum:
            - active
            - upcoming
            - retiring
        createdAt:
          type: string
      required:
        - keyId
        - publicKey
        - state
        - createdAt
      additionalProperties: false
    SigningKeyId:
      type: string
      pattern: ^whk_[A-Za-z0-9_-]{22}$
      description: Opaque Rhino signing key id
    SigningPublicKey:
      type: string
      pattern: ^whpk_[A-Za-z0-9+/]{43}=$
      description: 'Ed25519 public key: whpk_ + base64 of the raw 32 bytes'
  securitySchemes:
    bearer:
      description: Access token for authentication
      type: http
      scheme: Bearer
    legacyApiKey:
      type: apiKey
      name: authorization
      in: header

````

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