1. Store the key as a credential
1
Create a credential
In n8n, open Credentials → Add credential and choose Header Auth.
2
Fill it in
Name: Call the credential Scoutworks. Choose Save.
Authorization. Value: Bearer followed by the key, for example:2. Build the workflow
1
Add a Schedule Trigger
Set it to run every hour.
2
Add an HTTP Request node
- Method: GET
- URL:
https://api-demo.scoutworks.app/api/v1/waiting-list?limit=200 - Authentication: Generic Credential Type → Header Auth → Scoutworks
3
Turn on pagination
Under Options → Add option → Pagination:
- Pagination mode: Update a Parameter in Each Request
- Type: Query. Name:
cursor. Value:{{ $response.body.nextCursor }} - Pagination Complete When: Other. Complete Expression:
{{ $response.body.nextCursor === null }}
4
Split the list
Add a Split Out node. Field to split out:
data. Each waiting-list entry is now one item.3. Switch to your group
In the HTTP Request node, changeapi-demo.scoutworks.app to api.scoutworks.app. In the credential, replace the sandbox key with your own. Your key needs the waiting-list:read scope.
Tips
- Only new entries. Keep the IDs you have already seen in a data table, and filter them out with a Remove Duplicates node set to “Remove items processed in previous executions”.
- Writing to Google Sheets. In the Google Sheets node, set Cell Format to Use Format From n8n (RAW), so that a name starting with
=is stored as text, not run as a formula. - Errors. Turn on Options → Response → Include Response Headers and Status, and branch on
error.codeif the status is not 200. See Errors.