This API allows you to create and delete shortened URLs using simple HTTP requests.
Endpoint: POST https://senb.ee/
Headers:
Content-Type: application/json
X-API-Key: YOUR_API_KEY
Request Body:
{ "url": "https://example.com" }
Example cURL Request:
curl -X POST https://senb.ee/ \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_API_KEY" \ -d '{"url": "https://example.com"}'
Response:
{ "short_url": "https://senb.ee/S3j8Mn" }
Endpoint: DELETE https://senb.ee/
Headers:
Content-Type: application/json
X-API-Key: YOUR_API_KEY
Request Body:
{ "short_code": "S3j8Mn" }
Example cURL Request:
curl -X DELETE https://senb.ee/ \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_API_KEY" \ -d '{"short_code": "S3j8Mn"}'
Response:
{ "success": "Shortened URL deleted" }