Appearance
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 represents | A signed-in user who authorized your app | Your application itself |
| Auth | User's OAuth 2.0 access token | API key (bearer token) |
| Typical client | Mobile, web, or desktop app running in front of a user | Backend 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:
- Open your app at
/developer/apps/<app-id>. - Under Backend API Key, click Generate API Key.
- 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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page | integer | — | 0 | Zero-indexed page number. Negative values clamp to 0. |
pageSize | integer | — | 20 | Items per page. Clamped between 1 and 100. |
since | long | — | — | 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:
- On the first poll, call without
since. Record the maximumlastModifiedDatefrom the returned items (or the current timestamp if the result is empty). - On every subsequent poll, pass that timestamp as
since. Paginate through the response. - After processing, update your checkpoint to the maximum
lastModifiedDateyou 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
| Status | When |
|---|---|
| 401 | Missing Authorization header or malformed bearer scheme. |
| 401 | API key is unknown, has been rotated, or has been revoked. |
| 401 | The owning application is blocked. |
| 403 | The 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.