{"components":{"schemas":{"AddArtist":{"properties":{"spotify_id":{"type":"string"},"spotify_url":{"type":"string"}},"required":[],"type":"object"},"AlertDelivery":{"properties":{"attempts":{"type":"integer"},"change_id":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"delivered_at":{"format":"date-time","type":["string","null"]},"destination_id":{"type":"string"},"id":{"type":"string"},"object":{"type":"string"},"status":{"type":"string"}},"required":["object","id","destination_id","change_id","status","attempts","created_at"],"type":"object"},"Artist":{"properties":{"added_at":{"format":"date-time","type":"string"},"followers":{"type":["integer","null"]},"id":{"type":"string"},"image_url":{"type":"string"},"label_tag":{"type":"string"},"last_checked_at":{"format":"date-time","type":["string","null"]},"monthly_listeners":{"type":["integer","null"]},"name":{"type":"string"},"object":{"type":"string"},"spotify_id":{"type":"string"},"spotify_verified":{"type":"boolean"},"status":{"type":"string"},"world_rank":{"type":["integer","null"]}},"required":["object","id","spotify_id","name","image_url","status","spotify_verified","label_tag","added_at"],"type":"object"},"ArtistSearchResult":{"properties":{"followers":{"type":"integer"},"image_url":{"type":"string"},"monthly_listeners":{"type":"integer"},"name":{"type":"string"},"object":{"type":"string"},"spotify_id":{"type":"string"},"spotify_verified":{"type":"boolean"}},"required":["object","spotify_id","name","image_url","spotify_verified","followers","monthly_listeners"],"type":"object"},"ArtistStats":{"properties":{"artist_id":{"type":"string"},"days":{"type":"integer"},"followers":{"items":{"$ref":"#/components/schemas/DayValue"},"type":"array"},"listeners":{"items":{"$ref":"#/components/schemas/DayValue"},"type":"array"},"object":{"type":"string"}},"required":["object","artist_id","days","listeners","followers"],"type":"object"},"AuditEntry":{"properties":{"action":{"type":"string"},"actor_user_id":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"ip":{"type":"string"},"object":{"type":"string"},"target":{"additionalProperties":true,"type":"object"}},"required":["object","id","actor_user_id","action","target","ip","created_at"],"type":"object"},"Change":{"properties":{"artist":{"$ref":"#/components/schemas/Ref"},"confirmed_at":{"format":"date-time","type":"string"},"dashboard_url":{"type":"string"},"detail":{"type":"string"},"details":{"additionalProperties":true,"type":"object"},"entity":{"$ref":"#/components/schemas/Entity"},"id":{"type":"string"},"label":{"type":"string"},"object":{"type":"string"},"severity":{"type":"string"},"status":{"type":"string"},"summary":{"type":"string"},"type":{"type":"string"}},"required":["object","id","type","severity","status","artist","entity","summary","label","detail","details","confirmed_at","dashboard_url"],"type":"object"},"ChangeType":{"properties":{"beta":{"type":"string"},"id":{"type":"string"},"label":{"type":"string"},"object":{"type":"string"},"severity":{"type":"string"}},"required":["object","id","severity","label","beta"],"type":"object"},"DayValue":{"properties":{"day":{"type":"string"},"value":{"type":"integer"}},"required":["day","value"],"type":"object"},"Deleted":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"object":{"type":"string"}},"required":["object","id","deleted"],"type":"object"},"Destination":{"properties":{"active":{"type":"boolean"},"created_at":{"format":"date-time","type":"string"},"disabled_reason":{"type":"string"},"id":{"type":"string"},"kind":{"type":"string"},"last_success_at":{"format":"date-time","type":["string","null"]},"name":{"type":"string"},"object":{"type":"string"},"target":{"type":"string"}},"required":["object","id","kind","name","active","target","disabled_reason","created_at"],"type":"object"},"DestinationInput":{"properties":{"config":{"additionalProperties":{},"type":"object"},"kind":{"type":"string"},"name":{"type":"string"}},"required":[],"type":"object"},"DestinationPatch":{"properties":{"config":{"additionalProperties":{},"type":"object"},"name":{"type":"string"}},"required":[],"type":"object"},"Entity":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"required":["type","id","name"],"type":"object"},"Error":{"properties":{"error":{"properties":{"code":{"type":"string"},"docs_url":{"type":"string"},"field":{"type":["string","null"]},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"type":"object"}},"required":["error"],"type":"object"},"Event":{"properties":{"created_at":{"format":"date-time","type":"string"},"data":{"additionalProperties":true,"type":"object"},"id":{"type":"string"},"object":{"type":"string"},"type":{"type":"string"}},"required":["object","id","type","created_at","data"],"type":"object"},"Export":{"properties":{"created_at":{"format":"date-time","type":"string"},"download_url":{"type":"string"},"error":{"type":"string"},"expires_at":{"format":"date-time","type":"string"},"finished_at":{"format":"date-time","type":["string","null"]},"format":{"type":"string"},"id":{"type":"string"},"kind":{"type":"string"},"object":{"type":"string"},"status":{"type":"string"}},"required":["object","id","kind","format","status","error","download_url","created_at","expires_at"],"type":"object"},"ExportInput":{"properties":{"days":{"type":"integer"},"format":{"type":"string"},"kind":{"type":"string"}},"required":[],"type":"object"},"Impact":{"properties":{"artist":{"$ref":"#/components/schemas/Ref"},"change_id":{"type":"string"},"days_gone":{"type":"integer"},"lost":{"type":["integer","null"]},"name":{"type":"string"},"type":{"type":"string"}},"required":["change_id","type","name","artist","days_gone"],"type":"object"},"Import":{"properties":{"object":{"type":"string"},"results":{"items":{"$ref":"#/components/schemas/ImportResult"},"type":"array"},"verified":{"type":"integer"}},"required":["object","verified","results"],"type":"object"},"ImportArtists":{"properties":{"artists":{"items":{"$ref":"#/components/schemas/ImportRow"},"type":"array"}},"required":[],"type":"object"},"ImportResult":{"properties":{"artist_id":{"type":"string"},"error":{"type":"string"},"name":{"type":"string"},"spotify_id":{"type":"string"},"status":{"type":"string"}},"required":["spotify_id","artist_id","name","status","error"],"type":"object"},"ImportRow":{"properties":{"confirmed":{"type":"boolean"},"ref":{"type":"string"}},"required":[],"type":"object"},"Invite":{"properties":{"created_at":{"format":"date-time","type":"string"},"email":{"type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"object":{"type":"string"},"role":{"type":"string"}},"required":["object","id","email","role","expires_at","created_at"],"type":"object"},"InviteInput":{"properties":{"email":{"type":"string"},"role":{"type":"string"}},"required":[],"type":"object"},"Key":{"properties":{"artist_ids":{"items":{"type":"string"},"type":"array"},"created_at":{"format":"date-time","type":"string"},"expires_at":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"object":{"type":"string"},"prefix":{"type":"string"},"scopes":{"items":{"type":"string"},"type":"array"}},"required":["object","id","name","prefix","scopes","artist_ids","created_at"],"type":"object"},"Limit":{"properties":{"limit":{"type":"integer"},"used":{"type":"integer"}},"required":["used","limit"],"type":"object"},"Me":{"properties":{"key":{"$ref":"#/components/schemas/Key"},"object":{"type":"string"},"organization":{"$ref":"#/components/schemas/Organization"},"usage":{"$ref":"#/components/schemas/Usage"}},"required":["object","key","organization","usage"],"type":"object"},"Member":{"properties":{"display_name":{"type":"string"},"email":{"type":"string"},"joined_at":{"format":"date-time","type":"string"},"object":{"type":"string"},"role":{"type":"string"},"user_id":{"type":"string"},"username":{"type":"string"}},"required":["object","user_id","email","username","display_name","role","joined_at"],"type":"object"},"Milestone":{"properties":{"artist":{"type":"string"},"eta_days":{"type":["integer","null"]},"kind":{"type":"string"},"name":{"type":"string"},"reached":{"type":"boolean"},"target":{"type":"integer"},"value":{"type":"integer"}},"required":["kind","name","artist","target","value","reached"],"type":"object"},"Mover":{"properties":{"artist":{"$ref":"#/components/schemas/Ref"},"last_7_days":{"type":"integer"},"name":{"type":"string"},"previous_7_days":{"type":"integer"},"track_id":{"type":"string"}},"required":["track_id","name","artist","last_7_days","previous_7_days"],"type":"object"},"OrgPatch":{"properties":{"name":{"type":"string"}},"required":[],"type":"object"},"Organization":{"properties":{"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"logo_url":{"type":"string"},"name":{"type":"string"},"object":{"type":"string"},"plan":{"type":"string"},"slug":{"type":"string"}},"required":["object","id","name","slug","plan","logo_url","created_at"],"type":"object"},"Overview":{"properties":{"artist_id":{"type":"string"},"days":{"type":"integer"},"falling":{"items":{"$ref":"#/components/schemas/Mover"},"type":"array"},"followers":{"type":"integer"},"impacts":{"items":{"$ref":"#/components/schemas/Impact"},"type":"array"},"listeners":{"type":"integer"},"milestones":{"items":{"$ref":"#/components/schemas/Milestone"},"type":"array"},"object":{"type":"string"},"rising":{"items":{"$ref":"#/components/schemas/Mover"},"type":"array"},"streams":{"type":"integer"},"streams_daily":{"items":{"$ref":"#/components/schemas/DayValue"},"type":"array"},"streams_prev":{"type":["integer","null"]}},"required":["object","days","artist_id","streams","listeners","followers","impacts","rising","falling","milestones","streams_daily"],"type":"object"},"Plan":{"properties":{"api":{"type":"boolean"},"artists":{"type":"integer"},"history_retention_days":{"type":"integer"},"id":{"type":"string"},"object":{"type":"string"},"releases_per_artist":{"type":"integer"},"requests_per_hour":{"type":"integer"},"seats":{"type":"integer"},"webhook_endpoints":{"type":"integer"}},"required":["object","id","artists","seats","releases_per_artist","history_retention_days","api","requests_per_hour","webhook_endpoints"],"type":"object"},"Proof":{"properties":{"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"licensor":{"type":"string"},"link":{"type":"string"},"object":{"type":"string"},"release_id":{"type":"string"},"territory":{"type":"string"},"title":{"type":"string"},"valid_until":{"type":"string"}},"required":["object","id","release_id","title","licensor","territory","valid_until","link","created_at"],"type":"object"},"ProofInput":{"properties":{"licensor":{"type":"string"},"link":{"type":"string"},"territory":{"type":"string"},"title":{"type":"string"},"valid_until":{"type":"string"}},"required":[],"type":"object"},"Ref":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"spotify_id":{"type":"string"}},"required":["id","name"],"type":"object"},"Release":{"properties":{"artist":{"$ref":"#/components/schemas/Ref"},"c_line":{"type":"string"},"id":{"type":"string"},"image_url":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"object":{"type":"string"},"p_line":{"type":"string"},"proofs":{"type":"integer"},"release_date":{"type":"string"},"spotify_id":{"type":"string"},"state":{"type":"string"},"tracks_offline":{"type":"integer"},"tracks_total":{"type":"integer"},"type":{"type":"string"},"upc":{"type":"string"}},"required":["object","id","spotify_id","name","type","image_url","label","upc","c_line","p_line","release_date","artist","tracks_total","tracks_offline","state","proofs"],"type":"object"},"ResolveMany":{"properties":{"ids":{"items":{"type":"string"},"type":"array"},"resolved":{"type":"boolean"}},"required":[],"type":"object"},"ResolveResult":{"properties":{"ids":{"items":{"type":"string"},"type":"array"},"object":{"type":"string"},"resolved":{"type":"boolean"}},"required":["object","resolved","ids"],"type":"object"},"RoleInput":{"properties":{"role":{"type":"string"}},"required":[],"type":"object"},"Rule":{"properties":{"active":{"type":"boolean"},"artist_ids":{"items":{"type":"string"},"type":"array"},"change_types":{"items":{"type":"string"},"type":"array"},"created_at":{"format":"date-time","type":"string"},"destination_id":{"type":"string"},"digest":{"type":"string"},"id":{"type":"string"},"label_tag":{"type":"string"},"locale":{"type":["string","null"]},"min_severity":{"type":"string"},"object":{"type":"string"}},"required":["object","id","destination_id","min_severity","change_types","artist_ids","label_tag","digest","active","created_at"],"type":"object"},"RuleInput":{"properties":{"artist_ids":{"items":{"type":"string"},"type":"array"},"change_types":{"items":{"type":"string"},"type":"array"},"destination_id":{"type":"string"},"digest":{"type":"string"},"locale":{"type":["string","null"]},"min_severity":{"type":"string"}},"required":[],"type":"object"},"RulePatch":{"properties":{"active":{"type":["boolean","null"]},"artist_ids":{"items":{"type":"string"},"type":["array","null"]},"change_types":{"items":{"type":"string"},"type":["array","null"]},"destination_id":{"type":["string","null"]},"digest":{"type":["string","null"]},"locale":{"type":["string","null"]},"min_severity":{"type":["string","null"]}},"required":[],"type":"object"},"TestResult":{"properties":{"error":{"type":"string"},"object":{"type":"string"},"ok":{"type":"boolean"}},"required":["object","ok","error"],"type":"object"},"ToolInput":{"additionalProperties":true,"type":"object"},"Track":{"properties":{"artist":{"$ref":"#/components/schemas/Ref"},"artists":{"items":{"type":"string"},"type":"array"},"disc_number":{"type":"integer"},"duration_ms":{"type":"integer"},"explicit":{"type":"boolean"},"id":{"type":"string"},"isrc":{"type":"string"},"name":{"type":"string"},"object":{"type":"string"},"playable":{"type":"boolean"},"playcount":{"type":"integer"},"release":{"$ref":"#/components/schemas/Ref"},"removed_at":{"format":"date-time","type":["string","null"]},"spotify_id":{"type":"string"},"track_number":{"type":"integer"}},"required":["object","id","spotify_id","name","isrc","disc_number","track_number","duration_ms","explicit","playable","playcount","artists","release","artist"],"type":"object"},"TrackPlays":{"properties":{"days":{"type":"integer"},"object":{"type":"string"},"plays":{"items":{"$ref":"#/components/schemas/DayValue"},"type":"array"},"track_id":{"type":"string"}},"required":["object","track_id","days","plays"],"type":"object"},"Trend":{"properties":{"artist_id":{"type":"string"},"buckets":{"items":{"$ref":"#/components/schemas/TrendBucket"},"type":"array"},"days":{"type":"integer"},"estimated":{"type":"boolean"},"grain":{"type":"string"},"object":{"type":"string"},"songs":{"items":{"$ref":"#/components/schemas/TrendSong"},"type":"array"},"streams_prev":{"type":["integer","null"]}},"required":["object","days","grain","artist_id","buckets","songs","estimated"],"type":"object"},"TrendBucket":{"properties":{"followers":{"type":["integer","null"]},"from":{"type":"string"},"listeners":{"type":["integer","null"]},"streams":{"type":"integer"},"streams_total":{"type":"integer"},"to":{"type":"string"}},"required":["from","to","streams","streams_total"],"type":"object"},"TrendSong":{"properties":{"artist":{"$ref":"#/components/schemas/Ref"},"name":{"type":"string"},"plays":{"items":{"type":"integer"},"type":"array"},"plays_prev":{"type":["integer","null"]},"spotify_id":{"type":"string"},"total":{"type":"integer"},"track_id":{"type":"string"}},"required":["track_id","spotify_id","name","artist","total","plays"],"type":"object"},"Usage":{"properties":{"api_rate_per_hour":{"type":"integer"},"artists":{"$ref":"#/components/schemas/Limit"},"history_retention_days":{"type":"integer"},"object":{"type":"string"},"plan":{"type":"string"},"requests_per_hour":{"type":"integer"},"seats":{"$ref":"#/components/schemas/Limit"},"webhook_endpoints":{"$ref":"#/components/schemas/Limit"},"writes_per_minute":{"type":"integer"}},"required":["object","plan","artists","seats","requests_per_hour","writes_per_minute","webhook_endpoints","history_retention_days","api_rate_per_hour"],"type":"object"},"Verification":{"properties":{"artist_id":{"type":"string"},"attest_allowed":{"type":"boolean"},"code":{"type":"string"},"method":{"type":"string"},"object":{"type":"string"},"status":{"type":"string"}},"required":["object","artist_id","status","method","code","attest_allowed"],"type":"object"},"Verify":{"properties":{"confirmed":{"type":"boolean"},"method":{"type":"string"}},"required":[],"type":"object"},"WebhookDelivery":{"properties":{"attempts":{"type":"integer"},"created_at":{"format":"date-time","type":"string"},"delivered_at":{"format":"date-time","type":["string","null"]},"duration_ms":{"type":["integer","null"]},"endpoint_id":{"type":"string"},"error":{"type":"string"},"event_id":{"type":"string"},"event_type":{"type":"string"},"id":{"type":"string"},"next_attempt_at":{"format":"date-time","type":["string","null"]},"object":{"type":"string"},"response_status":{"type":["integer","null"]},"status":{"type":"string"}},"required":["object","id","endpoint_id","event_id","event_type","status","attempts","error","created_at"],"type":"object"},"WebhookEndpoint":{"properties":{"artist_ids":{"items":{"type":"string"},"type":"array"},"created_at":{"format":"date-time","type":"string"},"description":{"type":"string"},"events":{"items":{"type":"string"},"type":"array"},"failing_since":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"object":{"type":"string"},"pause_reason":{"type":"string"},"paused":{"type":"boolean"},"secret":{"type":"string"},"url":{"type":"string"}},"required":["object","id","url","description","events","artist_ids","paused","pause_reason","created_at"],"type":"object"},"WebhookInput":{"properties":{"artist_ids":{"items":{"type":"string"},"type":"array"},"description":{"type":"string"},"events":{"items":{"type":"string"},"type":"array"},"url":{"type":"string"}},"required":[],"type":"object"},"WebhookPatch":{"properties":{"artist_ids":{"items":{"type":"string"},"type":["array","null"]},"description":{"type":["string","null"]},"events":{"items":{"type":"string"},"type":["array","null"]},"paused":{"type":["boolean","null"]},"url":{"type":["string","null"]}},"required":[],"type":"object"}},"securitySchemes":{"bearer":{"bearerFormat":"ls_live_…","description":"An API key from Settings, API keys. Its rights are listed in x-scopes.","scheme":"bearer","type":"http"}}},"info":{"contact":{"email":"support@labelsentry.com","url":"https://labelsentry.com/docs/api"},"description":"Read and manage the monitoring of your roster: artists, catalog, changes, statistics, alerts and webhooks. Every request sends an API key as a bearer token. Lists return `data` and `next_cursor`; pass the cursor back as `cursor` until it is null.","license":{"name":"Proprietary","url":"https://labelsentry.com/terms"},"title":"LabelSentry API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/artists":{"get":{"description":"Needs the `artists:read` right.","operationId":"getArtists","parameters":[{"description":"pending_verification, verified or suspended.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"The next_cursor of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Items per page, 50 by default, at most 200.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Artist"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"The roster","tags":["Artists"],"x-scope":"artists:read"},"post":{"description":"Needs the `artists:write` right.","operationId":"postArtists","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddArtist"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Artist"}},"required":["data"],"type":"object"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Add an artist by Spotify id or link","tags":["Artists"],"x-scope":"artists:write"}},"/artists/import":{"post":{"description":"Needs the `artists:write` right.","operationId":"postArtistsImport","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportArtists"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Import"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Add up to 500 artists at once, verified directly (Business)","tags":["Artists"],"x-scope":"artists:write"}},"/artists/search":{"get":{"description":"Needs the `artists:write` right.","operationId":"getArtistsSearch","parameters":[{"description":"A name, at least two characters.","in":"query","name":"q","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ArtistSearchResult"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Search Spotify for an artist to add","tags":["Artists"],"x-scope":"artists:write"}},"/artists/{id}":{"delete":{"description":"Needs the `artists:write` right.","operationId":"deleteArtistsById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Deleted"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Remove an artist from the roster","tags":["Artists"],"x-scope":"artists:write"},"get":{"description":"Needs the `artists:read` right.","operationId":"getArtistsById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Artist"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"One artist","tags":["Artists"],"x-scope":"artists:read"}},"/artists/{id}/releases":{"get":{"description":"Needs the `catalog:read` right.","operationId":"getArtistsByIdReleases","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"The next_cursor of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Items per page, 50 by default, at most 200.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Release"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"An artist's releases, newest first","tags":["Catalog"],"x-scope":"catalog:read"}},"/artists/{id}/stats":{"get":{"description":"Needs the `stats:read` right.","operationId":"getArtistsByIdStats","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"7, 28 or 90. 28 by default, at most what the plan keeps.","in":"query","name":"days","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ArtistStats"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"An artist's listeners and followers per day","tags":["Statistics"],"x-scope":"stats:read"}},"/artists/{id}/verification":{"get":{"description":"Needs the `artists:read` right.","operationId":"getArtistsByIdVerification","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Verification"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Where an artist's verification stands","tags":["Artists"],"x-scope":"artists:read"},"post":{"description":"Needs the `verification:write` right.","operationId":"postArtistsByIdVerification","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Verify"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Verification"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Verify an artist: confirm the rights, check the biography code, or directly","tags":["Artists"],"x-scope":"verification:write"}},"/artists/{id}/verification/check":{"post":{"description":"Needs the `verification:write` right.","operationId":"postArtistsByIdVerificationCheck","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Verification"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Look for the code in the Spotify biography now","tags":["Artists"],"x-scope":"verification:write"}},"/audit":{"get":{"description":"Needs the `audit:read` right.","operationId":"getAudit","parameters":[{"description":"Items per page, 50 by default, at most 200.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AuditEntry"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Who did what and when, API keys included","tags":["Team"],"x-scope":"audit:read"}},"/change-types":{"get":{"description":"Needs the `changes:read` right.","operationId":"getChangeTypes","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ChangeType"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Every change type with its severity","tags":["Changes"],"x-scope":"changes:read"}},"/changes":{"get":{"description":"Needs the `changes:read` right.","operationId":"getChanges","parameters":[{"description":"Only these artists, comma-separated ids.","in":"query","name":"artist_id","required":false,"schema":{"type":"string"}},{"description":"Change types, comma-separated.","in":"query","name":"type","required":false,"schema":{"type":"string"}},{"description":"critical, warning or info, comma-separated.","in":"query","name":"severity","required":false,"schema":{"type":"string"}},{"description":"open or resolved.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Confirmed after this time, RFC 3339. The plan's history by default.","in":"query","name":"since","required":false,"schema":{"type":"string"}},{"description":"Confirmed at or before this time, RFC 3339.","in":"query","name":"until","required":false,"schema":{"type":"string"}},{"description":"The next_cursor of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Items per page, 50 by default, at most 200.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Change"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Changes, newest first","tags":["Changes"],"x-scope":"changes:read"}},"/changes/resolve":{"post":{"description":"Needs the `changes:write` right.","operationId":"postChangesResolve","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveMany"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ResolveResult"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Resolve or reopen up to 200 changes","tags":["Changes"],"x-scope":"changes:write"}},"/changes/{id}":{"get":{"description":"Needs the `changes:read` right.","operationId":"getChangesById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Change"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"One change with its details","tags":["Changes"],"x-scope":"changes:read"}},"/changes/{id}/resolve":{"delete":{"description":"Needs the `changes:write` right.","operationId":"deleteChangesByIdResolve","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Change"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Open a resolved change again","tags":["Changes"],"x-scope":"changes:write"},"post":{"description":"Needs the `changes:write` right.","operationId":"postChangesByIdResolve","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Change"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Mark a change as resolved","tags":["Changes"],"x-scope":"changes:write"}},"/deliveries":{"get":{"description":"Needs the `alerts:read` right.","operationId":"getDeliveries","parameters":[{"description":"Only this destination.","in":"query","name":"destination_id","required":false,"schema":{"type":"string"}},{"description":"Items per page, 50 by default, at most 200.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AlertDelivery"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Alerts sent, newest first","tags":["Alerts"],"x-scope":"alerts:read"}},"/destinations":{"get":{"description":"Needs the `alerts:read` right.","operationId":"getDestinations","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Destination"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Where alerts go","tags":["Alerts"],"x-scope":"alerts:read"},"post":{"description":"Needs the `alerts:write` right.","operationId":"postDestinations","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Destination"}},"required":["data"],"type":"object"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Add a destination","tags":["Alerts"],"x-scope":"alerts:write"}},"/destinations/{id}":{"delete":{"description":"Needs the `alerts:write` right.","operationId":"deleteDestinationsById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Deleted"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Delete a destination and its rules","tags":["Alerts"],"x-scope":"alerts:write"},"patch":{"description":"Needs the `alerts:write` right.","operationId":"patchDestinationsById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Destination"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Rename, change or pause a destination","tags":["Alerts"],"x-scope":"alerts:write"}},"/destinations/{id}/test":{"post":{"description":"Needs the `alerts:write` right.","operationId":"postDestinationsByIdTest","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/TestResult"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Send a test alert","tags":["Alerts"],"x-scope":"alerts:write"}},"/events":{"get":{"description":"Needs the `changes:read` right.","operationId":"getEvents","parameters":[{"description":"Event types, comma-separated.","in":"query","name":"type","required":false,"schema":{"type":"string"}},{"description":"Only these artists, comma-separated ids.","in":"query","name":"artist_id","required":false,"schema":{"type":"string"}},{"description":"Created after this time, RFC 3339.","in":"query","name":"since","required":false,"schema":{"type":"string"}},{"description":"desc (newest first, the default) or asc, for following the feed.","in":"query","name":"order","required":false,"schema":{"type":"string"}},{"description":"The next_cursor of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Items per page, 50 by default, at most 200.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Event"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Events of the last 30 days, the same ones webhooks send","tags":["Events"],"x-scope":"changes:read"}},"/events/{id}":{"get":{"description":"Needs the `changes:read` right.","operationId":"getEventsById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Event"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"One event","tags":["Events"],"x-scope":"changes:read"}},"/exports":{"post":{"description":"Needs the `exports:write` right.","operationId":"postExports","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportInput"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Export"}},"required":["data"],"type":"object"}}},"description":"Accepted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Start an export; export.ready is sent when it is done","tags":["Exports"],"x-scope":"exports:write"}},"/exports/{id}":{"get":{"description":"Needs the `exports:write` right.","operationId":"getExportsById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Export"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Where an export stands","tags":["Exports"],"x-scope":"exports:write"}},"/exports/{id}/download":{"get":{"description":"Needs the `exports:write` right.","operationId":"getExportsByIdDownload","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{}},"text/csv":{"schema":{"type":"string"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"The export's file, CSV or JSON","tags":["Exports"],"x-scope":"exports:write"}},"/invites":{"get":{"description":"Needs the `members:read` right.","operationId":"getInvites","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Invite"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Open invites","tags":["Team"],"x-scope":"members:read"},"post":{"description":"Needs the `members:write` right.","operationId":"postInvites","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Invite"}},"required":["data"],"type":"object"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Invite someone by email","tags":["Team"],"x-scope":"members:write"}},"/invites/{id}":{"delete":{"description":"Needs the `members:write` right.","operationId":"deleteInvitesById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Deleted"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Withdraw an invite","tags":["Team"],"x-scope":"members:write"}},"/me":{"get":{"operationId":"getMe","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Me"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"The key, its rights, the organization and its usage","tags":["Organization"]}},"/members":{"get":{"description":"Needs the `members:read` right.","operationId":"getMembers","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Member"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Members with their role","tags":["Team"],"x-scope":"members:read"}},"/members/{id}":{"delete":{"description":"Needs the `members:write` right.","operationId":"deleteMembersById","parameters":[{"description":"The member's user id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Deleted"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Remove a member","tags":["Team"],"x-scope":"members:write"},"patch":{"description":"Needs the `members:write` right.","operationId":"patchMembersById","parameters":[{"description":"The member's user id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Member"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Change a member's role","tags":["Team"],"x-scope":"members:write"}},"/organization":{"get":{"description":"Needs the `organization:read` right.","operationId":"getOrganization","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Organization"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"The organization","tags":["Organization"],"x-scope":"organization:read"},"patch":{"description":"Needs the `organization:write` right.","operationId":"patchOrganization","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Organization"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Rename the organization","tags":["Organization"],"x-scope":"organization:write"}},"/plans":{"get":{"description":"Needs the `organization:read` right.","operationId":"getPlans","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Plan"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Every plan with its limits","tags":["Organization"],"x-scope":"organization:read"}},"/proofs/{id}":{"delete":{"description":"Needs the `catalog:write` right.","operationId":"deleteProofsById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Deleted"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Remove a proof","tags":["Catalog"],"x-scope":"catalog:write"},"patch":{"description":"Needs the `catalog:write` right.","operationId":"patchProofsById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProofInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Proof"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Change a proof","tags":["Catalog"],"x-scope":"catalog:write"}},"/releases":{"get":{"description":"Needs the `catalog:read` right.","operationId":"getReleases","parameters":[{"description":"Only these artists, comma-separated ids.","in":"query","name":"artist_id","required":false,"schema":{"type":"string"}},{"description":"online, partial, offline, or down for everything not fully online.","in":"query","name":"state","required":false,"schema":{"type":"string"}},{"description":"album, single or compilation.","in":"query","name":"type","required":false,"schema":{"type":"string"}},{"description":"The label line, exactly, ignoring case.","in":"query","name":"label","required":false,"schema":{"type":"string"}},{"description":"Released on or after, YYYY-MM-DD.","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"Released on or before, YYYY-MM-DD.","in":"query","name":"to","required":false,"schema":{"type":"string"}},{"description":"Search name, label, UPC, ISRC or track name.","in":"query","name":"q","required":false,"schema":{"type":"string"}},{"description":"The next_cursor of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Items per page, 50 by default, at most 200.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Release"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Every release of the roster","tags":["Catalog"],"x-scope":"catalog:read"}},"/releases/{id}":{"get":{"description":"Needs the `catalog:read` right.","operationId":"getReleasesById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Release"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"One release","tags":["Catalog"],"x-scope":"catalog:read"}},"/releases/{id}/proofs":{"get":{"description":"Needs the `catalog:read` right.","operationId":"getReleasesByIdProofs","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Proof"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Proofs of rights noted on a release","tags":["Catalog"],"x-scope":"catalog:read"},"post":{"description":"Needs the `catalog:write` right.","operationId":"postReleasesByIdProofs","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProofInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Proof"}},"required":["data"],"type":"object"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Note a proof of rights on a release","tags":["Catalog"],"x-scope":"catalog:write"}},"/releases/{id}/tracks":{"get":{"description":"Needs the `catalog:read` right.","operationId":"getReleasesByIdTracks","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Track"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"A release's tracks in their order","tags":["Catalog"],"x-scope":"catalog:read"}},"/rules":{"get":{"description":"Needs the `alerts:read` right.","operationId":"getRules","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Rule"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Which changes go to which destination, and when","tags":["Alerts"],"x-scope":"alerts:read"},"post":{"description":"Needs the `alerts:write` right.","operationId":"postRules","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Rule"}},"required":["data"],"type":"object"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Add a rule","tags":["Alerts"],"x-scope":"alerts:write"}},"/rules/{id}":{"delete":{"description":"Needs the `alerts:write` right.","operationId":"deleteRulesById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Deleted"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Delete a rule","tags":["Alerts"],"x-scope":"alerts:write"},"patch":{"description":"Needs the `alerts:write` right.","operationId":"patchRulesById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulePatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Rule"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Change a rule","tags":["Alerts"],"x-scope":"alerts:write"}},"/stats/overview":{"get":{"description":"Needs the `stats:read` right.","operationId":"getStatsOverview","parameters":[{"description":"7, 28 or 90. 28 by default, at most what the plan keeps.","in":"query","name":"days","required":false,"schema":{"type":"integer"}},{"description":"One artist; the whole roster by default.","in":"query","name":"artist_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Overview"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"What stands out: offline losses, risers, fallers, milestones","tags":["Statistics"],"x-scope":"stats:read"}},"/stats/trend":{"get":{"description":"Needs the `stats:read` right.","operationId":"getStatsTrend","parameters":[{"description":"7, 28 or 90. 28 by default, at most what the plan keeps.","in":"query","name":"days","required":false,"schema":{"type":"integer"}},{"description":"One artist; the whole roster by default.","in":"query","name":"artist_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Trend"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Streams, listeners and followers over 7, 28 or 90 days, with every song","tags":["Statistics"],"x-scope":"stats:read"}},"/tools":{"get":{"description":"Needs the `tools:use` right.","operationId":"getTools","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Allowance and use of the tools","tags":["Tools"],"x-scope":"tools:use"}},"/tools/history":{"get":{"description":"Needs the `tools:use` right.","operationId":"getToolsHistory","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Earlier tool queries","tags":["Tools"],"x-scope":"tools:use"}},"/tools/list":{"post":{"description":"Needs the `tools:use` right.","operationId":"postToolsList","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"ISRC by Track, for a list","tags":["Tools"],"x-scope":"tools:use"}},"/tools/lookup":{"post":{"description":"Needs the `tools:use` right.","operationId":"postToolsLookup","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Metadata Lookup for a track or release link","tags":["Tools"],"x-scope":"tools:use"}},"/tools/reverse":{"post":{"description":"Needs the `tools:use` right.","operationId":"postToolsReverse","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Track by ISRC","tags":["Tools"],"x-scope":"tools:use"}},"/tracks":{"get":{"description":"Needs the `catalog:read` right.","operationId":"getTracks","parameters":[{"description":"An ISRC, exactly.","in":"query","name":"isrc","required":false,"schema":{"type":"string"}},{"description":"Only these artists, comma-separated ids.","in":"query","name":"artist_id","required":false,"schema":{"type":"string"}},{"description":"The next_cursor of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Items per page, 50 by default, at most 200.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Track"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Find tracks by ISRC or artist","tags":["Catalog"],"x-scope":"catalog:read"}},"/tracks/{id}":{"get":{"description":"Needs the `catalog:read` right.","operationId":"getTracksById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Track"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"One track","tags":["Catalog"],"x-scope":"catalog:read"}},"/tracks/{id}/plays":{"get":{"description":"Needs the `stats:read` right.","operationId":"getTracksByIdPlays","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"7, 28 or 90. 28 by default, at most what the plan keeps.","in":"query","name":"days","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/TrackPlays"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"A track's plays per day, or per week over 90 days","tags":["Statistics"],"x-scope":"stats:read"}},"/usage":{"get":{"description":"Needs the `organization:read` right.","operationId":"getUsage","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Usage"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Artists, seats, requests and endpoints used against the plan","tags":["Organization"],"x-scope":"organization:read"}},"/webhooks":{"get":{"description":"Needs the `webhooks:read` right.","operationId":"getWebhooks","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WebhookEndpoint"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Webhook endpoints","tags":["Webhooks"],"x-scope":"webhooks:read"},"post":{"description":"Needs the `webhooks:write` right.","operationId":"postWebhooks","parameters":[{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WebhookEndpoint"}},"required":["data"],"type":"object"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Add an endpoint; the secret is in this answer only","tags":["Webhooks"],"x-scope":"webhooks:write"}},"/webhooks/deliveries/{id}/redeliver":{"post":{"description":"Needs the `webhooks:write` right.","operationId":"postWebhooksDeliveriesByIdRedeliver","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WebhookDelivery"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Send a delivery again","tags":["Webhooks"],"x-scope":"webhooks:write"}},"/webhooks/{id}":{"delete":{"description":"Needs the `webhooks:write` right.","operationId":"deleteWebhooksById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Deleted"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Delete an endpoint","tags":["Webhooks"],"x-scope":"webhooks:write"},"get":{"description":"Needs the `webhooks:read` right.","operationId":"getWebhooksById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WebhookEndpoint"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"One endpoint","tags":["Webhooks"],"x-scope":"webhooks:read"},"patch":{"description":"Needs the `webhooks:write` right.","operationId":"patchWebhooksById","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WebhookEndpoint"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Change events, artists or address, pause or resume","tags":["Webhooks"],"x-scope":"webhooks:write"}},"/webhooks/{id}/deliveries":{"get":{"description":"Needs the `webhooks:read` right.","operationId":"getWebhooksByIdDeliveries","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"The next_cursor of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Items per page, 50 by default, at most 200.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WebhookDelivery"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Deliveries to an endpoint, newest first","tags":["Webhooks"],"x-scope":"webhooks:read"}},"/webhooks/{id}/rotate-secret":{"post":{"description":"Needs the `webhooks:write` right.","operationId":"postWebhooksByIdRotateSecret","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WebhookEndpoint"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"New secret; the old one still signs for 24 hours","tags":["Webhooks"],"x-scope":"webhooks:write"}},"/webhooks/{id}/test":{"post":{"description":"Needs the `webhooks:write` right.","operationId":"postWebhooksByIdTest","parameters":[{"description":"The object's id.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Repeating the request with the same key within 24 hours returns the first answer.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WebhookDelivery"}},"required":["data"],"type":"object"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is not valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No valid API key"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A right or the plan is missing"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found, or not visible to this key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; see Retry-After"}},"summary":"Send a ping event","tags":["Webhooks"],"x-scope":"webhooks:write"}}},"security":[{"bearer":[]}],"servers":[{"url":"https://public-api.labelsentry.com/v1"}],"tags":[{"description":"The organization the key belongs to, its plan and usage.","name":"Organization"},{"description":"The roster: add, remove and verify artists.","name":"Artists"},{"description":"Releases and tracks with ISRCs, labels and whether they play, and proofs of rights.","name":"Catalog"},{"description":"What changed on a profile or in the catalog, with the values before and after.","name":"Changes"},{"description":"The feed of the last 30 days, the same events webhooks send.","name":"Events"},{"description":"Streams, listeners and followers over time (statistics beta).","name":"Statistics"},{"description":"Where alerts go and which changes go where.","name":"Alerts"},{"description":"Endpoints that receive signed events (Business).","name":"Webhooks"},{"description":"Metadata Lookup, Track by ISRC and ISRC by Track (Business).","name":"Tools"},{"description":"Members, invites and the audit log.","name":"Team"},{"description":"Files of changes, catalog and statistics, built in the background.","name":"Exports"}],"x-scopes":{"alerts:read":"Alert destinations, rules and sent alerts","alerts:write":"Create, change, test and delete destinations and rules","artists:read":"Artists, profiles and where their verification stands","artists:write":"Search, add, import and remove artists","audit:read":"The organization's audit log","catalog:read":"Releases, tracks, ISRCs, labels and proofs of rights","catalog:write":"Add, change and remove proofs of rights on releases","changes:read":"Changes with their details, and the event feed","changes:write":"Mark changes as resolved or open them again","exports:write":"Create exports of changes, catalog and statistics","members:read":"Members with role and email, open invites","members:write":"Invite, change roles, remove members","organization:read":"Name, plan, usage and limits of the organization","organization:write":"Change the organization's name","stats:read":"Streams, listeners, followers and song courses","tools:use":"Metadata Lookup, Track by ISRC and ISRC by Track","verification:write":"Start and check the verification of artists","webhooks:read":"Webhook endpoints and their deliveries","webhooks:write":"Create webhook endpoints, rotate secrets, send again"},"x-webhook-events":[{"description":"A change is confirmed. Sent for every change, alongside the more specific events.","type":"change.confirmed"},{"description":"Someone marked a change as resolved.","type":"change.resolved"},{"description":"A track can no longer be played.","type":"track.offline"},{"description":"A track that was offline plays again.","type":"track.restored"},{"description":"A new release appeared on a profile.","type":"release.detected"},{"description":"A release disappeared.","type":"release.removed"},{"description":"A release that had disappeared is back.","type":"release.restored"},{"description":"An artist was added to the roster.","type":"artist.added"},{"description":"An artist's verification went through and monitoring runs.","type":"artist.verified"},{"description":"An artist's verification could not be confirmed.","type":"artist.verification_failed"},{"description":"An artist was removed from the roster.","type":"artist.removed"},{"description":"80 percent of the plan's artists are in use.","type":"usage.limit_near"},{"description":"A requested export is ready to download.","type":"export.ready"},{"description":"A test sent from the dashboard or the API.","type":"ping"}]}
