naftiko: 1.0.0-alpha2 info: label: TIDAL User Collections API — Artists description: TIDAL User Collections API — Artists. 5 operations. Self-contained Naftiko capability covering one TIDAL business surface. tags: - TIDAL - Music - userCollectionArtists created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: TIDAL_ACCESS_TOKEN: TIDAL_ACCESS_TOKEN capability: consumes: - type: http namespace: user-collections-artists baseUri: https://openapi.tidal.com description: TIDAL User Collections API — Artists business capability. Self-contained, no shared references. resources: - name: userCollectionArtists-id path: /userCollectionArtists/{id} operations: - name: getusercollectionartists method: GET description: Get single userCollectionArtist. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: User collection artists id. Use `me` for the authenticated user's resource required: true - name: countryCode in: query type: string description: ISO 3166-1 alpha-2 country code required: false - name: locale in: query type: string description: BCP 47 locale (e.g., en-US, nb-NO, pt-BR). Defaults to en-US if not provided or unsupported. required: false - name: include in: query type: array description: 'Allows the client to customize which related resources should be returned. Available options: items, owners' required: false - name: userCollectionArtists-id-relationships-items path: /userCollectionArtists/{id}/relationships/items operations: - name: deleteusercollectionartists method: DELETE description: Delete from items relationship ("to-many"). outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: User collection artists id. Use `me` for the authenticated user's resource required: true - name: getusercollectionartists method: GET description: Get items relationship ("to-many"). outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: User collection artists id. Use `me` for the authenticated user's resource required: true - name: page[cursor] in: query type: string description: Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified required: false - name: sort in: query type: array description: Values prefixed with "-" are sorted descending; values without it are sorted ascending. required: false - name: countryCode in: query type: string description: ISO 3166-1 alpha-2 country code required: false - name: locale in: query type: string description: BCP 47 locale (e.g., en-US, nb-NO, pt-BR). Defaults to en-US if not provided or unsupported. required: false - name: include in: query type: array description: 'Allows the client to customize which related resources should be returned. Available options: items' required: false - name: postusercollectionartists method: POST description: Add to items relationship ("to-many"). outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: User collection artists id. Use `me` for the authenticated user's resource required: true - name: countryCode in: query type: string description: ISO 3166-1 alpha-2 country code required: false - name: body in: body type: object description: JSON:API document request body. required: true - name: userCollectionArtists-id-relationships-owners path: /userCollectionArtists/{id}/relationships/owners operations: - name: getusercollectionartists method: GET description: Get owners relationship ("to-many"). outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: User collection artists id. Use `me` for the authenticated user's resource required: true - name: include in: query type: array description: 'Allows the client to customize which related resources should be returned. Available options: owners' required: false - name: page[cursor] in: query type: string description: Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified required: false authentication: type: bearer value: '{{env.TIDAL_ACCESS_TOKEN}}' placement: header header: Authorization prefix: 'Bearer ' exposes: - type: rest namespace: user-collections-artists-rest port: 8080 description: REST adapter for TIDAL User Collections API — Artists. One Spectral-compliant resource per consumed operation, prefixed with /v2. resources: - path: /v2/userCollectionArtists/{id} name: userCollectionArtists-id description: REST surface for userCollectionArtists-id. operations: - method: GET name: getusercollectionartists description: Get single userCollectionArtist. call: user-collections-artists.getusercollectionartists with: id: rest.path.id countryCode: rest.query.countryCode locale: rest.query.locale include: rest.query.include outputParameters: - type: object mapping: $. - path: /v2/userCollectionArtists/{id}/relationships/items name: userCollectionArtists-id-relationships-items description: REST surface for userCollectionArtists-id-relationships-items. operations: - method: DELETE name: deleteusercollectionartists description: Delete from items relationship ("to-many"). call: user-collections-artists.deleteusercollectionartists with: id: rest.path.id outputParameters: - type: object mapping: $. - method: GET name: getusercollectionartists description: Get items relationship ("to-many"). call: user-collections-artists.getusercollectionartists with: id: rest.path.id page[cursor]: rest.query.page[cursor] sort: rest.query.sort countryCode: rest.query.countryCode locale: rest.query.locale include: rest.query.include outputParameters: - type: object mapping: $. - method: POST name: postusercollectionartists description: Add to items relationship ("to-many"). call: user-collections-artists.postusercollectionartists with: id: rest.path.id countryCode: rest.query.countryCode body: rest.body outputParameters: - type: object mapping: $. - path: /v2/userCollectionArtists/{id}/relationships/owners name: userCollectionArtists-id-relationships-owners description: REST surface for userCollectionArtists-id-relationships-owners. operations: - method: GET name: getusercollectionartists description: Get owners relationship ("to-many"). call: user-collections-artists.getusercollectionartists with: id: rest.path.id include: rest.query.include page[cursor]: rest.query.page[cursor] outputParameters: - type: object mapping: $. - type: mcp namespace: user-collections-artists-mcp port: 9090 transport: http description: MCP adapter for TIDAL User Collections API — Artists. One tool per consumed operation. tools: - name: tidal-getusercollectionartists description: Get single userCollectionArtist. hints: readOnly: true destructive: false idempotent: true call: user-collections-artists.getusercollectionartists with: id: tools.id countryCode: tools.countryCode locale: tools.locale include: tools.include outputParameters: - type: object mapping: $. - name: tidal-deleteusercollectionartists description: Delete from items relationship ("to-many"). hints: readOnly: false destructive: true idempotent: true call: user-collections-artists.deleteusercollectionartists with: id: tools.id outputParameters: - type: object mapping: $. - name: tidal-getusercollectionartists description: Get items relationship ("to-many"). hints: readOnly: true destructive: false idempotent: true call: user-collections-artists.getusercollectionartists with: id: tools.id page[cursor]: tools.page[cursor] sort: tools.sort countryCode: tools.countryCode locale: tools.locale include: tools.include outputParameters: - type: object mapping: $. - name: tidal-postusercollectionartists description: Add to items relationship ("to-many"). hints: readOnly: false destructive: false idempotent: false call: user-collections-artists.postusercollectionartists with: id: tools.id countryCode: tools.countryCode body: tools.body outputParameters: - type: object mapping: $. - name: tidal-getusercollectionartists description: Get owners relationship ("to-many"). hints: readOnly: true destructive: false idempotent: true call: user-collections-artists.getusercollectionartists with: id: tools.id include: tools.include page[cursor]: tools.page[cursor] outputParameters: - type: object mapping: $.