The ShortU REST API gives developers full programmatic access to link creation, statistics and management.
Base URL: https://stu.cm/api/v1/
Authentication: Pass your API token in the X-API-Token request header.
Main endpoints:
| Method | Endpoint | Description |
|---|---|---|
| POST | /shorten/ |
Shorten a single URL |
| POST | /shorten/bulk/ |
Shorten up to 100 URLs at once |
| GET | /links/ |
List all your links (paginated) |
| GET | /links/{code}/stats/ |
Get click statistics for a link |
| PATCH | /links/{code}/ |
Update a link's destination, title or status |
| DELETE | /links/{code}/ |
Delete a link |
Response format: All responses are JSON.
Interactive documentation: Try every endpoint live from the Swagger UI.
Getting started:
curl -X POST https://stu.cm/api/v1/shorten/ \
-H "X-API-Token: your_token" \
-H "Content-Type: application/json" \
-d '{"url": "https://your-long-url.com/page"}'