Embed a Spotify integration in your product
Add Spotify to your product for your customers, and give your AI agents governed access to it.
The Spotify Web API is scoped to an individual listener rather than to a company, so be plain about whose account this connects: each of your end users authorizes their own personal Spotify account, and the scopes that person grants decide what you can see. The assets are tracks, albums and artists; playlists are how a listener organizes them, and a private playlist stays private unless that scope was granted. Two facts shape the build. Playback control needs an active device and a paid account, so your product has to treat no available device as a normal answer rather than an error. And tokens are short-lived per listener, so refresh happens for every connected person rather than once for your app. fastn holds each listener's tokens and monitors the connector, proposing a tested fix when Spotify changes its API.
In your product
Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.
- Let each end user authorize their own personal Spotify account inside your product, so their library is theirs rather than a catalog you curated.
- Create a playlist and add tracks to it on a listener's behalf, so something your product assembled ends up in the app they already listen in.
- Read recently played tracks and top artists to personalize what your product shows, using only the scopes that person granted.
- Control playback on the listener's active device, and handle no active device and unpaid accounts as expected outcomes rather than failures.
For your AI agents
Governed, audited access for the agents you build, through the MCP server.
- An agent builds a playlist from a description and files it in the listener's own account, with the tracks it added logged.
- An agent reads what someone has been listening to before it suggests anything, scoped to that one connected account.
- An agent checks which device is active before it starts playback, and explains why it cannot when none is.
Example prompt
Build a playlist from the artists I have listened to most this month and save it to my account.
Set up Spotify in 4 steps
- 01Enable the Spotify connector in your fastn dashboard.
- 02Have each end user authorize their own Spotify account, requesting only the playlist, library and playback scopes your features use.
- 03Map the playlist, track and artist fields your product reads, and decide what happens when playback has no active device.
- 04Call it from your product and expose the same connection to your agents through the MCP gateway.
Why teams use the Spotify integration
- Ship a Spotify integration without building it. Your customers connect their own Spotify account inside your product and work their files, documents and versions there, and nothing lands on your team.
- Handle the part that actually costs time: permissions and versioning are easy to get subtly wrong, and mistakes expose content. fastn handles the auth, token refresh, rate limits and pagination, and when Spotify changes, its maintainer agent proposes a tested fix, so a Spotify update does not start in your backlog.
Used by these teams
Often used alongside
Tools the same teams tend to run next to Spotify, across other categories.
More in Content & Documents
Other Content & Documents apps your customers can connect the same way. All Content & Documents integrations
Spotify integration FAQ
Can AI agents use this Spotify integration?
Yes, through the fastn MCP gateway, scoped per customer and audited. An agent builds a playlist from a description and files it in the listener's own account, with the tracks it added logged. For example: "Build a playlist from the artists I have listened to most this month and save it to my account."
Whose permissions does the Spotify integration run under?
Each customer's own Spotify grant. Where Spotify holds a library, their existing folder and item permissions apply and your product cannot reach content the connected account could not reach itself. Where it processes content you supply rather than storing it, the call runs under that customer's own credentials and is logged per tenant.
Can my product create or update content in Spotify automatically?
Where Spotify supports writes, documents, entries and assets can be created, updated and filed from your product or by an agent within scoped permissions, with each action logged. Where it is a read surface, the same connection serves reads only.
What can I build with the Spotify integration?
A common starting point: let each end user authorize their own personal Spotify account inside your product, so their library is theirs rather than a catalog you curated. The use cases above list the rest.
Add Spotify to your product
Start free with 3 customer connections. No sales call required, and no per-customer integration code.