Wire RigBase into everything else.
A REST JSON API over your loads, customers, drivers, vehicles, invoices and documents, plus signed webhooks when loads move, invoices go out or get paid, and paperwork is approved.
From zero to your first call.
Create a key
An admin creates a scoped key under Admin → Developers. It is shown once; only a hash is stored.
loads:read, loads:writeCall the API
Send it as a bearer token with any HTTP client. JSON in, JSON out, cursor-paginated lists.
GET /api/v1/loadsSubscribe to events
Add an HTTPS endpoint and choose events. Every delivery is signed, retried with backoff and logged.
load.status_changedAuthenticate with an organization API key as a bearer token. The key decides the organization; nothing in the request can name another. Each key carries scopes and is re-checked against its creator's permissions on every request.
Base URL
https://rigbase.io/api/v1
Each key has a per-minute limit (60 by default), reported in the RateLimit and RateLimit-Policy headers and enforced with 429 + Retry-After. Send an Idempotency-Key on POST and a retry returns the first response instead of creating a duplicate.
# Every request carries an organization API key
curl "https://rigbase.io/api/v1/loads?limit=10" \
-H "Authorization: Bearer $RIGBASE_KEY"
# Keys are created and revoked by an admin under
# Admin → Developers. Each key has scopes (e.g. loads:read,
# loads:write) and acts as the person who created it.Create, page, read.
Request and response shapes match the OpenAPI document. Loads are created as booked; drivers and equipment are assigned in the app, where the dispatch safety checks run.
# Create a booked load (safe to retry with the same Idempotency-Key)
curl -X POST https://rigbase.io/api/v1/loads \
-H "Authorization: Bearer $RIGBASE_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 7f9c2ba4-e88f-11ee-a3c6-0242ac120002" \
-d '{
"load_number": "TX-10482",
"customer_id": "4b0d…",
"commodity": "Steel coils",
"rate": 1820,
"pickup": { "address": { "city": "Dallas", "state": "TX" }, "appointment_start": "2026-11-12T08:00:00-06:00" },
"delivery": { "address": { "city": "Memphis", "state": "TN" }, "appointment_start": "2026-11-13T09:00:00-06:00" }
}'
# 201 Created
{
"object": "load",
"id": "9a3e…",
"load_number": "TX-10482",
"status": "booked",
…
}// Walk every load, page by page.
let cursor = null;
do {
const url = new URL("https://rigbase.io/api/v1/loads");
url.searchParams.set("limit", "100");
if (cursor) url.searchParams.set("cursor", cursor);
const res = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.RIGBASE_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error.message);
const page = await res.json();
for (const load of page.data) console.log(load.load_number, load.status);
cursor = page.next_cursor;
} while (cursor);import os, requests
res = requests.get(
"https://rigbase.io/api/v1/invoices",
params={"status": "sent", "limit": 50},
headers={"Authorization": f"Bearer {os.environ['RIGBASE_KEY']}"},
)
res.raise_for_status()
for inv in res.json()["data"]:
print(inv["invoice_number"], inv["amount_outstanding"])Designed the way you expect.
Scoped keys
Read-only or read-write per resource. A key never exceeds the permissions of the person who created it, and is revocable at once.
Cursor pagination
limit + cursor, has_more + next_cursor. Keyset-ordered, so no row is missed or repeated while data changes.
Signed webhooks
Standard Webhooks signatures, retries for about a day, a delivery log and one-click redelivery.
Clear errors and limits
One error envelope with a request_id, Idempotency-Key on POST, and per-key limits in RateLimit headers.
HTTP/1.1 403 Forbidden
RateLimit-Policy: "key";q=60;w=60
RateLimit: "key";r=57;t=41
{
"error": {
"type": "permission_error",
"code": "missing_scope",
"message": "This API key does not have the invoices:read scope.",
"request_id": "0b6f…"
}
}Endpoints and scopes.
Every endpoint, with the scope it needs. Full schemas are in the OpenAPI 3.1 document.
Know when things change.
Signed per the Standard Webhooks spec (webhook-id, webhook-timestamp, webhook-signature), so any Standard Webhooks library verifies them. Retried with exponential backoff for about a day; payloads carry ids and statuses — fetch the full record through the API.
// Verify a RigBase webhook (Standard Webhooks, HMAC-SHA256).
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(secret, headers, rawBody) {
const id = headers["webhook-id"];
const ts = headers["webhook-timestamp"];
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; // replay window
const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
const expected = createHmac("sha256", key).update(`${id}.${ts}.${rawBody}`).digest();
return headers["webhook-signature"].split(" ").some((entry) => {
const [version, sig] = entry.split(",");
const got = Buffer.from(sig ?? "", "base64");
return version === "v1" && got.length === expected.length && timingSafeEqual(got, expected);
});
}
// Dedupe on webhook-id: a retry or a manual redelivery repeats it.Want to build on RigBase?
Create a key under Admin → Developers and make your first call. Missing an endpoint or an event you need? Tell us at developers@rigbase.io.