Webhooks¶
The platform has two inbound webhook receivers. One is used by the b'nerd registry to deliver container image push events; the other is called by Stripe for billing events. The API offers customers nothing to configure for either: you cannot create, list or change webhooks, and there is no customer-facing way to wire a webhook to an app.
Endpoint¶
| Method | Path | Description |
|---|---|---|
POST | /webhooks/{id}/receive | Receive an inbound webhook payload (public) |
POST | /webhooks/stripe | Receive a Stripe event (public, authenticated by its Stripe-Signature header) |
Inbound event format¶
The /webhooks/{id}/receive endpoint is public (no authentication required) so external systems can deliver events without a b'nerd token. The platform currently processes container registry push events:
{
"type": "PUSH_ARTIFACT",
"occur_at": 1710412477,
"operator": "robot$myapp+deploy",
"event_data": {
"resources": [
{
"digest": "sha256:abc123...",
"tag": "1.2.3",
"resource_url": "registry.bnerd.com/myorg/myapp:1.2.3"
}
],
"repository": {
"name": "myapp",
"namespace": "myorg",
"repo_full_name": "myorg/myapp"
}
}
}
event_data.resources[0].resource_url is required; without it the request is refused with 400 missing_parameter.
Authorization¶
The receive endpoint (POST /webhooks/{id}/receive) is intentionally unauthenticated to allow the registry to POST without a b'nerd token.
POST /webhooks/stripe is called by Stripe only. It takes no b'nerd token: the Stripe-Signature header, checked against the platform's webhook secret, is the authentication. A missing, invalid or out-of-tolerance signature, or a body that is not JSON, is refused with 400; a repeated delivery of an event already seen answers 200 and does nothing. You do not call this endpoint yourself.