API
Spectra.fm exposes a public API to automate exports, fetch artifacts, and integrate with your own tooling.
API Documentation
Section titled “API Documentation”Full reference docs are available at api.spectra.fm/docs.
API Keys
Section titled “API Keys”All requests require an API key:
X-API-Key: YOUR_API_KEYYou can also use:
Authorization: Bearer YOUR_API_KEYGet your API key at app.spectra.fm/settings/api-keys.
Example Requests
Section titled “Example Requests”Who am I?
Section titled “Who am I?”curl "https://api.spectra.fm/v1/whoami" \ -H "X-API-Key: YOUR_API_KEY"Create an export
Section titled “Create an export”curl -X POST "https://api.spectra.fm/v1/projects/YOUR_PROJECT_ID/exports" \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"combinations":[{"locale":"en","theme":"light"}]}'Poll export status
Section titled “Poll export status”curl "https://api.spectra.fm/v1/projects/YOUR_PROJECT_ID/exports/EXPORT_ID" \ -H "X-API-Key: YOUR_API_KEY"List artifacts
Section titled “List artifacts”curl "https://api.spectra.fm/v1/projects/YOUR_PROJECT_ID/exports/EXPORT_ID/artifacts" \ -H "X-API-Key: YOUR_API_KEY"Download an artifact
Section titled “Download an artifact”Use downloadUrl from the artifacts response, or call:
curl -L "https://api.spectra.fm/v1/projects/YOUR_PROJECT_ID/exports/download?objectKey=projects/.../full.png&filename=full.png" \ -H "X-API-Key: YOUR_API_KEY"Export Flow (Async)
Section titled “Export Flow (Async)”- Options —
GET /v1/projects/:projectId/exports/options - Create —
POST /v1/projects/:projectId/exports - Poll —
GET /v1/projects/:projectId/exports/:exportId - Artifacts —
GET /v1/projects/:projectId/exports/:exportId/artifacts - Download — Use
downloadUrlor/exports/download?objectKey=...
objectKey is an internal reference; downloadUrl is ready to use.