Developer documentation

Connect to WRUMB.

Create an API key, make your first call, then add the operations your software needs.

Make your first call

  1. 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.
  2. Start with customer.bookings.read or provider.requests.read. Copy your key before closing setup.
  3. 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.

Configure your environment
export WRUMB_API_URL="https://api.wrumb.com/api"
export WRUMB_API_KEY="YOUR_API_KEY"
Customer: list your bookings
curl "$WRUMB_API_URL/integration/customer/bookings" \
  -H "x-api-key: $WRUMB_API_KEY"
Provider: list requests
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.

Calls use real account data

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.

Keep API keys on your server

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
provider.profile.read
Read the selected Provider’s profile.
provider.requests.read
Read requests sent to the Provider.
provider.requests.respond
Acknowledge, quote, accept or decline a request.
provider.deliveries.read
Read the Provider’s assigned deliveries.
provider.deliveries.fulfil
Assign deliveries, confirm pickup and delivery, and manage returns.
provider.earnings.read
Read settlement history and available balance.
customer.requests.write
Save a transport request for your account.
customer.discovery.read
Find transport options for your request.
customer.bookings.write
Create a booking from a selected delivery option.
customer.bookings.read
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.

MethodPathRequired scopePurpose
GET/integration/provider/profileprovider.profile.readProfile for the selected Provider grant
GET/integration/provider/requestsprovider.requests.readRequests for the selected Provider
POST/integration/provider/requests/:id/acknowledgeprovider.requests.respondRecord receipt; not commitment
POST/integration/provider/requests/:id/respondprovider.requests.respondQuote, accept or decline
GET/integration/provider/deliveriesprovider.deliveries.readDelivery work for the Provider
POST/integration/provider/deliveries/:id/actionsprovider.deliveries.fulfilRun the delivery lifecycle
GET/integration/provider/earningsprovider.earnings.readSettlements and available balance
POST/integration/customer/requestscustomer.requests.writeSave a transport request
POST/integration/customer/discoverycustomer.discovery.readFind transport options
POST/integration/customer/bookingscustomer.bookings.writeCreate a booking
GET/integration/customer/bookingscustomer.bookings.readList owned Bookings
GET/integration/customer/bookings/:idcustomer.bookings.readRead 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.

Acknowledge a Provider request
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.

  1. Verify the signature using the original request body before parsing JSON.
  2. Save the event for processing, then return a 2xx response.
  3. Use the event ID to avoid processing the same event twice.
Check the delivery result

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.

Verify a webhook signature
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.

Example event
{
  "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.
Still need help?

Include the operation, response code and delivery ID when relevant. Do not share API keys or signing secrets.