n8n
Connect Spectra.fm to n8n for self-hosted, privacy-focused workflow automation.
1. Add HTTP Request Node
Section titled “1. Add HTTP Request Node”In your n8n workflow, add an HTTP Request node.
2. Configure the Node
Section titled “2. Configure the Node”| Setting | Value |
|---|---|
| Method | POST |
| URL | https://api.spectra.fm/project/YOUR_PROJECT_ID/export |
3. Authentication
Section titled “3. Authentication”- Select Header Auth under Authentication
- Create new credentials:
- Name:
X-API-Key - Value: Your Spectra.fm API key
- Name:
4. Request Body
Section titled “4. Request Body”Enable Send Body and configure:
| Setting | Value |
|---|---|
| Body Content Type | JSON |
| Specify Body | Using JSON |
{ "combinations": [ {"locale": "en", "theme": "light"}, {"locale": "en", "theme": "dark"} ]}Example Workflows
Section titled “Example Workflows”Webhook Trigger
Section titled “Webhook Trigger”Webhook → HTTP Request (Spectra) → Slack- Webhook - Receive trigger from your app
- HTTP Request - Export screenshots
- Slack - Notify team of new exports
Scheduled Export
Section titled “Scheduled Export”Schedule Trigger → HTTP Request (Spectra) → S3- Schedule Trigger - Run daily/weekly
- HTTP Request - Export screenshots
- S3 - Upload to your bucket
GitHub Integration
Section titled “GitHub Integration”GitHub Trigger → HTTP Request (Spectra) → GitHub (Comment)- GitHub Trigger - On new release
- HTTP Request - Export screenshots
- GitHub - Comment on release with links
Using Expressions
Section titled “Using Expressions”Reference data from previous nodes:
{ "combinations": [ {"locale": "{{ $json.locale }}", "theme": "{{ $json.theme }}"} ]}Or use the expression editor for the URL:
https://api.spectra.fm/project/{{ $json.projectId }}/exportNext Steps
Section titled “Next Steps”- View the full API documentation
- Get your API key at app.spectra.fm/settings/api-keys