shorrrt.com

Pro Plan

shorrrt.com REST API

Integrate shorrrt.com into your workflow, automation, or app. Authenticate using Authorization: Bearer <your_api_key>. Available on Pro plan only.

Base URL

https://shorrrt.com/api/v1

OpenAPI 3.1

Download the machine-readable API specification for code generators and API clients.

View openapi.json

Endpoints

  • GET /links — List all your short links
  • POST /links — Create a new short link
  • PATCH /links/:shortId — Update title or archived status
  • DELETE /links/:shortId — Delete a link by short ID
  • GET /links/:shortId/stats — Get click count for a link

Authentication

Include your API key in every request as a Bearer token:

Authorization: Bearer shr_your_api_key_here

Example — List Links

cURL request:

curl -H "Authorization: Bearer shr_your_key_here" \
     https://shorrrt.com/api/v1/links

Response:

{
  "links": [
    {
      "id": 1,
      "shortId": "abc123",
      "originalUrl": "https://example.com",
      "title": "My link",
      "isCustom": false,
      "archived": false,
      "createdAt": "2025-01-01T00:00:00.000Z"
    }
  ]
}

Example — Create Link

curl -X POST \
     -H "Authorization: Bearer shr_your_key_here" \
     -H "Content-Type: application/json" \
     -d '{"originalUrl":"https://example.com","customSlug":"my-link"}' \
     https://shorrrt.com/api/v1/links

Response (201):

{
  "id": 2,
  "shortId": "my-link",
  "originalUrl": "https://example.com",
  "shortUrl": "https://shorrrt.com/my-link",
  "createdAt": "2025-01-01T00:00:00.000Z"
}

Rate Limits

60 requests per minute per API key. Exceeding the limit returns HTTP 429.

Ready to integrate? Get your API key in Settings.

Get your API key in Settings