Shortzy logo SHORTZY
Shortzy logo SHORTZY Shorten Counter Pricing Wiki Blog Login Register
EN
English English Deutsch German 日本語 Japanese 한국어 Korean Français French العربية Arabic Español Spanish Português (Brasil) Portuguese (Brazil) Português (Portugal) Portuguese (Portugal) 简体中文 Chinese (Simplified) Русский Russian Bahasa Indonesia Indonesian

Privacy Choices

We use essential cookies by default. Optional analytics and ads are disabled until you choose.

Customize

← Back to Wiki

API

Programmatic create/stats/delete via token auth.

Last updated: February 18, 2026

Access model

  • API access is available on Pro plan only.
  • Generate and revoke API tokens in `My Links`.
  • Send token via `Authorization: Bearer <token>` or `X-API-Token` header.

Core methods

  • `POST /server/api.php` creates short links.
  • `GET /server/api.php?short_code=<code>` returns stats for a link.
  • `DELETE /server/api.php?short_code=<code>` marks a link as deleted.

Implementation notes

  • Validate aliases with `A-Za-z0-9_-` and keep length 3-32 chars.
  • Do not expose API tokens in client-side JavaScript.
  • Rotate tokens immediately if leaked in logs or screenshots.

Related pages

  • Create Links
  • Analytics
  • Plans and Billing

Shortzy

URL management platform for clean sharing, safer access, and measurable growth.

Create Link

Product

Shorten URL Link Counter Pricing My Links Wiki Blog

Account

Login Register Forgot Password Change Password Report Support About

Legal

Terms of Service Privacy Policy Data Rights Cookie Settings Robots Sitemap

© 2026 Shortzy. Built for marketing, product, and growth teams.