Snap4ID public keys that sign `job.paid` webhooks
Documents @snap4id-sdk/partner-api 1.0.0
GET
/api/v1/partner/webhook-keys
import { createWebhookVerifier } from '@snap4id-sdk/partner-api';
// Fetches and caches these keys for you (an unknown key id refetches once).const verifier = createWebhookVerifier({ keysUrl: 'https://snap4.id/api/v1/partner/webhook-keys' });curl 'https://snap4.id/api/v1/partner/webhook-keys'Public halves of Snap4ID’s webhook signing keys; look up x-snap4id-key-id here. Unsigned and public (cacheable). A new key is published at least 7 days before it signs. Served during maintenance.
Responses
Section titled “Responses”OK
Media typeapplication/json
Snap4ID webhook signing public keys
object
keys
required
Array<object>
object
key_id
required
string
alg
required
string
public_key_pem
required
string
Example
{ "keys": [ { "alg": "ed25519" } ]}Headers
Section titled “Headers”Cache-Control
string
Retryable server error (body not part of the contract).
