Skip to content

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' });

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.

OK

Media typeapplication/json

Snap4ID webhook signing public keys

object
keys
required
Array<object>
>= 1 items
object
key_id
required
string
/^[a-z0-9][a-z0-9_-]{2,63}$/
alg
required
string
Allowed value: ed25519
public_key_pem
required
string

Example

{
"keys": [
{
"alg": "ed25519"
}
]
}
Cache-Control
string
Allowed value: public, max-age=3600

Retryable server error (body not part of the contract).