Skip to content

n8n

Connect Spectra.fm to n8n for self-hosted, privacy-focused workflow automation.

In your n8n workflow, add an HTTP Request node.

SettingValue
MethodPOST
URLhttps://api.spectra.fm/project/YOUR_PROJECT_ID/export
  1. Select Header Auth under Authentication
  2. Create new credentials:
    • Name: X-API-Key
    • Value: Your Spectra.fm API key

Enable Send Body and configure:

SettingValue
Body Content TypeJSON
Specify BodyUsing JSON
{
"combinations": [
{"locale": "en", "theme": "light"},
{"locale": "en", "theme": "dark"}
]
}
Webhook → HTTP Request (Spectra) → Slack
  1. Webhook - Receive trigger from your app
  2. HTTP Request - Export screenshots
  3. Slack - Notify team of new exports
Schedule Trigger → HTTP Request (Spectra) → S3
  1. Schedule Trigger - Run daily/weekly
  2. HTTP Request - Export screenshots
  3. S3 - Upload to your bucket
GitHub Trigger → HTTP Request (Spectra) → GitHub (Comment)
  1. GitHub Trigger - On new release
  2. HTTP Request - Export screenshots
  3. GitHub - Comment on release with links

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 }}/export