📋 In This Guide
Developer Overview
SupplyScout provides a REST API for partners to integrate with SupplyScout's supply tracking and disaster management systems. This guide covers authentication, available endpoints, and integration patterns.
Base URL
API Capabilities
Supply Data
Read current supply availability, report supplies, and search supplies across regions.
Store Information
Access store details, locations, and supply history for authorized locations.
Disaster Events
Retrieve active disasters, resources, and alerts for your region.
Inventory Sync
For verified supplier partners: push real-time inventory updates to SupplyScout.
Authentication
API Keys
All API requests require an API key passed in the authorization header:
Getting Your API Key
Contact partnerships@supplyscout.org or admin@supplyscout.org to request API access. Include:
- Your organization name
- Intended use case
- Contact information
Scopes
API keys support different scopes based on your partnership type:
| Scope | Capabilities |
|---|---|
read:supplies |
Read supply data (all endpoints) |
write:supplies |
Report supplies and update inventory |
read:disasters |
Read disaster and alert information |
admin:disasters |
Create and manage disasters (admins only) |
API Reference
Supplies Endpoints
List Supplies at Store
/stores/{storeId}/supplies
Get current supply availability for a specific store.
Report Supplies
/stores/{storeId}/supplies/report
Submit a supply report (requires write:supplies scope).
Request Body:
Search Supplies
/supplies/search?q=ice&lat=34.5&lon=-82.1&radius=10
Search for specific supplies near a location. Returns matching stores and supply status.
Store Endpoints
Get Store Details
/stores/{storeId}
Get detailed information about a store.
List Nearby Stores
/stores?lat=34.5&lon=-82.1&radius=10
Get all stores within radius (in km) of coordinates.
Disaster Endpoints
List Active Disasters
/disasters?region=sc
Get active disasters in a region (requires read:disasters scope).
Get Disaster Details
/disasters/{disasterId}
Get detailed information about a specific disaster including resources and alerts.
Integration Guide
Verified Supplier Integration
For retailers with inventory systems, you can push real-time supply data to SupplyScout:
Update Store Inventory
/stores/{storeId}/inventory/sync
Update inventory for verified supplier stores (requires write:supplies scope and partnership agreement).
Request Body:
Implementation Examples
Python Example
JavaScript Example
Webhooks
Event-Driven Updates
For real-time notifications, you can subscribe to webhooks that fire when certain events occur:
Disaster Declaration
Fires when a new disaster is declared in your region
Supply Update
Fires when supply status changes at your stores (verified suppliers only)
Alert Broadcast
Fires when an admin broadcasts an alert to your region
Webhook Payload
Registering Webhooks
Contact our team to register webhook endpoints. Provide:
- Webhook URL (must be HTTPS)
- Events to subscribe to
- Secret key for signature verification
Rate Limits
API requests are rate limited to prevent abuse:
- Read endpoints: 1000 requests per minute
- Write endpoints: 100 requests per minute
- Search endpoints: 500 requests per minute
Rate limit headers are included in all responses:
Error Handling
API errors use standard HTTP status codes:
| Code | Meaning |
|---|---|
| 400 | Bad Request - Check your parameters |
| 401 | Unauthorized - Check your API key |
| 403 | Forbidden - You don't have permission for this |
| 404 | Not Found - Resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
Support & Resources
Need help integrating?
- Email: dev-support@supplyscout.org
- Documentation: api.supplyscout.org/docs
- GitHub: github.com/supplyscout (SDKs and examples)