API Documentation
General information and examples on how to use our API.Endpoint: https://paste.rmly.dev/createPaste/api
Method: POST
General
The paste content is the request body.
The paste name (optional) is a URL parameter.
The paste password (optional) is a URL parameter.
Usage examples
Example using cURL:
$ curl -X POST 'https://paste.rmly.dev/createPaste/api?name=test123&password=test' -d "Hello, World!"
Example using Axios within Node.JS:
const axios = require('axios').default
async function createPaste(content, name, password) {
const response = await axios.post(`https://paste.rmly.dev/createPaste/api?name=${name}&password=${password}`, content)
console.log(response.data)
}
createPaste('Hello, World!', 'test123', 'test')
Example result:
{
"status": "success",
"password": "test",
"url": "https://paste.rmly.dev/1OeIi/test123"
}
Limitations
- The paste name cannot include other characters than a-z, A-Z, 0-9.
- The paste name cannot be greater than 32 characters.
- The paste password cannot be greater than 100 characters.
- The paste content cannot be greater than 100.000 characters.
- This API is limited to 10 requests in an interval of 10 minutes per IP address.