Clipzy Online Clipboard

Step 1: Upload Encrypted Data

0calls

This is the first step of all processes. Your client application needs to prepare the encrypted data locally first, then call this endpoint to upload it. After success, you will get a unique ID for subsequent operations.

Note

What you send to this endpoint should beciphertext, not original text. Please refer to the JavaScript examples on the documentation homepage to learn how to encrypt on the client side.

Request body

Contains encrypted data and optional TTL.

compressedData
stringrequired

Required: Base64 string of encrypted and LZString compressed data. Please refer to the JS code example on the documentation homepage.

ttl
numberoptional

Optional: Retention time for the snippet (seconds). Positive numbers indicate seconds (maximum about 30 days), -1 indicates permanent storage. Default is 3600.

Response

200 / OK

Snippet created successfully! Returns the unique ID of the snippet.

JSON

400 / Bad Request

Request body missing, malformed, or invalid parameters.

JSON

413 /

Request body too large. Uploaded data (after compression) exceeds server limits.

JSON