These endpoints allow you to manage Moonlight clients that have been paired with Sunshine.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LizardByte/Sunshine/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/clients/list
Get the list of all paired clients.Authentication
RequiredResponse
Always
true for successful requestsExample Request
Example Response
Notes
- Clients are paired through the Moonlight pairing process
- Each client is identified by its UUID
- Client names are set during the pairing process
POST /api/clients/unpair
Unpair a specific client by UUID.Authentication
RequiredRequest Headers
Request Body
The UUID of the client to unpair
Response
Whether the unpair operation was successful
Example Request
Example Response
Notes
- The unpaired client will need to go through the pairing process again to reconnect
- If the UUID doesn’t exist, the operation will still return success
- The client’s certificate is removed from the server
POST /api/clients/unpair-all
Unpair all clients and terminate any active streaming sessions.Authentication
RequiredRequest Headers
Response
Always
true for successful requestsExample Request
Example Response
Notes
- This removes all paired client certificates from the server
- Any active streaming session is terminated immediately
- All clients will need to re-pair to connect again
- The request body can be empty JSON
{}but the Content-Type header is required - Use this endpoint carefully as it affects all paired clients
Client Pairing Flow
While pairing is typically done through the Moonlight client UI, you can also use the API:- Start Pairing: The Moonlight client initiates pairing by sending a PIN
- Submit PIN: Use
POST /api/pinto submit the PIN and client name (see Configuration endpoints) - Complete: If the PIN matches, the client is paired and added to the list

