Developers
Developers
Everything you do in the Shortn app can also be done from your own code: create and manage links, read their clicks, send the leads and sales they bring, and run the workspaces, teams, tags, report rules and custom domains around them. This section explains how to build an integration that works well; the API reference lists every endpoint and field.
Choose how to integrate
- The REST API, from any language. Plain HTTPS and JSON at
https://app.shortn.link/api/v1, authenticated with an API key. Use it with whatever HTTP client your stack already has; nothing else is required. Start with the quickstart. - An official SDK. Libraries for Go, JavaScript and TypeScript, Python, PHP and Ruby wrap the same API: they send the key, build the URLs, turn errors into exceptions and retry what is safe to retry. They are optional; the API works the same without them.
- No code at all. Some integrations are configuration only:
- the capture script keeps the click id on your website so your conversions can be attributed;
- payment provider connectors report sales from Stripe and Dodo Payments for you;
- report destinations deliver reports and alerts to email, Slack, Discord, Microsoft Teams or a webhook of your own.
In this section
- Quickstart — create a key and make your first requests in a few minutes.
- API keys — choose the right kind of key, keep it safe, rotate it and revoke it.
- Making requests — conventions, pagination, errors, rate limits, retries and test mode, and a checklist before you go live.
- SDKs — install an official library and see the same calls in each language.
The API reference documents each endpoint: its scope, parameters, responses and errors.
Last updated on