Make your first call
- Open the console and create a key. Choose Customer to access your bookings, or Provider to manage requests and deliveries for a Provider you manage.
- Start with
customer.bookings.readorprovider.requests.read. Copy your key before closing setup. - Select Try a call in the console, or run the matching example below from your server or terminal.
Set these variables first. Use the API endpoint shown in your console if it differs from the URL below.
export WRUMB_API_URL="https://api.wrumb.com/api"
export WRUMB_API_KEY="YOUR_API_KEY"curl "$WRUMB_API_URL/integration/customer/bookings" \
-H "x-api-key: $WRUMB_API_KEY"curl "$WRUMB_API_URL/integration/provider/requests" \
-H "x-api-key: $WRUMB_API_KEY"A successful response contains a bookings or requests array. An empty array means there is no work to show yet.
Start with a read call before testing operations that create bookings or update deliveries.
Keep your key safe
Send your key in the x-api-key header. Your key is shown only when you create it. If you lose it, create a replacement and revoke the old key in the console.
Store keys in environment variables or a secret manager. Do not include them in browser code, mobile apps, public repositories or logs.
Choose permissions
Permissions, called scopes in the API, control what a key can read or change. Choose only what your software needs. Customer and Provider permissions belong to separate keys.
All available scopes
- Read the selected Provider’s profile.
- Read requests sent to the Provider.
- Acknowledge, quote, accept or decline a request.
- Read the Provider’s assigned deliveries.
- Assign deliveries, confirm pickup and delivery, and manage returns.
- Read settlement history and available balance.
- Save a transport request for your account.
- Find transport options for your request.
- Create a booking from a selected delivery option.
- Read your account’s bookings.
Connect a Provider
When creating a Provider key, choose a Provider you manage. This creates a grant: permission for that key to act for that Provider.
Use Provider grants in the console to add or revoke access. Grant permissions must stay within the key’s permissions and your own access. Revoking a grant stops access to that Provider; revoking the key stops all access through it.
Using one key for multiple Providers
If more than one grant is active, include x-wrumb-provider: PROVIDER_ID with each call. Find the ID under Provider grants. Customer keys do not use this header.
API operations
Choose the operation and required scope below. Paths are relative to your API base URL.
| Method | Path | Required scope | Purpose |
|---|---|---|---|
| GET | /integration/provider/profile | provider.profile.read | Profile for the selected Provider grant |
| GET | /integration/provider/requests | provider.requests.read | Requests for the selected Provider |
| POST | /integration/provider/requests/:id/acknowledge | provider.requests.respond | Record receipt; not commitment |
| POST | /integration/provider/requests/:id/respond | provider.requests.respond | Quote, accept or decline |
| GET | /integration/provider/deliveries | provider.deliveries.read | Delivery work for the Provider |
| POST | /integration/provider/deliveries/:id/actions | provider.deliveries.fulfil | Run the delivery lifecycle |
| GET | /integration/provider/earnings | provider.earnings.read | Settlements and available balance |
| POST | /integration/customer/requests | customer.requests.write | Save a transport request |
| POST | /integration/customer/discovery | customer.discovery.read | Find transport options |
| POST | /integration/customer/bookings | customer.bookings.write | Create a booking |
| GET | /integration/customer/bookings | customer.bookings.read | List owned Bookings |
| GET | /integration/customer/bookings/:id | customer.bookings.read | Read one owned Booking |
Provider requests: acknowledge, then respond
Acknowledging a request records that you received it. To quote, accept or decline, use the respond endpoint. Read the returned status before taking the next action.
The example requires provider.requests.respond. Set WRUMB_REQUEST_ID to a request returned by the requests endpoint.
curl -X POST \
"$WRUMB_API_URL/integration/provider/requests/$WRUMB_REQUEST_ID/acknowledge" \
-H "x-api-key: $WRUMB_API_KEY"Receive updates with webhooks
Webhooks notify your software when a booking, request or delivery changes. Add an HTTPS endpoint in the console’s Webhooks tab, select the events you need, and copy the signing secret.
- Verify the signature using the original request body before parsing JSON.
- Save the event for processing, then return a 2xx response.
- Use the event ID to avoid processing the same event twice.
Send a test from the console, then refresh delivery history. Queued means the test is waiting; SENT means your endpoint returned a successful response.
Signature verification and event format
Read x-wrumb-timestamp and x-wrumb-signature. Verify HMAC-SHA256 over timestamp.rawBody, reject timestamps more than five minutes from the current time, and compare signatures securely.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verifyWrumbSignature(rawBody, headers, secret) {
const timestamp = headers["x-wrumb-timestamp"];
const received = headers["x-wrumb-signature"];
if (!timestamp || !received || !/^\d+$/.test(timestamp)) return false;
// Check the signed delivery time, not the event creation time.
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
const expected = "sha256=" + createHmac("sha256", secret)
.update(`${timestamp}.${rawBody}`)
.digest("hex");
const a = Buffer.from(expected);
const b = Buffer.from(received);
return a.length === b.length && timingSafeEqual(a, b);
}Each event includes a stable ID, creation time, event name, version and event data.
{
"id": "iwhd_01h…",
"createdAt": "2026-10-28T09:14:03.000Z",
"event": "provider_request.created",
"version": "v1",
"data": {
"requestId": "req_01h…",
"providerId": "prov_01h…",
"purpose": "BOOKING_CONFIRMATION",
"expiresAt": "2026-10-28T09:29:03.000Z"
}
}Retries and secret rotation
Requests time out after 10 seconds. Failed deliveries are retried after 2, 4, 8 and 16 minutes, for up to five attempts. You can retry a failed delivery from the console. Retries keep the same event ID and creation time.
After rotating a secret, update your receiver to use the new secret. WRUMB also sends x-wrumb-signature-previous for 24 hours so you can complete the change without interrupting delivery.
Limits and retries
Limits apply per client IP, per minute:
- API reads: 120 requests.
- API writes: 30 requests.
- Key and webhook management: 60 requests.
On HTTP 429, wait for the time specified in Retry-After. Retry reads with increasing delays. Before retrying a write, check whether it succeeded. For booking creation, reuse the same idempotencyKey in the JSON body when retrying the same request.
List responses
List endpoints return arrays. Webhook delivery history accepts a limit from 1 to 200. These endpoints do not currently provide pagination cursors.
Troubleshooting
Read the response’s message and, when present, code to identify what needs to change.
- 400 · Check the request
- Check the body and required headers. Keys with multiple active Provider grants need x-wrumb-provider.
- 401 · Check your key
- Confirm the key is correct, active and unexpired. Replace it if it has been lost or revoked.
- 403 · Check permissions
- Confirm the key has the required scope. For Provider calls, also check the selected Provider grant.
- 404 · Check the resource
- Confirm the ID is correct and the resource belongs to the account or Provider your key can access.
- 409 · Refresh before retrying
- Read the resource again. Its current status may no longer allow the requested action.
- 429 · Wait before retrying
- Wait for Retry-After, then try again with increasing delays.
Include the operation, response code and delivery ID when relevant. Do not share API keys or signing secrets.