Skip to main content

REST API Integration

Dashtray provides a complete REST API for sending notifications, managing API keys, and querying statistics.

API Base URL

Authentication

All requests require an API key in the Authorization header:
See Authentication for details.

Content Type

All requests must include:

Response Format

All responses are JSON. Success payloads are wrapped in a named field (notification, notifications, alerts, stats, apiKey, apiKeys):
Error responses:

Rate Limiting

Rate limits are per API key, per minute, by plan (100 / 1,000). Exceeding the limit returns 429 with a Retry-After: 60 header.

API Endpoints

Notifications

  • POST /api/v1/notifications/send - Send a notification
  • GET /api/v1/notifications - List notifications with pagination

Alerts

  • GET /api/v1/alerts - List alerts for templates

Statistics

  • GET /api/v1/stats - Get account statistics

API Keys

  • POST /api/v1/api-keys/generate - Generate a new API key
  • GET /api/v1/api-keys - List your API keys
  • DELETE /api/v1/api-keys/{keyId} - Revoke an API key

Example: Send a Notification

Response:

Next Steps