See llms.txt for all machine-readable content.
Save yourself the work of writing custom integrations for Flagship and Spotify and use n8n instead. Build adaptable and scalable Development, workflows that work with your technology stack. All within a building experience you will love.

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.
| GET | List resource | Retrieve all decision API entries. /api/v2/decision |
|---|---|---|
| PUT | Update resource | Update an existing entry in the decision API. /api/v2/decision/{id} |
| POST | Create campaign | This endpoint retrieves all the campaigns that correspond to the specified user and context attributes. /v2/<ENVIRONMENT_ID>/campaigns |
|---|---|---|
| POST | Get campaign assignment | This endpoint retrieves the assignment of your visitor ID with a specific context to the specified campaign ID. /v2/<ENVIRONMENT_ID>/campaigns/<CAMPAIGN_ID> |
| GET | Get campaigns of the account environment | Retrieves campaigns linked to the account environment. /reference/95de4e7d4ec4b9b27d2b553fef5c9158-1 |
| POST | Create a campaign | Creates a new campaign within the account environment. /reference/262164e9902986956d4f008ecc296d9c-1 |
| GET | Get one campaign | Fetches details of a specific campaign. /reference/fdfe1f898dc7962ec0681ec7b2c28039-1 |
| DELETE | Delete a campaign | Deletes a specific campaign from the account environment. /reference/1a331f011981919d31c616c73856b948-1 |
| PATCH | Update a campaign | Updates the attributes of a specified campaign. /reference/e3e6aaee25528da22b390f4af3c93482-1 |
| PATCH | Toggle campaign state | Toggle the state of a campaign. /reference/adf135160847c38ce9ecc8397f4945b2-1 |
| POST | Create flag assignment | This endpoint assigns a user to a variation for campaign targeting. /v2/<ENVIRONMENT_ID>/flags |
|---|---|---|
| GET | Get flags | Retrieve all flags associated with the account. /reference/2d21ba23be976e0dcafc39818a41067c-1 |
| GET | Retrieve flags | Retrieves feature flags for the current visitor. /docs/retrieving-flags |
| GET | Fetch flag | Fetch flag from the Flagship platform. /fetchFlags |
| GET | Get flag value | Retrieves a flag named 'yourFlagKey'. /getFlag/yourFlagKey |
| POST | Expose flag | Notifies Flagship that the visitor has been exposed to the flag. /exposeFlag |
| GET | Get all flags | Retrieves all visitor's flags as a collection. /getFlags |
| GET | List flags | Retrieves all visitor's flags. /api/v1/flags |
| GET | Get flag | Retrieves a flag named 'yourFlagKey'. /api/v1/flags/yourFlagKey |
| POST | Expose flag | Directly expose the flag to Flagship without reading the value. /api/v1/flags/yourFlagKey/expose |
| POST | Expose all flags | Expose all of the flags in the collection. /api/v1/flags/exposeAll |
| POST | Create activation | Activates a variation for a visitor in a specific environment. /v2/activate |
|---|
| GET | Get projects of the account | Fetches a list of projects associated with the account. /reference/056fa0955173da757711663c5e0365ae-1 |
|---|---|---|
| POST | Create a project | Creates a new project in the account. /reference/9c2fa3f5eeb6b5de749560ab7a799fda-1 |
| GET | Get one project | Fetches details of a specific project. /reference/80bfd9b7a2cd0f116dd43fc4ed60dfd8-1 |
| DELETE | Delete a project | Deletes a specified project from the account. /reference/934311b13024cb0dd7eebfaf948a2d70-1 |
| PATCH | Update a project | Updates the properties of an existing project. /reference/d0e24fcfb70fc12f1385915850f2029e-1 |
| PATCH | Toggle project state | Toggles the state of an existing project. /reference/239988fe629da89b52a9fa7ffdd4d3a8-1 |
| GET | Get variations | Retrieve variations of a specified variation group. /reference/7bd5dfd478e6e9160083f6cc5a83c156-1 |
|---|---|---|
| POST | Create variation | Add a new variation to a specified variation group. /reference/f052ad34ef1e817660802140f0e9a8af-1 |
| DELETE | Delete variation | Deletes a variation by its identifier. /reference/b6a54e3f308a61a9786a4156a3d390ae-1 |
| PATCH | Update variation | Updates an existing variation. /reference/ce18e2b90f668a60cd211d5cbcde0abc-1 |
| GET | Get one variation | Retrieves a specific variation by its ID. /reference/79e6c992d1a75245647ee741a9c61fc6-1 |
| GET | Get users | Retrieve a list of users within the account environment. /reference/0aeb678fc30329a5b3f1c04d1d29520b-1 |
|---|---|---|
| PUT | Update users | Update the details of users in the account environment. /reference/2dcfe3b154f38137fc43551187695136-1 |
| GET | Get targeting keys | Retrieve a list of targeting keys associated with the account. /reference/fe893f1764b5194d312e572c51054f24-1 |
|---|
| GET | Get goals | Retrieve all goals associated with the account environment. /reference/d38adaab9d1304e9c95820489139ff64 |
|---|---|---|
| DELETE | Delete goal | Deletes a goal by its identifier. /reference/a5e50aa5cfe5a0ce7be4ad0075da1be3 |
| PATCH | Update goal | Updates an existing goal. /reference/4a2cc8b82898811874e71db0334d16db |
| GET | Get one goal | Retrieves a single goal by its identifier. /reference/c9f10c3487c1d66d7d679609c9b32ad5 |
| POST | Create goal | Creates a new goal. /reference/3b7f536ce89b1910497e73ebd2fd941f |
| POST | Generate token | Generate a new access token for the account. /{ACCOUNT_ID}/token?expires_in=0 |
|---|---|---|
| POST | Generate token with expiration | Generate a token with a specific expiration time. /{ACCOUNT_ID}/token?expires_in=1800 |
| GET | Validate token | Check if an access token is valid. /token?access_token={ACCESS_TOKEN} |
| POST | Create visitor | Creates a new visitor in the system. /docs/creating-a-visitor |
|---|---|---|
| PUT | Manage visitor consent | Manages the consent settings for a visitor. /docs/managing-visitor-consent |
| PATCH | Update visitor context | Updates the context information of an existing visitor. /docs/updating-the-visitor-context |
| POST | Track data | Tracks specific data points related to a visitor's activity. /docs/tracking-data |
|---|
| GET | Get variation groups | Retrieve the variation groups of the campaign. /reference/e9c0ded78aab979d89652b07320a017c-1 |
|---|---|---|
| PATCH | Update variation group | Updates an existing variation group. /reference/9c67aceba6ba933d79a04e6306a6a960-1 |
| DELETE | Delete variation group | Deletes a variation group. /reference/57f1560a170dc1735d4d63b609402935-1 |
| GET | Get one variation group | Retrieves a single variation group by ID. /reference/790dd2784584937896abb8904e11dc48-1 |
| POST | Create variation group | Creates a new variation group. /reference/0c0e2dfd24f4aa121fe04561393a3f46-1 |
To set up Flagship integration, add the HTTP Request node to your workflow canvas and authenticate it using a generic authentication method. The HTTP Request node makes custom API calls to Flagship to query the data you need using the API endpoint URLs you provide.
See the example hereThese API endpoints were generated using n8n
n8n AI workflow transforms web scraping into an intelligent, AI-powered knowledge extraction system that uses vector embeddings to semantically analyze, chunk, store, and retrieve the most relevant API documentation from web pages. Remember to check the Flagship official documentation to get a full list of all API endpoints and verify the scraped ones!
| Get | Get an album by URI or ID |
|---|---|
| Get New Releases | Get a list of new album releases |
| Get Tracks | Get an album's tracks by URI or ID |
| Search | Search albums by keyword |
| Get | Get an artist by URI or ID |
|---|---|
| Get Albums | Get an artist's albums by URI or ID |
| Get Related Artists | Get an artist's related artists by URI or ID |
| Get Top Tracks | Get an artist's top tracks by URI or ID |
| Search | Search artists by keyword |
| Get Liked Tracks | Get the user's liked tracks |
|---|
| Get Following Artists | Get your followed artists |
|---|
| Add Song to Queue | Add a song to your queue |
|---|---|
| Currently Playing | Get your currently playing track |
| Next Song | Skip to your next track |
| Pause | Pause your music |
| Previous Song | Skip to your previous song |
| Recently Played | Get your recently played tracks |
| Resume | Resume playback on the current active device |
| Set Volume | Set volume on the current active device |
| Start Music | Start playing a playlist, artist, or album |
| Add an Item | Add tracks to a playlist by track and playlist URI or ID |
|---|---|
| Create a Playlist | Create a new playlist |
| Get | Get a playlist by URI or ID |
| Get the User's Playlists | Get a user's playlists |
| Get Tracks | Get a playlist's tracks by URI or ID |
| Remove an Item | Remove tracks from a playlist by track and playlist URI or ID |
| Search | Search playlists by keyword |
| Get | Get a track by its URI or ID |
|---|---|
| Get Audio Features | Get audio features for a track by URI or ID |
| Search | Search tracks by keyword |

