API Overview
Authentication, conventions, and caching for the Augur REST API.
Augur API Overview
The Augur API is a collection of REST microservices. Each service runs at its own subdomain of augur-api.com. Check the service directory for the current list.
Base URL Pattern
https://{service-name}.augur-api.comExamples:
https://items.augur-api.com— Product cataloghttps://customers.augur-api.com— Customer datahttps://orders.augur-api.com— Order management
Authentication
All requests require two credentials:
| Header | Description |
|---|---|
Authorization: Bearer {jwt} | Your JWT token |
x-site-id: {siteId} | Your site identifier |
curl -H "Authorization: Bearer YOUR_TOKEN" \
-H "x-site-id: YOUR_SITE_ID" \
https://items.augur-api.com/inv-mast?limit=10Token Types
| Type | Lifespan | Notes |
|---|---|---|
| Site token | Long-lived | Can be revoked by SimpleApps |
| User token | Short-lived | Should be rotated regularly |
Tokens are locked to specific sites. Contact SimpleApps to obtain credentials.
Credential Files
The SDK resolves credentials automatically in this order:
- Environment variables —
AUGUR_TOKEN+AUGUR_SITE_ID - Explicit file —
AUGUR_CREDS_FILEenv var pointing to JSON - Project file —
<cwd>/.simpleapps/augur-api.json - Global file —
~/.simpleapps/augur-api.json
Single-site format:
{
"siteId": "my-site",
"jwt": "my-token"
}Multi-site format:
{
"site-a": { "jwt": "token-a" },
"site-b": { "jwt": "token-b" }
}Response Format
All endpoints return a standard JSON envelope:
{
"status": 200,
"message": "Ok",
"data": [],
"count": 10,
"total": 10,
"totalResults": 542,
"options": {},
"params": {}
}Pagination
List endpoints accept limit and offset query parameters:
GET /inv-mast?limit=25&offset=50API Conventions
- REST only — no GraphQL
- JSON only — no XML
- No breaking changes — new fields are added, old fields are never removed
- Standard HTTP status codes for errors
- No sandbox — test against your configured site
- Rate limits are generous — contact SimpleApps if you hit limits
- Edge caching available — use
edgeCacheparameter on GET requests
Edge Caching
Any GET request can use Cloudflare edge caching via the edgeCache query parameter:
| Value | Duration |
|---|---|
30s | 30 seconds |
1m | 1 minute |
5m | 5 minutes |
1 - 5, 8 | 1-5 or 8 hours |
curl https://items.augur-api.com/inv-mast?limit=10&edgeCache=5mImplement local caching where appropriate. While Cloudflare handles CDN caching, storing frequently accessed data locally (product catalogs, pricing tiers) reduces API calls and improves response times.