---
title: "Retrieve webhook public key (JSON)"
method: GET
path: "/webhooks/json_public_key"
tags: ["webhooks"]
---

# Retrieve webhook public key (JSON)

`GET /webhooks/json_public_key`

## Request

- Base URL: `https://api.getlago.com/api/v1`
- URL: `https://api.getlago.com/api/v1/webhooks/json_public_key`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/getlago/apis/lago-api-documentation/docs/webhooks/json_public_key/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint is used to retrieve the public key used to verify the webhook signature, wrapped in a JSON object. Prefer this endpoint over the deprecated `GET /webhooks/public_key`.

## Response `200`

Public key

- WebhookPublicKey
  - `webhook` WebhookPublicKeyObject, required
    - `public_key` string, required: The RSA public key used to verify webhook signatures. The key is PEM encoded, then Base64 encoded with line breaks.

## Other responses

- `401`: Unauthorized error

## Changes

- **2026-11-03** `5d26657495a3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getlago/apis/lago-api-documentation/changes/webhooks/json_public_key/get.md)

---

[API](https://skmtc.dev/getlago/apis/lago-api-documentation.md) - [All operations](https://skmtc.dev/getlago/apis/lago-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/getlago/apis/lago-api-documentation/revisions/b216574b9612?raw)