Flagship is a platform for feature flagging that reduces the potential risks associated with launching new features. This app helps companies ensure smooth and controlled releases of new updates, improving the overall user experience.
Spotify is a digital music service that allows you to listen to millions of songs streaming on different devices. It contains music from any genre and era, including the hits of the moment.
Save engineering resources
Reduce time spent on customer integrations, engineer faster POCs, keep your customer-specific functionality separate from product all without having to code.
Yes, Flagship can connect with Spotify using n8n.io. With n8n, you can create workflows that automate tasks and transfer data between Flagship and Spotify. Configure nodes for Flagship and Spotify in the n8n interface, specifying actions and triggers to set up their connection.
Yes, with n8n, you can programmatically interact with Flagship’s API via pre-defined supported actions or raw HTTP requests. With the HTTP Request node, you create a REST API call. You need to understand basic API terminology and concepts.
Yes, with n8n, you can programmatically interact with Spotify’s API via pre-defined supported actions or raw HTTP requests. With the HTTP Request node, you create a REST API call. You need to understand basic API terminology and concepts.
Yes, it is safe to use n8n to integrate Flagship and Spotify. n8n offers various features to ensure the safe handling of your data. These include encrypted data transfers, secure credential storage, RBAC functionality, and compliance with industry-standard security practices (SOC2 compliant). For hosted plans, data is stored within the EU on servers located in Frankfurt, Germany. You can also host it on your own infrastructure for added control.
Learn more about n8n’s security practices here.
To start integrating Flagship and Spotify in n8n, you have different options depending on how you intend to use it:
Unlike other platforms that charge per operation, step, or task, n8n charges only for full workflow executions. This approach guarantees predictable costs and scalability, no matter the complexity or volume of your workflows.

Handle branching, merging and iteration easily. Pause your workflow to wait for external events.
Re-run single steps to test changes in no time. And pin your data to avoid generating trigger events every time you execute.
Your data is displayed alongside your settings, making edge cases easy to track down.
Use 1000+ workflow templates available from our core team and our community.
Copy and paste, easily import and export workflows.
n8n makes complex workflows easy to build, and versatile enough for me to add my own 'secret sauce.'

I have found the holy grail of automation.

n8n’s integration with third-party services is absolutely mind-blowing. It’s like a Swiss army knife for automation.
n8n is the tool that turns 'I have an idea' into 'it's running in production' faster than anything else.

Anything is possible with n8n. I think the cloud version is great, they are doing amazing stuff.
n8n’s integration with third-party services is absolutely mind-blowing. It’s like a Swiss army knife for automation.

Thank you to the n8n community. I did the beginners course and promptly took an automation WAY beyond my skill level.
I love the flexibility of n8n and how it lets different applications work together in a single workflow.
n8n is the glue that holds many of our systems together.
I can move fast, go deep when things get complex, and never feel boxed in.
