API Documentation
Learn how to utilize our API to maximize your productivity
Authentication
All API requests must include your API key in the key header:
Authorization Header
key: YOUR_API_KEY
Endpoints
POST
/files/
Upload files to the E-Z.host API
Auth Required
Examples
curl
curl -X POST 'https://api.e-z.host/files' \
-H 'key: YOUR_API_KEY' \
-F 'file=@/path/to/file'
Response
json
{
"success": true,
"message": "File Uploaded",
"imageUrl": "https://i.e-z.host/file.jpg",
"rawUrl": "https://r2.e-z.host/uuid/file.jpg",
"deletionUrl": "https://api.e-z.host/files/delete?key=random-deletion-key"
}
POST
/shortener/
Shorten links with the E-Z.host API
Auth Required
Examples
curl
curl -X POST https://api.e-z.host/shortener \
-H "Content-Type: application/json" \
-H "key: YOUR_API_KEY" \
-d '{"url": "https://example.com"}'
Response
json
{
"success": true,
"message": "URL Shortened",
"shortenedUrl": "https://i.e-z.gg/s/xyz123",
"deletionUrl": "https://i.e-z.gg/shortener/delete?key=random-deletion-key"
}
POST
/paste/
Create pastes with the E-Z.host API
Auth Required
Examples
curl
curl -X POST https://api.e-z.host/paste \
-H 'key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"text":"contents of the paste",
"title":"title of the paste",
"description":"description for the paste",
"language":"any supported language"
}'
Response
json
{
"success": true,
"message": "Paste Created",
"pasteUrl": "https://i.e-z.gg/p/xyz123",
"rawUrl": "https://i.e-z.gg/p/raw/xyz123",
"deletionUrl": "https://api.e-z.host/paste/delete?key=random-deletion-key"
}
Need Help?
If you need assistance with our API, feel free to:
- • Ask our Discord community and staff
- • Email us at [email protected]
- • Check our FAQ