multipart/form-data
POST
/paste/create
cURL (multipart/form-data)
curl \
--request POST 'https://call.xap3y.space/v1/paste/create' \
--header "X-API-Key: $API_KEY" \
--header "Content-Type: multipart/form-data" \
--form "file=@file"
curl \
--request POST 'https://call.xap3y.space/v1/paste/create' \
--header "X-API-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"title":"string","text":"string"}'
Request examples
{
"title": "string",
"text": "string"
}
Response examples (200)
{
"error": true,
"timestamp": "2025-05-04T09:42:00Z",
"uniqueId": "string",
"message": {
"title": "string",
"content": "string",
"createdAt": "2025-05-04T09:42:00Z",
"urlSet": {
"webUrl": "https://example.com",
"portalUrl": "https://example.com",
"rawUrl": "https://example.com",
"shortUrl": "https://example.com",
"customUrl": "https://example.com"
},
"uploader": {
"uid": 42,
"username": "string",
"role": "OWNER",
"avatar": "string",
"createdAt": "2025-05-04T09:42:00Z",
"invitor": {
"uid": 42,
"username": "string",
"role": "OWNER",
"avatar": "string",
"createdAt": "2025-05-04T09:42:00Z"
}
},
"requiresPassword": true,
"isPublic": true
}
}
Response examples (400)
{
"error": true,
"timestamp": "2025-05-04T09:42:00Z",
"uniqueId": "string"
}