API Reference
Dashtray provides a complete REST API for managing notifications, API keys, and account information.Base URL
Authentication
All endpoints require an API key:Content Type
All requests and responses use JSON:Endpoints
Notifications
POST /api/v1/notifications/send- Send a notificationGET /api/v1/notifications- List notifications
Alerts
GET /api/v1/alerts- List notification alerts
Statistics
GET /api/v1/stats- Get account stats and plan info
API Keys
POST /api/v1/api-keys/generate- Create a new API keyGET /api/v1/api-keys- List your API keysDELETE /api/v1/api-keys/{keyId}- Revoke an API key
Rate Limiting
Rate limits are per API key and based on your plan:
When rate limited, you’ll receive a
429 Too Many Requests response with a Retry-After: 60 header.
Pagination
List endpoints use cursor-based pagination:limit(integer) - Results per page (default: 50, max: 100)cursor(string) - Opaque cursor from the previous response’snextCursorsearch(string) - Optional text filter
nextCursor until isDone is true.
Response Format
Success Response
Each endpoint wraps its payload in a named field (e.g.notification, notifications, alerts, stats, apiKey, apiKeys):
Error Response
Common Status Codes
Next Steps
- 🔧 See all endpoints
- ❌ Read about error codes
- 📚 Check out examples