v1 — loads can be listed, read and created; customers, drivers, vehicles, invoices and documents are read-only. Changing a load's status through the API is not available yet. OpenAPI 3.1 spec.
Developers · API v1

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.

★ / QUICKSTARTForm RB-D0 · 3 steps

From zero to your first call.

1

Create a key

An admin creates a scoped key under Admin → Developers. It is shown once; only a hash is stored.

loads:read, loads:write
2

Call the API

Send it as a bearer token with any HTTP client. JSON in, JSON out, cursor-paginated lists.

GET /api/v1/loads
3

Subscribe to events

Add an HTTPS endpoint and choose events. Every delivery is signed, retried with backoff and logged.

load.status_changed

Authenticate 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.

Authentication
# 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.
★ / CODE SAMPLESForm RB-D3 · Examples

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.

cURL
cURL
# 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",
  …
}
Node.js
Node.js
// 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);
Python
Python
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"])
★ / CONCEPTSForm RB-D2 · The basics

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.

Error envelope
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…"
  }
}
★ / REFERENCEForm RB-D1 · Endpoints

Endpoints and scopes.

Every endpoint, with the scope it needs. Full schemas are in the OpenAPI 3.1 document.

GET/api/v1/loadsList loads · loads:read
POST/api/v1/loadsCreate a booked load · loads:write
GET/api/v1/loads/{id}Get a load · loads:read
POST/api/v1/loads/{id}/statusChange load status · loads:write
GET/api/v1/customersList customers · customers:read
GET/api/v1/customers/{id}Get a customer · customers:read
GET/api/v1/driversList drivers · drivers:read
GET/api/v1/drivers/{id}Get a driver · drivers:read
GET/api/v1/vehiclesList vehicles · equipment:read
GET/api/v1/vehicles/{id}Get a vehicle · equipment:read
GET/api/v1/invoicesList invoices · invoices:read
GET/api/v1/invoices/{id}Get an invoice · invoices:read
GET/api/v1/documentsList document metadata · documents:read
GET/api/v1/documents/{id}Get document metadata · documents:read
GET/api/v1/documents/{id}/downloadGet a short-lived download URL · documents:read
★ / WEBHOOKSForm RB-D4 · Events

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.

EVENTload.createdA load was created, in the app, by import or through the API.
EVENTload.status_changedA load moved to a new status (dispatched, delivered, invoiced, cancelled, …).
EVENTload.assignedThe driver, tractor or trailer on a load changed (assigned, swapped or removed).
EVENTinvoice.sentAn invoice was sent to the customer for the first time.
EVENTinvoice.paidAn invoice was paid in full.
EVENTinvoice.status_changedAn invoice moved to any new status, including the reversals: a payment undone (paid to partially paid or sent), voided, cancelled, or bought back from a factor.
EVENTdocument.uploadedA document was added to a load, driver, vehicle or other record. Screening records never emit.
EVENTdocument.approvedA document (POD, BOL, rate confirmation, …) was approved. Screening records never emit.
EVENTdocument.approval_withdrawnAn approved document was un-approved or rejected. Screening records never emit.
Verify a webhook
// 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.