Skip to content

[Request] Add API endpoint for 'Thank' function on torrents #5466

@MiguelAngelLV

Description

@MiguelAngelLV

Description

Currently, the 'Thank' feature is only available via the Livewire button in the web interface. There is no endpoint in the public or internal API to thank a torrent using an API/external request.

Proposal

Add a RESTful API endpoint, e.g. POST /api/torrents/{id}/thank, to allow authenticated users to thank a torrent via HTTP request, mirroring the logic of the Livewire ThankButton component:

  • Prevent users from thanking their own uploads
  • Prevent duplicate thanks for the same torrent
  • Notify uploader following the current rules

Justification

  • Enables integrations with mobile apps and third-party tools
  • Developers and users can interact with this feature from external applications
  • Ensures a consistent experience across all clients

Expected Flow Example

  1. Authenticated user sends POST /api/torrents/{id}/thank request
  2. API performs validations (not own content, no duplicate thanks)
  3. API returns a success or error message

Thank you for considering this suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions