Senbee URL Shortener
Senbee Logo

Senbee URL Shortener API

This API allows you to create and delete shortened URLs using simple HTTP requests.

1. Create a Shortened URL

Endpoint: POST https://senb.ee/

Headers:

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" }

2. Delete a Shortened URL

Endpoint: DELETE https://senb.ee/

Headers:

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" }