A self-hosted URL shortener.
Shorten URLs and serve them under your own short domain.
Shlink provides a REST API that can be used to integrate the short URLs management on any system or application.
All the requests return JSON-encoded responses and semantic status codes, so it should be easy to implement client apps that consume this API.
However, if an unexpected error occurs, the system could end returning HTML. To prevent this, always pass the Accept header with the application/json value.
This API supports CORS (Cross domain), automatically generating the Access-Control-* headers and managing OPTIONS requests, so it can be consumed from web clients hosted on different domains.
Follow the documentation in order to see how to manage errors and perform requests correctly.