Clean up a Dock API key when a playlist is deleted
Retired playlists can leave credentials behind. Let Notis run a deliberate cleanup step using the key ID you provide.
Trigger
New Playlist Created or Deleted
Triggers when a new playlist is created or deleted.
Action
Delete API Key
Tool to delete a specific API key. Use after confirming the API key's ID via list_api_keys.
Why this helps
Decommissioned streams accumulate unused keys when cleanup depends on memory and manual tickets.
- Tie credential cleanup to a clear retirement signal
- Reduce orphaned API keys
- Keep deletion actions visible in run reports
Setup
Build it in a few focused steps.
- 1Connect Spotify and Dock certs once in Notis.
- 2Create an automation instructing Notis to confirm the associated key ID and delete it after a playlist deletion.
- 3Pick Spotify New Playlist Created or Deleted as the trigger.
- 4Choose a report channel and test with one real deletion event and confirmed key ID.
Questions about this workflow
Does Notis delete any key automatically?
Your instruction must provide the association and require confirmation of the key ID before deletion.
Can this run for playlist creation events?
The same trigger includes creation and deletion, so specify that only deletion events should cause cleanup.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Spotify to Dock certs. A trigger fires from one place; an action lands in another.
Spotify triggers
Dock certs actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Create API Key
Tool to create an API key. Use when you need to generate a new API key with optional alias and IP allowlist.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Create Webhook
Tool to create a webhook endpoint. Use when you need Dock.io to push event notifications to your service.
New Device Added
Triggers when a new device is added.
Delete API Key
Tool to delete a specific API key. Use after confirming the API key's ID via list_api_keys.
Spotify Playlist Item Change
Triggers when songs are added to or removed from a Spotify playlist.
Delete Credential
Tool to delete a verifiable credential. Use after confirming the credential is no longer needed.
New Playlist Created or Deleted
Triggers when a new playlist is created or deleted.
Delete Tag
Tool to delete a specific tag. Use when you have a tag ID and want to permanently remove it.
Delete Webhook
Tool to delete a specific webhook. Use after confirming the webhook's ID via list_webhooks.
Retrieve API Key
Tool to retrieve details of an API key. Tries single-key endpoint first, then falls back to listing and filtering.
Retrieve API Keys
Tool to list all API keys. Use when you need to retrieve all API keys for the authenticated account.
Connect any two apps with Notis in the middle.
Spotify and Dock certs, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Dock certs.