API Overview

Introduction to the SiteDash REST API for programmatic access.

Authentication

All API requests require an API token passed in the X-SiteDash-Token header:

curl -H "X-SiteDash-Token: YOUR_TOKEN_HERE" \
  https://preview.sitedash.ai/api/v1/release/current

Base URL

All endpoints are relative to:

https://preview.sitedash.ai/api/v1/

Available Endpoints

Releases

  • GET /api/v1/release/current — Get the current published release
  • GET /api/v1/release/{version} — Get a specific release by version
  • POST /api/v1/release — Create a new release (requires token)

Binaries

  • POST /api/v1/release/{id}/binary — Upload a binary to a release

Bug Reports

  • POST /api/v1/bug — Submit a new bug report

Error Handling

API errors return standard HTTP status codes with a JSON body:

{
  "error": "Unauthorized",
  "message": "Invalid or missing API token."
}

Rate Limiting

API requests are rate-limited to 60 requests per minute per token. If you exceed this limit, you'll receive a 429 Too Many Requests response.