Browse guides
The protocol
Signed, versioned HTTP between an instance and the network.
1 min read · For companies
Every machine-to-machine request between an instance and the network carries the instance id, a Unix timestamp, an idempotency key and an Ed25519 signature over:
METHOD\npath?query\ntimestamp\nidempotency-key\nsha256(body)Requests older or newer than five minutes are rejected, and each idempotency key is accepted once. Messages are strict: unknown fields are rejected.
| Endpoint | Direction | Purpose |
|---|---|---|
| POST /v1/oauth/token | Instance → Network | Exchange a PKCE OAuth code for an instance registration |
| POST /v1/instances/register | Instance → Network | Register with a one-time code; signed by the new key |
| POST /v1/instances/keys | Instance → Network | Rotate the instance key |
| DELETE /v1/instances/self | Instance → Network | Disconnect |
| PUT /v1/listings | Instance → Network | Replace the instance's listings |
| PUT /v1/partner-index | Instance → Network | Optional zero-PII HMAC email hashes for matching existing partners |
| GET /v1/applications?cursor= | Instance → Network | Pull new applications |
| POST /v1/applications/:id/decision | Instance → Network | Approve or reject |
| POST /v1/reports | Instance → Network | Daily counts |
| GET /api/network/v1/partners/:profileId/summary | Network → Instance | Live earnings and link summary for one already-linked partner (signed by the network) |
| POST /api/network/sso | Browser form POST | One-click partner sign-in via a single-use network-signed assertion (owners and admins are blocked) |
| GET /.well-known/betterrewards-network.json | Instance → Network | The network's public key for verifying signatures and assertions |
Types and the client live in packages/protocol of the betterrewards repository.