The copy-paste.online
API provides a simple way to send and retrieve text or files. The API is structured around RESTful principles and uses standard HTTP response codes and verbs.
All API requests should be made to:
https://copy-paste.online/api/v1/
Purpose: Send text or files to the copy-paste.online
service.
Parameters:
text
: The text content you want to send.file
: The file you want to upload.Response:
A JSON object containing:
status
: Indicates the success or failure of the request.message
: Contains a unique identifier for the text or file sent.filepath
: (Optional) If a file was uploaded, this field contains the path to the uploaded file.Usage:
To send text:
curl -X POST -d "text=YourTextHere" https://copy-paste.online/api/v1/cpy
To send a file:
curl -X POST -F "file=@/path/to/your/file.txt" https://copy-paste.online/api/v1/cpy
If an error occurs during the request, the API will return a standard HTTP error code along with a message describing the error.