Skip to content

Data API ​

The Data API is a server-to-server read endpoint for fetching bulletins your application has created. It is separate from the user-delegated REST API: it authenticates the application as itself using a long-lived API key, not an end-user's OAuth access token.

Use it to build dashboards, analytics, replication jobs, or incremental sync pipelines that aggregate activity across every user who has posted through your app.

When to use which API ​

REST API (/api/integrations/v1/*)Data API (/api/data/v1/*)
Caller representsA signed-in user who authorized your appYour application itself
AuthUser's OAuth 2.0 access tokenAPI key (bearer token)
Typical clientMobile, web, or desktop app running in front of a userBackend service, scheduled job, data warehouse loader
Can post bulletins✓—
Can list bulletins created by your app, across all users—✓

If you want to act on behalf of a specific user, use the REST API. If you want to read everything your app has written, use the Data API.

Generating an API key ​

API keys are created from the developer dashboard:

  1. Open your app at /developer/apps/<app-id>.
  2. Under Backend API Key, click Generate API Key.
  3. Copy the key immediately. The plaintext is displayed once and cannot be retrieved later..

Keys have the format pba_<43 URL-safe-base64 characters>. Treat them as secrets: never embed them in client-side code, mobile apps, or public repositories.

Rotating and revoking ​

  • Rotate generates a new key and immediately invalidates the previous one. Update every caller before rotating, or schedule brief downtime for the cutover.
  • Revoke invalidates the current key and disables backend access until a new key is generated.

Only one key is active per app at a time.

Calling the API ​

Send the API key as a bearer token on every request:

GET /api/data/v1/bulletins
Authorization: Bearer pba_<your key>

All responses are JSON. Errors follow the standard error format.

Sandbox vs. live ​

Routing follows the application's current sandbox configuration:

  • Sandbox mode on - the Data API returns bulletins from the sandbox collection. Useful while integrating; no production data is visible.
  • Sandbox mode off (after an admin approves production access) - the Data API returns bulletins from the live collection.

An app in one mode cannot see the other mode's bulletins.

List bulletins ​

GET /api/data/v1/bulletins?page=0&pageSize=50&since=<epoch-millis>
Authorization: Bearer pba_<your key>

Returns bulletins created by this application, sorted by lastModifiedDate descending (most recently updated first).

Parameters ​

ParameterTypeRequiredDefaultDescription
pageinteger—0Zero-indexed page number. Negative values clamp to 0.
pageSizeinteger—20Items per page. Clamped between 1 and 100.
sincelong——Epoch milliseconds. If supplied, only bulletins whose lastModifiedDate is strictly greater than this value are returned. Use this to build incremental sync.

Response ​

json
{
  "items": [ /* BulletinResponse objects, see below */ ],
  "page": 0,
  "pageSize": 50,
  "totalItems": 143,
  "totalPages": 3
}

Each item has the same shape as a bulletin returned by the REST API's Reading Bulletins endpoint — refer to that page for the full field reference, including the conditionRatings, photos, and vehicles sub-objects.

Incremental polling ​

The since parameter plus sorting by lastModifiedDate lets you resume a feed without re-reading records you already have. Pattern:

  1. On the first poll, call without since. Record the maximum lastModifiedDate from the returned items (or the current timestamp if the result is empty).
  2. On every subsequent poll, pass that timestamp as since. Paginate through the response.
  3. After processing, update your checkpoint to the maximum lastModifiedDate you saw.

Because since uses strict greater-than semantics, you will not re-fetch a record from the previous window. Edits to existing bulletins surface naturally because they update lastModifiedDate.

Example - curl ​

bash
# First call: pull everything
curl -H "Authorization: Bearer pba_abcdef..." \
  'https://backroadstatus.com/api/data/v1/bulletins?pageSize=100'

# Next call: only what has changed since the previous checkpoint
curl -H "Authorization: Bearer pba_abcdef..." \
  'https://backroadstatus.com/api/data/v1/bulletins?since=1731456000000&pageSize=100'

Errors ​

StatusWhen
401Missing Authorization header or malformed bearer scheme.
401API key is unknown, has been rotated, or has been revoked.
401The owning application is blocked.
403The request authenticated but is not permitted (reserved for future use).

Error responses follow the same Problem Details shape as the rest of the API.

Security notes ​

  • Rotate keys regularly, and immediately if you suspect a compromise.
  • Store keys in a secrets manager; do not commit them.
  • The pba_ prefix is designed to be matched by secret-scanning tools. Enable push protection on your source repositories where possible.
  • All requests should be made over HTTPS. Keys sent over plain HTTP are trivially interceptable.

Service Road Atlas API documentation