Share clipboard between 💻 Linux and 📱 iOS
paru -Syu clipboard-go
systemctl --user daemon-reload
systemctl --user enable --now clipboard-go.service
- Copy: Copy Clipboard
- Paste: Paste Clipboard
The API provides functions to interact with the clipboard, including retrieving and setting clipboard contents. Requests are sent over HTTP in JSON format.
- Request Method:
GET
- Request Path:
/
Request Headers:
Parameter | Type | Description |
---|---|---|
Timestamp | string | UNIX timestamp (seconds) |
MD5 | string | Authentication MD5 hash |
Response:
- Success: 200 OK (returns clipboard content)
- Error:
- 403 Forbidden
- 500 Internal Server Error
- Request Method:
POST
- Request Path:
/
Request Headers:
Parameter | Type | Description |
---|---|---|
Timestamp | string | UNIX timestamp (seconds) |
MD5 | string | Authentication MD5 hash |
Request Body:
- Content Type:
application/json
- Example:
{ "data": "New clipboard content" }
Response:
- Success: 204 No Content
- Error:
- 400 Bad Request
- 403 Forbidden
- 500 Internal Server Error
- The client must include
Timestamp
andMD5
in the request headers. - The server validates the request's authenticity using the MD5 hash, calculated as follows:
MD5(timestamp + authPassword)