SDKs
Overview
Official TypeScript SDK for the Shorten.dev API.
Shorten provides an official TypeScript SDK that wraps the REST API with typed methods, automatic retries, and rate-limit handling.
Available SDK
Authentication
All SDKs authenticate using API keys. Create one at shorten.dev/api-keys. Keys are prefixed with sk_ and passed as a Bearer token.
API coverage
The SDK covers all 7 API endpoints:
| Method | Endpoint | SDK method |
|---|---|---|
POST | /links | links.create() |
GET | /links | links.list() |
GET | /links/{slug} | links.get() |
POST | /links/{slug}/revoke | links.revoke() |
POST | /links/bulk | links.bulkCreate() |
GET | /links/{slug}/analytics | analytics.get() |
GET | /usage | usage.get() |
More languages coming soon
We're working on official SDKs for Python, Go, and C#. If you need SDK support for another language, open a support ticket and let us know.