Shortix API Reference

Shorten links, query stats, and manage URLs programmatically from any app or script.

Base URL https://shortix.xyz/api All responses are JSON • CORS enabled
INFO
Authentication
Bearer Token & API Key
Two authentication methods: Firebase ID token for users, or static API Key for server-to-server integrations.
POST
Shorten a URL
/api/shorten
Create a new short link with an optional custom alias. Returns the shortened URL and full metadata.
GET
Get Link Info
/api/info/:code
Retrieve metadata for any short link by its code — original URL, click count, creation date, and more.
GET
Global Stats
/api/stats
Fetch platform-wide counters: total links created, total clicks, custom links, and image conversions.
PATCH
Update a Link
/api/link/:code
Update the tag, max clicks, or expiry of an existing link. Only the owner can edit their links.
DELETE
Delete a Link
/api/link/:code
Permanently remove a short link. Token users can only delete their own links; API key users can delete any link.