> For the complete documentation index, see [llms.txt](https://docs.loomgate.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.loomgate.io/api-reference/webhook-signing-keys.md).

# Webhook signing keys

Khóa công khai Ed25519 dùng để xác minh chữ ký webhook.

Trả về các khóa công khai (SPKI PEM) đang dùng để ký webhook. Cách dùng và xử lý xoay khóa: xem [Xác minh chữ ký](/webhooks/verify-signatures.md).

## List the public keys that sign webhooks

> Verify \`Loomgate-Signature: t=…,kid=…,v1=…\` with the key whose \`kid\` matches. The signed payload is \`${t}.${endpoint\_id}.${raw\_body}\` (Ed25519). Cache the keys; refetch on an unknown \`kid\`.

```json
{"openapi":"3.0.0","info":{"title":"Loomgate API","version":"v1"},"tags":[{"name":"Webhook signing keys","description":"Public keys that verify the `Loomgate-Signature` header of webhooks."}],"servers":[{"url":"https://api.loomgate.io"}],"security":[{"secret_key":[]}],"components":{"securitySchemes":{"secret_key":{"scheme":"bearer","type":"http","description":"Secret key `sk_live_…` (server-side only)."}},"schemas":{"WebhookSigningKeyList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookSigningKey"}},"has_more":{"type":"boolean"}},"required":["object","data","has_more"]},"WebhookSigningKey":{"type":"object","properties":{"kid":{"type":"string","description":"The `kid` of the Loomgate-Signature header."},"public_key_pem":{"type":"string","description":"Ed25519 public key, SPKI PEM."},"active":{"type":"boolean","description":"True for the key currently signing new deliveries."}},"required":["kid","public_key_pem","active"]},"ErrorResponse":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/Error"}},"required":["error"]},"Error":{"type":"object","properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","card_error","rate_limit_error","api_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"string","description":"The request field at fault."},"decline_code":{"type":"string","description":"Card declines only, when the reason is known."}},"required":["type","code","message"]}}},"paths":{"/partner/v1/webhook_signing_keys":{"get":{"description":"Verify `Loomgate-Signature: t=…,kid=…,v1=…` with the key whose `kid` matches. The signed payload is `${t}.${endpoint_id}.${raw_body}` (Ed25519). Cache the keys; refetch on an unknown `kid`.","operationId":"listWebhookSigningKeys","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSigningKeyList"}}}},"401":{"description":"authentication_error: missing, invalid or revoked key / client secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"rate_limit_error: `rate_limited`, too many requests; retry after the `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"List the public keys that sign webhooks","tags":["Webhook signing keys"]}}}}
```

Ví dụ response:

```json
{
  "object": "list",
  "data": [
    {
      "kid": "k1",
      "public_key_pem": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA…\n-----END PUBLIC KEY-----\n",
      "active": true
    }
  ],
  "has_more": false
}
```

Các khóa này cũng hiển thị trong mục **Webhook** của dashboard.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.loomgate.io/api-reference/webhook-signing-keys.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
