{"openapi":"3.0.0","info":{"title":"Soundiiz User API (BETA)","description":"The Soundiiz User API provides endpoints to manage your personal Soundiiz account.<br/> Access to the Soundiiz User API requires a Creator subscription.<br/> You can generate your personal API key in your user settings: <a href=\"https://soundiiz.com/webapp/settings/api\" target=\"_blank\">Get my API key</a>.<br/> <b>This API is currently in preview and may change.</b>\n\n## Versioning and lifecycle\n\nThe major API version is part of each path (`/v1`). This API is in preview, so integrations should check the current OpenAPI specification before relying on behavior. Any published deprecation is marked on the affected OpenAPI operation.","version":"1.0","x-version-policy":{"strategy":"major-version-in-path","current-major":"v1","lifecycle":"preview","source-of-truth":"https://soundiiz.com/openapi.json"}},"servers":[{"url":"https://api.soundiiz.com","description":"API over HTTPS"}],"paths":{"/v1/tracks":{"get":{"tags":["Tracks"],"summary":"Search Soundiiz tracks","description":"Searches track metadata stored by Soundiiz.","operationId":"get_soundiiz_openapi_v1_resourcerest_gettracks","parameters":[{"name":"q","in":"query","description":"Text to search in track metadata.","required":false,"allowEmptyValue":false,"schema":{"type":"string","pattern":".{2,200}","default":null}},{"name":"isrc","in":"query","description":"Exact track ISRC to search.","required":false,"allowEmptyValue":false,"schema":{"type":"string","pattern":".{1,255}","default":null}},{"name":"limit","in":"query","description":"Maximum number of matching tracks to return. Default: 5. Minimum: 1. Maximum: 10.","required":true,"allowEmptyValue":false,"schema":{"type":"string","pattern":"\\d+","default":5}}],"responses":{"200":{"description":"Matching Soundiiz track metadata.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items"],"properties":{"items":{"type":"array","items":{"required":["id","type","title","artist","album","isrc"],"properties":{"id":{"type":"integer","example":27893278},"type":{"type":"string","example":"track"},"title":{"type":"string","example":"Instant Crush","nullable":true},"artist":{"type":"string","example":"Daft Punk","nullable":true},"album":{"type":"string","example":"Random Access Memories","nullable":true},"isrc":{"type":"string","example":"USQX91300105","nullable":true}},"type":"object"}}},"type":"object"}},"type":"object"}}}},"400":{"description":"The request must contain either q or isrc, but not both.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_SEARCH_CRITERIA"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/tracks/{id}":{"get":{"tags":["Tracks"],"summary":"Get a Soundiiz track","description":"Retrieves track metadata stored by Soundiiz.","operationId":"get_soundiiz_openapi_v1_resourcerest_gettrack","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"\\d+"}}],"responses":{"200":{"description":"Soundiiz track metadata.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["id","type","title","artist","album","isrc"],"properties":{"id":{"type":"integer","example":27893278},"type":{"type":"string","example":"track"},"title":{"type":"string","example":"Instant Crush","nullable":true},"artist":{"type":"string","example":"Daft Punk","nullable":true},"album":{"type":"string","example":"Random Access Memories","nullable":true},"isrc":{"type":"string","example":"USQX91300105","nullable":true}},"type":"object"}},"type":"object"}}}},"404":{"description":"No Soundiiz track matches the requested ID.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"TRACK_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/albums":{"get":{"tags":["Albums"],"summary":"Search Soundiiz albums","description":"Searches album metadata stored by Soundiiz.","operationId":"get_soundiiz_openapi_v1_resourcerest_getalbums","parameters":[{"name":"q","in":"query","description":"Text to search in album metadata.","required":false,"allowEmptyValue":false,"schema":{"type":"string","pattern":".{2,200}","default":null}},{"name":"upc","in":"query","description":"Exact album UPC to search.","required":false,"allowEmptyValue":false,"schema":{"type":"string","pattern":".{1,255}","default":null}},{"name":"limit","in":"query","description":"Maximum number of matching albums to return. Default: 5. Minimum: 1. Maximum: 10.","required":true,"allowEmptyValue":false,"schema":{"type":"string","pattern":"\\d+","default":5}}],"responses":{"200":{"description":"Matching Soundiiz album metadata.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items"],"properties":{"items":{"type":"array","items":{"required":["id","type","title","artist","upc","releaseDate"],"properties":{"id":{"type":"integer","example":1876544},"type":{"type":"string","example":"album"},"title":{"type":"string","example":"Random Access Memories","nullable":true},"artist":{"type":"string","example":"Daft Punk","nullable":true},"upc":{"type":"string","example":"888837168618","nullable":true},"releaseDate":{"type":"integer","example":1368748800,"nullable":true}},"type":"object"}}},"type":"object"}},"type":"object"}}}},"400":{"description":"The request must contain either q or upc, but not both.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_SEARCH_CRITERIA"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/albums/{id}":{"get":{"tags":["Albums"],"summary":"Get a Soundiiz album","description":"Retrieves album metadata stored by Soundiiz.","operationId":"get_soundiiz_openapi_v1_resourcerest_getalbum","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"\\d+"}}],"responses":{"200":{"description":"Soundiiz album metadata.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["id","type","title","artist","upc","releaseDate"],"properties":{"id":{"type":"integer","example":1876544},"type":{"type":"string","example":"album"},"title":{"type":"string","example":"Random Access Memories","nullable":true},"artist":{"type":"string","example":"Daft Punk","nullable":true},"upc":{"type":"string","example":"888837168618","nullable":true},"releaseDate":{"type":"integer","example":1368748800,"nullable":true}},"type":"object"}},"type":"object"}}}},"404":{"description":"No Soundiiz album matches the requested ID.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"ALBUM_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/artists":{"get":{"tags":["Artists"],"summary":"Search Soundiiz artists","description":"Searches artist metadata stored by Soundiiz.","operationId":"get_soundiiz_openapi_v1_resourcerest_getartists","parameters":[{"name":"q","in":"query","description":"Text to search in artist metadata.","required":true,"allowEmptyValue":false,"schema":{"type":"string","pattern":".{2,200}","default":null}},{"name":"limit","in":"query","description":"Maximum number of matching artists to return. Default: 5. Minimum: 1. Maximum: 10.","required":true,"allowEmptyValue":false,"schema":{"type":"string","pattern":"\\d+","default":5}}],"responses":{"200":{"description":"Matching Soundiiz artist metadata.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items"],"properties":{"items":{"type":"array","items":{"required":["id","type","name"],"properties":{"id":{"type":"integer","example":7654321},"type":{"type":"string","example":"artist"},"name":{"type":"string","example":"Daft Punk","nullable":true}},"type":"object"}}},"type":"object"}},"type":"object"}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/artists/{id}":{"get":{"tags":["Artists"],"summary":"Get a Soundiiz artist","description":"Retrieves artist metadata stored by Soundiiz.","operationId":"get_soundiiz_openapi_v1_resourcerest_getartist","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"\\d+"}}],"responses":{"200":{"description":"Soundiiz artist metadata.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["id","type","name"],"properties":{"id":{"type":"integer","example":7654321},"type":{"type":"string","example":"artist"},"name":{"type":"string","example":"Daft Punk","nullable":true}},"type":"object"}},"type":"object"}}}},"404":{"description":"No Soundiiz artist matches the requested ID.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"ARTIST_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me":{"get":{"tags":["User"],"summary":"Get account information","description":"Get detailed profile information about the current user.","operationId":"get_soundiiz_openapi_v1_merest_getme","responses":{"200":{"description":"Detailed profile information about the current user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["id","email","username"],"properties":{"id":{"type":"integer","example":123},"email":{"type":"string","format":"email","example":"user@example.com"},"username":{"type":"string","example":"john_doe"}},"type":"object"}},"type":"object"}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/playlists":{"get":{"tags":["Playlists"],"summary":"List Soundiiz playlists","description":"Retrieves Soundiiz playlists created by the authenticated user.","operationId":"get_soundiiz_openapi_v1_merest_getmeplaylists","parameters":[{"name":"offset","in":"query","description":"The index of the first item to return.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":0}},{"name":"limit","in":"query","description":"The maximum number of items to return. Minimum: 1. Maximum: 100.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":"50"}}],"responses":{"200":{"description":"Returns a paginated list of Soundiiz playlists created by the authenticated user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items","offset","limit","total"],"properties":{"items":{"type":"array","items":{"required":["id","type","title","description","picture","createdDate","updatedDate","isPublic","trackCount"],"properties":{"id":{"type":"integer","example":42},"type":{"type":"string","example":"playlist"},"title":{"type":"string","example":"Road trip"},"description":{"type":"string","example":"Songs for the road","nullable":true},"picture":{"type":"string","example":"https://example.com/playlist-picture.jpg","nullable":true},"createdDate":{"type":"integer","example":1767323045,"nullable":true},"updatedDate":{"type":"integer","example":1770091506,"nullable":true},"isPublic":{"type":"boolean","example":false},"trackCount":{"type":"integer","example":25}},"type":"object"}},"offset":{"type":"integer","example":0},"limit":{"type":"integer","example":50},"total":{"type":"integer","example":3}},"type":"object"}},"type":"object"}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"post":{"tags":["Playlists"],"summary":"Create a Soundiiz playlist","description":"Creates an empty Soundiiz playlist for the authenticated user.","operationId":"post_soundiiz_openapi_v1_merest_createmeplaylist","requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["title"],"properties":{"title":{"type":"string","example":"Road trip","maxLength":255,"minLength":1},"description":{"type":"string","example":"Songs for the road","nullable":true,"maxLength":255},"isPublic":{"type":"boolean","example":false,"default":false}},"type":"object","additionalProperties":false}}}},"responses":{"201":{"description":"The empty Soundiiz playlist has been created.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["id","type","title","description","picture","createdDate","updatedDate","isPublic","trackCount"],"properties":{"id":{"type":"integer","example":42},"type":{"type":"string","example":"playlist"},"title":{"type":"string","example":"Road trip"},"description":{"type":"string","example":"Songs for the road","nullable":true},"picture":{"type":"string","nullable":true},"createdDate":{"type":"integer","nullable":true},"updatedDate":{"type":"integer","nullable":true},"isPublic":{"type":"boolean","example":false},"trackCount":{"type":"integer","example":0}},"type":"object"}},"type":"object"}}}},"400":{"description":"The JSON payload is invalid, contains unknown fields, or exceeds Soundiiz text limits. Returns INVALID_PLAYLIST_DATA.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_PLAYLIST_DATA"}},"type":"object"}},"type":"object"}]}}}},"409":{"description":"The authenticated user already has 20,000 Soundiiz playlists. Returns PLAYLIST_LIMIT_REACHED.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"PLAYLIST_LIMIT_REACHED"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/playlists/{id}":{"get":{"tags":["Playlists"],"summary":"Get a Soundiiz playlist","description":"Retrieves a Soundiiz playlist created by the authenticated user.","operationId":"get_soundiiz_openapi_v1_merest_getmeplaylistdetails","parameters":[{"name":"id","in":"path","description":"The Soundiiz playlist identifier.","required":true,"schema":{"type":"integer","pattern":"\\d+"}}],"responses":{"200":{"description":"Returns a Soundiiz playlist created by the authenticated user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["id","type","title","description","picture","createdDate","updatedDate","isPublic","trackCount"],"properties":{"id":{"type":"integer","example":42},"type":{"type":"string","example":"playlist"},"title":{"type":"string","example":"Road trip"},"description":{"type":"string","example":"Songs for the road","nullable":true},"picture":{"type":"string","example":"https://example.com/playlist-picture.jpg","nullable":true},"createdDate":{"type":"integer","example":1767323045,"nullable":true},"updatedDate":{"type":"integer","example":1770091506,"nullable":true},"isPublic":{"type":"boolean","example":false},"trackCount":{"type":"integer","example":25}},"type":"object"}},"type":"object"}}}},"404":{"description":"Playlist not found or not owned by the authenticated user.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"PLAYLIST_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"delete":{"tags":["Playlists"],"summary":"Delete a Soundiiz playlist","description":"Deletes a Soundiiz playlist created by the authenticated user.","operationId":"delete_soundiiz_openapi_v1_merest_deletemeplaylist","parameters":[{"name":"id","in":"path","description":"The Soundiiz playlist identifier.","required":true,"schema":{"type":"integer","pattern":"\\d+"}}],"responses":{"200":{"description":"The Soundiiz playlist has been deleted.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"PLAYLIST_DELETED"}},"type":"object"}},"type":"object"}}}},"404":{"description":"Playlist not found or not owned by the authenticated user.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"PLAYLIST_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"409":{"description":"The playlist is referenced by a synchronization, a smartlink, or both.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message","usedBy"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"PLAYLIST_IN_USE"},"usedBy":{"type":"array","items":{"type":"string","enum":["SYNC","SMARTLINK"]},"example":["SYNC","SMARTLINK"]}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"patch":{"tags":["Playlists"],"summary":"Update a Soundiiz playlist","description":"Updates selected fields of a Soundiiz playlist created by the authenticated user.","operationId":"patch_soundiiz_openapi_v1_merest_updatemeplaylist","parameters":[{"name":"id","in":"path","description":"The Soundiiz playlist identifier.","required":true,"schema":{"type":"integer","pattern":"\\d+"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"minProperties":1,"properties":{"title":{"type":"string","example":"Road trip","maxLength":255,"minLength":1},"description":{"type":"string","example":"Songs for the road","nullable":true,"maxLength":255},"isPublic":{"type":"boolean","example":false}},"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"Returns the updated Soundiiz playlist.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["id","type","title","description","picture","createdDate","updatedDate","isPublic","trackCount"],"properties":{"id":{"type":"integer","example":42},"type":{"type":"string","example":"playlist"},"title":{"type":"string","example":"Road trip"},"description":{"type":"string","nullable":true},"picture":{"type":"string","nullable":true},"createdDate":{"type":"integer","nullable":true},"updatedDate":{"type":"integer","nullable":true},"isPublic":{"type":"boolean","example":false},"trackCount":{"type":"integer","example":25}},"type":"object"}},"type":"object"}}}},"400":{"description":"The JSON payload is empty, invalid, contains unknown fields, or exceeds Soundiiz text limits. Returns INVALID_PLAYLIST_DATA.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_PLAYLIST_DATA"}},"type":"object"}},"type":"object"}]}}}},"404":{"description":"Playlist not found or not owned by the authenticated user. Returns PLAYLIST_NOT_FOUND.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"PLAYLIST_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/playlists/{id}/tracks":{"get":{"tags":["Playlists"],"summary":"List tracks in a playlist","description":"Retrieves tracks from a Soundiiz playlist created by the authenticated user.","operationId":"get_soundiiz_openapi_v1_merest_getmeplaylisttracks","parameters":[{"name":"id","in":"path","description":"The Soundiiz playlist identifier.","required":true,"schema":{"type":"integer","pattern":"\\d+"}},{"name":"offset","in":"query","description":"The index of the first item to return.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":0}},{"name":"limit","in":"query","description":"The maximum number of items to return. Minimum: 1. Maximum: 100.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":"50"}}],"responses":{"200":{"description":"Returns a paginated list of tracks stored in the Soundiiz playlist.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items","offset","limit","total"],"properties":{"items":{"type":"array","items":{"required":["itemId","id","type","title","artist","album","isrc","addedDate"],"properties":{"itemId":{"description":"Soundiiz playlist item ID.","type":"integer","example":1001},"id":{"type":"integer","example":101},"type":{"type":"string","example":"track"},"title":{"type":"string","example":"Midnight Drive","nullable":true},"artist":{"type":"string","example":"The Travelers","nullable":true},"album":{"type":"string","example":"Open Roads","nullable":true},"isrc":{"type":"string","example":"FRABC2600001","nullable":true},"addedDate":{"type":"integer","example":1772359200,"nullable":true}},"type":"object"}},"offset":{"type":"integer","example":0},"limit":{"type":"integer","example":50},"total":{"type":"integer","example":25}},"type":"object"}},"type":"object"}}}},"404":{"description":"Playlist not found or not owned by the authenticated user.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"PLAYLIST_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"post":{"tags":["Playlists"],"summary":"Add tracks to a playlist","description":"Adds up to 20 Soundiiz tracks to a playlist created by the authenticated user. Tracks are appended in the submitted order and duplicate IDs are preserved.","operationId":"post_soundiiz_openapi_v1_merest_addmeplaylisttracks","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"\\d+"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["ids"],"properties":{"ids":{"description":"Soundiiz track IDs to append in order.","type":"array","items":{"type":"integer","minimum":1},"example":[101,101,102],"maxItems":20,"minItems":1}},"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"The tracks have been added to the playlist.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message","addedCount"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"PLAYLIST_TRACKS_ADDED"},"addedCount":{"type":"integer","example":3}},"type":"object"}},"type":"object"}}}},"400":{"description":"The JSON payload or at least one Soundiiz track ID is invalid. Returns INVALID_PLAYLIST_TRACK_IDS.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_PLAYLIST_TRACK_IDS"}},"type":"object"}},"type":"object"}]}}}},"404":{"description":"Playlist not found or not owned by the authenticated user. Returns PLAYLIST_NOT_FOUND.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"PLAYLIST_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"409":{"description":"Adding the tracks would exceed the 20,000-track playlist limit. Returns PLAYLIST_TRACK_LIMIT_REACHED.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"PLAYLIST_TRACK_LIMIT_REACHED"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"delete":{"tags":["Playlists"],"summary":"Remove tracks from a playlist","description":"Removes up to 20 playlist items from a playlist created by the authenticated user. Unknown or already removed item IDs are ignored.","operationId":"delete_soundiiz_openapi_v1_merest_deletemeplaylisttracks","parameters":[{"name":"itemIds","in":"query","description":"Comma-separated Soundiiz playlist item IDs. Between 1 and 20 values.","required":true,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":20}},{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"\\d+"}}],"responses":{"200":{"description":"The matching playlist items have been removed.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message","deletedCount"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"PLAYLIST_TRACKS_DELETED"},"deletedCount":{"type":"integer","example":2}},"type":"object"}},"type":"object"}}}},"400":{"description":"The item IDs are missing, malformed, non-positive, or exceed the 20-value limit. Returns INVALID_PLAYLIST_ITEM_IDS.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_PLAYLIST_ITEM_IDS"}},"type":"object"}},"type":"object"}]}}}},"404":{"description":"Playlist not found or not owned by the authenticated user. Returns PLAYLIST_NOT_FOUND.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"PLAYLIST_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/favorites/tracks":{"get":{"tags":["Favorites"],"summary":"List favorite tracks","description":"Retrieves Soundiiz tracks favorited by the authenticated user.","operationId":"get_soundiiz_openapi_v1_merest_getmefavoritetracks","parameters":[{"name":"offset","in":"query","description":"The index of the first item to return.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":0}},{"name":"limit","in":"query","description":"The maximum number of items to return. Minimum: 1. Maximum: 100.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":"50"}}],"responses":{"200":{"description":"Returns a paginated list of Soundiiz tracks favorited by the authenticated user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items","offset","limit","total"],"properties":{"items":{"type":"array","items":{"required":["id","type","title","artist","album","isrc","addedDate"],"properties":{"id":{"type":"integer","example":201},"type":{"type":"string","example":"track"},"title":{"type":"string","example":"Favorite track","nullable":true},"artist":{"type":"string","example":"Favorite artist","nullable":true},"album":{"type":"string","example":"Favorite album","nullable":true},"isrc":{"type":"string","example":"FRABC2600001","nullable":true},"addedDate":{"type":"integer","example":1775044800,"nullable":true}},"type":"object"}},"offset":{"type":"integer","example":0},"limit":{"type":"integer","example":50},"total":{"type":"integer","example":12}},"type":"object"}},"type":"object"}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"post":{"tags":["Favorites"],"summary":"Add favorite tracks","description":"Adds up to 20 Soundiiz tracks to the authenticated user favorites. Already favorited tracks are ignored.","operationId":"post_soundiiz_openapi_v1_merest_addmefavoritetracks","requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["ids"],"properties":{"ids":{"type":"array","items":{"type":"integer","minimum":1},"example":[201,202],"maxItems":20,"minItems":1}},"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"The valid Soundiiz tracks have been added to the user favorites.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message","addedCount"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"FAVORITE_TRACKS_ADDED"},"addedCount":{"type":"integer","example":2}},"type":"object"}},"type":"object"}}}},"400":{"description":"The JSON payload or at least one Soundiiz track ID is invalid. Returns INVALID_FAVORITE_IDS.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_FAVORITE_IDS"}},"type":"object"}},"type":"object"}]}}}},"409":{"description":"Adding the new tracks would exceed the 20,000-favorite limit. Returns FAVORITE_LIMIT_REACHED.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"FAVORITE_LIMIT_REACHED"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"delete":{"tags":["Favorites"],"summary":"Remove favorite tracks","description":"Removes up to 20 Soundiiz tracks from the authenticated user favorites. Unknown or already removed IDs are ignored.","operationId":"delete_soundiiz_openapi_v1_merest_deletemefavoritetracks","parameters":[{"name":"ids","in":"query","description":"Comma-separated Soundiiz track IDs. Between 1 and 20 values.","required":true,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":20}}],"responses":{"200":{"description":"The matching favorites have been removed.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message","deletedCount"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"FAVORITE_TRACKS_DELETED"},"deletedCount":{"type":"integer","example":2}},"type":"object"}},"type":"object"}}}},"400":{"description":"The IDs are missing, malformed, non-positive, or exceed the 20-value limit.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_FAVORITE_IDS"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/favorites/albums":{"get":{"tags":["Favorites"],"summary":"List favorite albums","description":"Retrieves Soundiiz albums favorited by the authenticated user.","operationId":"get_soundiiz_openapi_v1_merest_getmefavoritealbums","parameters":[{"name":"offset","in":"query","description":"The index of the first item to return.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":0}},{"name":"limit","in":"query","description":"The maximum number of items to return. Minimum: 1. Maximum: 100.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":"50"}}],"responses":{"200":{"description":"Returns a paginated list of Soundiiz albums favorited by the authenticated user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items","offset","limit","total"],"properties":{"items":{"type":"array","items":{"required":["id","type","title","artist","upc","releaseDate","addedDate"],"properties":{"id":{"type":"integer","example":301},"type":{"type":"string","example":"album"},"title":{"type":"string","example":"Favorite album","nullable":true},"artist":{"type":"string","example":"Favorite artist","nullable":true},"upc":{"type":"string","example":"123456789012","nullable":true},"releaseDate":{"type":"integer","example":1767225600,"nullable":true},"addedDate":{"type":"integer","example":1777636800,"nullable":true}},"type":"object"}},"offset":{"type":"integer","example":0},"limit":{"type":"integer","example":50},"total":{"type":"integer","example":8}},"type":"object"}},"type":"object"}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"post":{"tags":["Favorites"],"summary":"Add favorite albums","description":"Adds up to 20 Soundiiz albums to the authenticated user favorites. Already favorited albums are ignored.","operationId":"post_soundiiz_openapi_v1_merest_addmefavoritealbums","requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["ids"],"properties":{"ids":{"type":"array","items":{"type":"integer","minimum":1},"example":[301,302],"maxItems":20,"minItems":1}},"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"The valid Soundiiz albums have been added to the user favorites.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message","addedCount"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"FAVORITE_ALBUMS_ADDED"},"addedCount":{"type":"integer","example":2}},"type":"object"}},"type":"object"}}}},"400":{"description":"The JSON payload or at least one Soundiiz album ID is invalid. Returns INVALID_FAVORITE_IDS.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_FAVORITE_IDS"}},"type":"object"}},"type":"object"}]}}}},"409":{"description":"Adding the new albums would exceed the 20,000-favorite limit. Returns FAVORITE_LIMIT_REACHED.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"FAVORITE_LIMIT_REACHED"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"delete":{"tags":["Favorites"],"summary":"Remove favorite albums","description":"Removes up to 20 Soundiiz albums from the authenticated user favorites. Unknown or already removed IDs are ignored.","operationId":"delete_soundiiz_openapi_v1_merest_deletemefavoritealbums","parameters":[{"name":"ids","in":"query","description":"Comma-separated Soundiiz album IDs. Between 1 and 20 values.","required":true,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":20}}],"responses":{"200":{"description":"The matching favorites have been removed.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message","deletedCount"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"FAVORITE_ALBUMS_DELETED"},"deletedCount":{"type":"integer","example":2}},"type":"object"}},"type":"object"}}}},"400":{"description":"The IDs are missing, malformed, non-positive, or exceed the 20-value limit.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_FAVORITE_IDS"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/favorites/artists":{"get":{"tags":["Favorites"],"summary":"List favorite artists","description":"Retrieves Soundiiz artists favorited by the authenticated user.","operationId":"get_soundiiz_openapi_v1_merest_getmefavoriteartists","parameters":[{"name":"offset","in":"query","description":"The index of the first item to return.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":0}},{"name":"limit","in":"query","description":"The maximum number of items to return. Minimum: 1. Maximum: 100.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":"50"}}],"responses":{"200":{"description":"Returns a paginated list of Soundiiz artists favorited by the authenticated user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items","offset","limit","total"],"properties":{"items":{"type":"array","items":{"required":["id","type","name","addedDate"],"properties":{"id":{"type":"integer","example":401},"type":{"type":"string","example":"artist"},"name":{"type":"string","example":"Favorite artist","nullable":true},"addedDate":{"type":"integer","example":1780315200,"nullable":true}},"type":"object"}},"offset":{"type":"integer","example":0},"limit":{"type":"integer","example":50},"total":{"type":"integer","example":5}},"type":"object"}},"type":"object"}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"post":{"tags":["Favorites"],"summary":"Add favorite artists","description":"Adds up to 20 Soundiiz artists to the authenticated user favorites. Already favorited artists are ignored.","operationId":"post_soundiiz_openapi_v1_merest_addmefavoriteartists","requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["ids"],"properties":{"ids":{"type":"array","items":{"type":"integer","minimum":1},"example":[401,402],"maxItems":20,"minItems":1}},"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"The valid Soundiiz artists have been added to the user favorites.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message","addedCount"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"FAVORITE_ARTISTS_ADDED"},"addedCount":{"type":"integer","example":2}},"type":"object"}},"type":"object"}}}},"400":{"description":"The JSON payload or at least one Soundiiz artist ID is invalid. Returns INVALID_FAVORITE_IDS.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_FAVORITE_IDS"}},"type":"object"}},"type":"object"}]}}}},"409":{"description":"Adding the new artists would exceed the 20,000-favorite limit. Returns FAVORITE_LIMIT_REACHED.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"FAVORITE_LIMIT_REACHED"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"delete":{"tags":["Favorites"],"summary":"Remove favorite artists","description":"Removes up to 20 Soundiiz artists from the authenticated user favorites. Unknown or already removed IDs are ignored.","operationId":"delete_soundiiz_openapi_v1_merest_deletemefavoriteartists","parameters":[{"name":"ids","in":"query","description":"Comma-separated Soundiiz artist IDs. Between 1 and 20 values.","required":true,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer","minimum":1},"maxItems":20}}],"responses":{"200":{"description":"The matching favorites have been removed.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message","deletedCount"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"FAVORITE_ARTISTS_DELETED"},"deletedCount":{"type":"integer","example":2}},"type":"object"}},"type":"object"}}}},"400":{"description":"The IDs are missing, malformed, non-positive, or exceed the 20-value limit.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"INVALID_FAVORITE_IDS"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/syncs":{"get":{"tags":["Syncs"],"summary":"List syncs","description":"Retrieves a paginated list of syncs owned by the authenticated user. This endpoint supports pagination via offset and limit query parameters to control the number of items returned.","operationId":"get_soundiiz_openapi_v1_merest_getmesyncs","parameters":[{"name":"offset","in":"query","description":"The index of the first item to return. Default: 0 (the first item). Use with limit to get the next set of items.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":0}},{"name":"limit","in":"query","description":"The maximum number of items to return. Default: 50. Minimum: 1. Maximum: 100.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":"50"}}],"responses":{"200":{"description":"Returns a paginated list of syncs owned by the authenticated user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items","offset","limit","total"],"properties":{"items":{"type":"array","items":{"required":["id","type","title","source","destination","method","frequency","scheduled","status"],"properties":{"id":{"type":"integer","example":42},"type":{"type":"string","example":"sync"},"title":{"type":"string","example":"My daily sync"},"source":{"required":["type","serviceName","id","url"],"properties":{"type":{"type":"string","example":"playlist"},"serviceName":{"type":"string","example":"spotify"},"id":{"type":"string","example":"37i9dQZF1AXcBWIGoYBM5M"},"url":{"type":"string","example":"https://open.spotify.com/playlist/37i9dQZF1AXcBWIGoYBM5M"}},"type":"object"},"destination":{"required":["type","serviceName","id","url"],"properties":{"type":{"type":"string","example":"playlist"},"serviceName":{"type":"string","example":"deezer"},"id":{"type":"string","example":"1234567890"},"url":{"type":"string","example":"https://www.deezer.com/playlist/1234567890"}},"type":"object"},"method":{"type":"string","example":"add","enum":["add","replace"]},"frequency":{"type":"string","example":"daily","enum":["daily","weekly","monthly"]},"lastExecutionDate":{"type":"integer","example":1710673200,"nullable":true},"nextExecutionDate":{"type":"integer","example":1710759600,"nullable":true},"scheduled":{"type":"boolean","example":true},"status":{"type":"string","example":"idle","enum":["processing","pending","idle"]}},"type":"object"}},"offset":{"type":"integer","example":0},"limit":{"type":"integer","example":50},"total":{"type":"integer","example":12}},"type":"object"}},"type":"object"}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/syncs/{id}":{"get":{"tags":["Syncs"],"summary":"Get a sync","description":"Retrieves details of a sync owned by the authenticated user identified by its Soundiiz ID.","operationId":"get_soundiiz_openapi_v1_merest_getmesyncsdetails","parameters":[{"name":"id","in":"path","description":"The unique Soundiiz identifier of the synchronization process.","required":true,"schema":{"type":"integer","pattern":"\\d+"}}],"responses":{"200":{"description":"Returns details of a sync owned by the authenticated user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["id","type","title","source","destination","method","frequency","scheduled","status"],"properties":{"id":{"type":"integer","example":42},"type":{"type":"string","example":"sync"},"title":{"type":"string","example":"My daily sync"},"source":{"required":["type","serviceName","id","url"],"properties":{"type":{"type":"string","example":"playlist"},"serviceName":{"type":"string","example":"spotify"},"id":{"type":"string","example":"37i9dQZF1DXcBWIGoYBM5M"},"url":{"type":"string","example":"https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"}},"type":"object"},"destination":{"required":["type","serviceName","id","url"],"properties":{"type":{"type":"string","example":"playlist"},"serviceName":{"type":"string","example":"deezer"},"id":{"type":"string","example":"1234567890"},"url":{"type":"string","example":"https://www.deezer.com/playlist/1234567890"}},"type":"object"},"method":{"type":"string","example":"replace","enum":["add","replace"]},"frequency":{"type":"string","example":"weekly","enum":["daily","weekly","monthly"]},"lastExecutionDate":{"type":"integer","example":1710673200,"nullable":true},"nextExecutionDate":{"type":"integer","example":1710759600,"nullable":true},"scheduled":{"type":"boolean","example":true},"status":{"type":"string","example":"processing","enum":["processing","pending","idle"]},"lastExecutionResult":{"properties":{"status":{"type":"string","example":"success","enum":["pending","processing","success","error"]},"error":{"oneOf":[{"type":"string","enum":["PLATFORM_DISCONNECTED","LOADING_SOURCE_PLAYLIST","LOADING_DESTINATION_PLAYLIST","PROCESS_FAILURE","DESTINATION_FULL","NO_SOURCE_TRACKS"]},{"type":"null"},{"type":"object","nullable":true,"enum":[null]}]},"startDate":{"type":"integer","example":1710673200,"nullable":true},"endDate":{"type":"integer","example":1710673260,"nullable":true},"score":{"oneOf":[{"type":"integer","example":98},{"type":"string","example":"NO_CHANGES"},{"type":"null"},{"type":"object","nullable":true,"enum":[null]}]},"nbTrackSource":{"type":"integer","example":120,"nullable":true},"nbTrackDestination":{"type":"integer","example":118,"nullable":true}},"type":"object","nullable":true}},"type":"object"}},"type":"object"}}}},"404":{"description":"Sync not found.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"SYNC_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"delete":{"tags":["Syncs"],"summary":"Delete a sync","description":"Delete a user-owned synchronization identified by its Soundiiz ID. This endpoint delete the sync and returns a confirmation or failure status.","operationId":"delete_soundiiz_openapi_v1_merest_getmesyncsdelete","parameters":[{"name":"id","in":"path","description":"The unique Soundiiz identifier of the synchronization process to delete. This ID is required and must be a valid integer.","required":true,"schema":{"type":"integer","pattern":"\\d+"}}],"responses":{"200":{"description":"The ressource has been deleted.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"SYNC_DELETED"}},"type":"object"}},"type":"object"}}}},"400":{"description":"The resource has not been deleted due to invalid input or missing parameters.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"UNKNOWN_ERROR"}},"type":"object"}},"type":"object"}]}}}},"404":{"description":"No resource was not found for the provided Soundiiz ID. Verify that the sync ID exists and is accessible by the current user.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"SYNC_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"409":{"description":"The ressource cannot be deleted because it is currently in use.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"SYNC_PENDING","enum":["SYNC_PROCESSING","SYNC_PENDING"]}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/syncs/{id}/trigger":{"post":{"tags":["Syncs"],"summary":"Trigger a sync","description":"Triggers the execution of a user-owned synchronization process identified by its Soundiiz ID. A sync can be triggered when its `scheduled` property is `false`: disabling the schedule prevents automatic runs but does not prevent API-triggered execution. This endpoint queues the sync asynchronously and returns a confirmation or processing status.","operationId":"post_soundiiz_openapi_v1_merest_getmesyncsexecute","parameters":[{"name":"id","in":"path","description":"The unique Soundiiz identifier of the synchronization process to execute. This ID is required and must be a valid integer.","required":true,"schema":{"type":"integer","pattern":"\\d+"}}],"responses":{"200":{"description":"The sync execution request has been received, but the sync is already being processed or in pending mode.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"SYNC_PROCESSING","enum":["SYNC_PROCESSING","SYNC_PENDING"]}},"type":"object"}},"type":"object"}}}},"202":{"description":"The sync execution request has been accepted and is currently being processed asynchronously.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"SYNC_EXECUTION_ACCEPTED"}},"type":"object"}},"type":"object"}}}},"400":{"description":"The sync execution request failed due to invalid input or missing parameters.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"UNKNOWN_ERROR"}},"type":"object"}},"type":"object"}]}}}},"404":{"description":"No synchronization process was found for the provided Soundiiz ID. Verify that the sync ID exists and is accessible by the current user.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"SYNC_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"409":{"description":"The sync execution request could not be accepted because the user already has too many syncs currently running, or another sync targeting the same destination platform is already in progress.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"TOO_MANY_SYNCS_IN_PROGRESS","enum":["TOO_MANY_SYNCS_IN_PROGRESS","DESTINATION_SYNC_IN_PROGRESS"]}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/smartlinks":{"get":{"tags":["Smartlinks"],"summary":"List smartlinks","description":"Retrieves a paginated list of smartlinks owned by the authenticated user. This endpoint supports pagination via offset and limit query parameters to control the number of items returned.","operationId":"get_soundiiz_openapi_v1_merest_getmesmartlinks","parameters":[{"name":"offset","in":"query","description":"The index of the first item to return. Default: 0 (the first item). Use with limit to get the next set of items.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":0}},{"name":"limit","in":"query","description":"The maximum number of items to return. Default: 50. Minimum: 1. Maximum: 100.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":"50"}}],"responses":{"200":{"description":"Returns a paginated list of smartlinks owned by the authenticated user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items","offset","limit","total"],"properties":{"items":{"type":"array","items":{"required":["id","type","shortcode","category","fallback","title","artist","description","addedDate","updatedDate","links","status"],"properties":{"id":{"type":"integer","example":101},"type":{"type":"string","example":"smartlink"},"subDomain":{"type":"string","example":"mybrand","nullable":true},"shortcode":{"type":"string","example":"abc123"},"category":{"type":"string","example":"playlist","enum":["playlist","album","track","artist"]},"fallback":{"type":"string","example":"https://open.spotify.com/playlist/xyz"},"title":{"type":"string","example":"My Top Playlist"},"artist":{"type":"string","example":"Me, the Curator"},"description":{"type":"string","example":"Smart link description","nullable":true},"addedDate":{"type":"integer","example":1710673200},"updatedDate":{"type":"integer","example":1710759600},"links":{"type":"array","items":{"required":["id","type","platform","url"],"properties":{"id":{"type":"integer","example":1},"type":{"type":"string","example":"link"},"platform":{"type":"string","example":"spotify"},"url":{"type":"string","example":"https://open.spotify.com/playlist/xyz"}},"type":"object"}},"status":{"type":"string","example":"published","enum":["draft","published"]}},"type":"object"}},"offset":{"type":"integer","example":0},"limit":{"type":"integer","example":50},"total":{"type":"integer","example":7}},"type":"object"}},"type":"object"}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/smartlinks/{id}":{"get":{"tags":["Smartlinks"],"summary":"Get a smartlink","description":"Retrieves details of a smartlink owned by the authenticated user identified by its Soundiiz ID.","operationId":"get_soundiiz_openapi_v1_merest_getmesmartlinksdetails","parameters":[{"name":"id","in":"path","description":"The unique Soundiiz identifier of the smartlink.","required":true,"schema":{"type":"integer","pattern":"\\d+"}}],"responses":{"200":{"description":"Returns details of a smartlink owned by the authenticated user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["id","type","shortcode","category","fallback","title","artist","description","addedDate","updatedDate","links","status"],"properties":{"id":{"type":"integer","example":101},"type":{"type":"string","example":"smartlink"},"subDomain":{"type":"string","example":"mybrand","nullable":true},"shortcode":{"type":"string","example":"abc123"},"category":{"type":"string","example":"playlist","enum":["playlist","album","track","artist"]},"fallback":{"type":"string","example":"https://open.spotify.com/playlist/xyz"},"title":{"type":"string","example":"My Top Playlist"},"artist":{"type":"string","example":"Me, the Curator"},"description":{"type":"string","example":"Smart link description","nullable":true},"addedDate":{"type":"integer","example":1710673200},"updatedDate":{"type":"integer","example":1710759600},"links":{"type":"array","items":{"required":["id","type","platform","url"],"properties":{"id":{"type":"integer","example":1},"type":{"type":"string","example":"link"},"platform":{"type":"string","example":"spotify"},"url":{"type":"string","example":"https://open.spotify.com/playlist/xyz"}},"type":"object"}},"status":{"type":"string","example":"published","enum":["draft","published"]}},"type":"object"}},"type":"object"}}}},"404":{"description":"Smartlink not found.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"SMARTLINK_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"delete":{"tags":["Smartlinks"],"summary":"Delete a smartlink","description":"Delete a user-owned smartlink identified by its Soundiiz ID. This endpoint delete the smartlink and returns a confirmation or failure status.","operationId":"delete_soundiiz_openapi_v1_merest_getmesmartlinksdelete","parameters":[{"name":"id","in":"path","description":"The unique Soundiiz identifier of the smartlink to delete. This ID is required and must be a valid integer.","required":true,"schema":{"type":"integer","pattern":"\\d+"}}],"responses":{"200":{"description":"The ressource has been deleted.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"SMARTLINK_DELETED"}},"type":"object"}},"type":"object"}}}},"404":{"description":"Smartlink not found.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"SMARTLINK_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/matchingrules":{"get":{"tags":["Matching Rules"],"summary":"List matching rules","description":"Retrieves a paginated list of matching rules owned by the authenticated user. This endpoint supports pagination via offset and limit query parameters to control the number of items returned.","operationId":"get_soundiiz_openapi_v1_merest_getmematchingrules","parameters":[{"name":"offset","in":"query","description":"The index of the first item to return. Default: 0 (the first item). Use with limit to get the next set of items.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":0}},{"name":"limit","in":"query","description":"The maximum number of items to return. Default: 50. Minimum: 1. Maximum: 100.","required":false,"allowEmptyValue":true,"schema":{"type":"string","pattern":"\\d+","default":"50"}}],"responses":{"200":{"description":"Returns a paginated list of matching rules owned by the authenticated user.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["items","offset","limit","total"],"properties":{"items":{"type":"array","items":{"required":["id","type","category","source","destination","addedDate"],"properties":{"id":{"type":"integer","example":101},"type":{"type":"string","example":"matchingrule"},"category":{"type":"string","example":"track","enum":["track","album","artist"]},"addedDate":{"type":"integer","example":1710673200},"source":{"type":"array","items":{"required":["id","platform"],"properties":{"id":{"type":"integer","example":1},"platform":{"type":"string","example":"spotify"}},"type":"object"}},"destination":{"type":"array","items":{"required":["id","platform"],"properties":{"id":{"type":"integer","example":1},"platform":{"type":"string","example":"spotify"}},"type":"object"}}},"type":"object"}},"offset":{"type":"integer","example":0},"limit":{"type":"integer","example":50},"total":{"type":"integer","example":7}},"type":"object"}},"type":"object"}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}},"/v1/me/matchingrules/{id}":{"get":{"tags":["Matching Rules"],"summary":"Get a matching rule","description":"Retrieves a specific matching rule owned by the authenticated user.","operationId":"get_soundiiz_openapi_v1_merest_getmematchingrule","parameters":[{"name":"id","in":"path","description":"The matching rule ID.","required":true,"schema":{"type":"integer","pattern":"\\d+","example":101}}],"responses":{"200":{"description":"Returns the requested matching rule.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["id","type","category","source","destination","addedDate"],"properties":{"id":{"type":"integer","example":101},"type":{"type":"string","example":"matchingrule"},"category":{"type":"string","example":"track","enum":["track","album","artist"]},"source":{"required":["id","platform"],"properties":{"id":{"type":"integer","example":1},"platform":{"type":"string","example":"spotify"},"region":{"type":"string","example":"US","nullable":true}},"type":"object"},"destination":{"required":["id","platform"],"properties":{"id":{"type":"integer","example":1},"platform":{"type":"string","example":"deezer"},"region":{"type":"string","example":"FR","nullable":true}},"type":"object"},"addedDate":{"type":"integer","example":1710673200}},"type":"object"}},"type":"object"}}}},"404":{"description":"Matching Rule not found.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"MATCHINGRULE_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}},"delete":{"tags":["Matching Rules"],"summary":"Delete a matching rule","description":"Delete a user-owned matching rule identified by its Soundiiz ID. This endpoint delete the matching rule and returns a confirmation or failure status.","operationId":"delete_soundiiz_openapi_v1_merest_getmematchingrulesdelete","parameters":[{"name":"id","in":"path","description":"The unique Soundiiz identifier of the matching rule to delete. This ID is required and must be a valid integer.","required":true,"schema":{"type":"integer","pattern":"\\d+"}}],"responses":{"200":{"description":"The ressource has been deleted.","content":{"application/json":{"schema":{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"accepted"},"message":{"type":"string","example":"MATCHINGRULE_DELETED"}},"type":"object"}},"type":"object"}}}},"404":{"description":"Matching rule not found.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SoundiizApiError"},{"required":["data"],"properties":{"data":{"required":["status","message"],"properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"MATCHINGRULE_NOT_FOUND"}},"type":"object"}},"type":"object"}]}}}},"429":{"description":"The API key has exceeded its request quota.","headers":{"Retry-After":{"description":"Seconds until another request can be attempted.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundiizRateLimitError"}}}}}}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","description":"Paste here your personal API Key.","name":"authorization","in":"header","scheme":"bearer"}},"schemas":{"SoundiizApiError":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["status","message"],"properties":{"status":{"type":"string","enum":["error"],"example":"error"},"message":{"type":"string","description":"Stable machine-readable Soundiiz error code.","example":"PLAYLIST_NOT_FOUND"}}}}},"SoundiizRateLimitError":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer","enum":[429],"example":429},"message":{"type":"string","example":"API Rate Limit Exceeded."}}}}},"security":[{"BearerAuth":[]}],"tags":[{"name":"Tracks","description":"Search and retrieve track metadata stored by Soundiiz."},{"name":"Albums","description":"Search and retrieve album metadata stored by Soundiiz."},{"name":"Artists","description":"Search and retrieve artist metadata stored by Soundiiz."},{"name":"User","description":"View information about your Soundiiz account."},{"name":"Playlists","description":"Create and manage playlists in your Soundiiz account."},{"name":"Favorites","description":"View and manage favorites saved to your Soundiiz account."},{"name":"Syncs","description":"Manage your syncs and trigger them on demand."},{"name":"Smartlinks","description":"View and delete your smartlinks."},{"name":"Matching Rules","description":"View and delete your matching rules."}]}