Shorterit API Documentation

Build automated URL workflows with Shorterit. This guide covers setup, authentication, and endpoint usage so you can integrate quickly and reliably.

URL Shortening API Key Access Analytics-Ready Links

Overview

Shorterit APIs allow you to generate short links programmatically. Start by creating an account and generating an API key in the dashboard.

Base URL

https://n2l.me/api/public

Content Type

application/json

Primary Method

POST

Environment

Production endpoint, accessible over HTTPS.

API Key Setup

To use authenticated endpoints, create your account at app.shorterit.com and generate an API key from the API section.

  1. Log in to your Shorterit account.
  2. Open the side menu and select API.
  3. Create a key name and set an expiry date.
  4. Copy and securely store the generated API key.
  5. Reuse or rotate keys later from the same API page.
Shorterit API key generation screen
Shorterit API key shown after creation
Shorterit API key listing page

Treat API keys like passwords. Do not expose keys in frontend code or public repositories.

API Dictionary

Endpoint reference with request body examples and response format guidance.

Endpoint https://n2l.me/api/public/addbasicurl
Description Create a short URL from an original target URL.

Request Body

{
  "originalUrl": "Target_URL"
}

Request Example

{
  "originalUrl": "https://google.com"
}

Typical Success Response

{
  "success": true,
  "shortUrl": "https://n2l.me/abc123",
  "originalUrl": "https://google.com"
}

Additional endpoint examples will be published here as they are finalized.

Example placeholder:
// Upcoming endpoint reference
// request/response examples will be added in this section.

Response Codes

Use these status codes as a baseline when handling API responses in your client applications.

Code Meaning Notes
200 Success Request processed and short URL generated.
400 Bad Request Invalid payload, missing required fields, or malformed URL.
401 Unauthorized Missing, expired, or invalid API credentials.
429 Too Many Requests Rate limit exceeded; retry after a cooldown period.
500 Server Error Unexpected internal error, retry or contact support if persistent.