Overview
The Dashtray API provides programmatic access to your project data. Available exclusively on the Scale tier ($299/month).API Access Requirements:
- Scale tier subscription
- Valid API key
- Rate limit: 1,000 requests/hour per project
Authentication
All API requests require Bearer token authentication using your API key.Creating an API Key
- Navigate to Settings → API Keys
- Click Create API Key
- Give it a descriptive name
- Copy the key immediately (shown only once)
Using Your API Key
Include your API key in theAuthorization header:
Base URL
/api/v1/.
Rate Limiting
- Limit: 1,000 requests per hour per project
- Headers: Rate limit info included in every response
429 Too Many Requests response.
Endpoints
Projects
Get Project
Retrieve information about your project.Metrics
List Metrics
Retrieve metrics for your project with optional filtering.| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of results (max 1000, default 100) |
offset | integer | Pagination offset (default 0) |
metric_id | string | Filter by specific metric ID |
start_date | string | ISO 8601 date (e.g., “2024-01-01”) |
end_date | string | ISO 8601 date (e.g., “2024-12-31”) |
Integrations
List Integrations
Get all connected integrations for your project.Dashboards
List Dashboards
Retrieve all dashboards in your project.Health Check
Check API Status
Verify API availability (no authentication required).Error Handling
The API uses standard HTTP status codes:| Status Code | Description |
|---|---|
200 | Success |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource doesn’t exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |
Code Examples
Node.js
Python
cURL
Best Practices
1. Handle Rate Limits
Monitor rate limit headers and implement exponential backoff:2. Cache Responses
Cache API responses to reduce request count:3. Secure Your Keys
Use environment variables and secret management:4. Monitor Usage
Track your API usage to avoid hitting rate limits:Webhooks
For real-time updates, consider using webhooks instead of polling the API. See Webhook Documentation for details.Support
Need help with the API?- Email: api-support@dashtray.com
- Documentation: Integration Guides
- Status: status.dashtray.com
Changelog
v1.0.0 (Current)
- Initial API release
- Read-only access to projects, metrics, integrations, and dashboards
- Rate limiting: 1,000 requests/hour
- Bearer token authentication
Ready to start building? Create your first API key in the Settings page.