API reference

Base URL: https://pico-ya5y.onrender.com


MethodPath
POST/v1/links
GET/v1/links
GET/v1/links/:id
PATCH/v1/links/:id
DELETE/v1/links/:id
GET/v1/links/:id/analytics
GET/v1/analytics/summary
GET/v1/links/:id/qrcode

Common attributes

idstringUnique Snowflake ID
short_codestringBase62 short code (7 chars)
long_urlstringOriginal URL
click_countintegerTotal click count
created_atISO 8601Creation timestamp
expires_atISO 8601 | nullExpiry timestamp
disabled_atISO 8601 | nullDisabled timestamp
tagsstring[]User-defined tags

Errors

The API returns conventional HTTP status codes. Errors include a JSON body with details:

{
  "detail": "Link not found",
  "status": 404
}
400Bad request — invalid input
401Unauthorized — missing or invalid API key
404Not found — resource does not exist
409Conflict — resource already exists
429Rate limit exceeded — slow down
500Server error — try again later

Next: Code examples

See the API in action with curl, Python, and JavaScript.

Read