Create fast, reliable short URLs through a simple REST API.
- Generate short links instantly
- Optional expiry timestamps
- Webhook support for click events
- Developer-friendly and lightweight
curl --location 'https://api.myapi.rest/api/shorturl/generate' --header 'Authorization: Bearer <API_KEY>' --header 'Content-Type: application/json' --data '{
"long_url": "https://myapi.rest",
"expires_at": "2026-12-01T10:00:00Z"
}'Sample response:
{
"shorturl": "https://grc.pw/Z7hye8b"
}See the /docs folder for full usage guides, examples, errors, and endpoint details.
Language examples are available in the /examples directory, including:
- C#
- JavaScript
- Python
- PHP
- Postman Collection
This API is part of the broader myapi.rest developer suite.
For all APIs, documentation, and examples, visit: