Skip to main content

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 notification
  • GET /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 key
  • GET /api/v1/api-keys - List your API keys
  • DELETE /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:
Parameters:
  • limit (integer) - Results per page (default: 50, max: 100)
  • cursor (string) - Opaque cursor from the previous response’s nextCursor
  • search (string) - Optional text filter
Response:
Keep requesting with 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