Getting Started

Kliqs API lets you create shortlinks from your own app, website, bot, or backend system.

Official Kliqs domains

  • api.kliqs.meofficial API endpoint.
  • kliqs.mepublic shortlinks & Bio Pages.
  • home.kliqs.memarketing website.
  • dash.kliqs.medashboard.
  • docs.kliqs.medocumentation.
  1. Create a Kliqs account.
  2. Open Dashboard → Settings → API Keys.
  3. Create an API key.
  4. Copy the API key once — it won't be shown again.
  5. Send requests to POST https://api.kliqs.me/api/v1/links using Bearer authentication.

Create API Key

  1. Sign in to your Kliqs account.
  2. Open Dashboard → Settings → API Keys.
  3. Click Create API Key and give it a name (e.g. "production-server").
  4. Copy the key shown — it is displayed only once.
  5. Store the key in your backend environment variable (never in the frontend).
  6. Revoke the key anytime from the same page if leaked or unused.
Before connecting your own backend, you can test your API key from Dashboard → Settings → API Keys → API Self-Test.

Authentication

Include your API key in the Authorization header on every request.

Authorization: Bearer YOUR_API_KEY
curl -X POST "https://api.kliqs.me/api/v1/links" \
  -H "Authorization: Bearer kliqs_sk_live_xxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://marketku.id/products/8f3f4f3f-1231-1231-1231"}'
Do not expose your API key in frontend, browser, or public apps. Use your API key from your backend/server. Revoke leaked API keys immediately.

Request Body

FieldTypeRequiredDescription
urlstringYesDestination URL (http/https).
slugstringOptionalCustom slug. Random if empty.
titlestringOptionalLink title.
descriptionstringOptionalLink description.
expires_atISO datetimeOptionalExpiry timestamp (must be in the future).
passwordstringOptionalPassword-protect the link (stored hashed).

Response Format

{
  "success": true,
  "data": {
    "id": "link_uuid",
    "short_code": "vps-murah",
    "short_url": "https://kliqs.me/vps-murah",
    "destination_url": "https://marketku.id/products/8f3f4f3f-1231-1231-1231",
    "title": "VPS Murah",
    "created_at": "2026-06-07T00:00:00Z"
  }
}

Error Codes

StatusErrorDescription
401UNAUTHORIZEDMissing Authorization header.
401INVALID_API_KEYAPI key is invalid.
401REVOKED_API_KEYAPI key has been revoked.
400INVALID_URLURL is not valid.
400RESERVED_SLUGSlug is reserved.
409SLUG_ALREADY_EXISTSSlug already taken.
403SHORTLINK_LIMIT_REACHEDPlan shortlink limit reached.
429API_LIMIT_REACHEDMonthly API request limit reached.
500INTERNAL_ERRORServer error.

Rate Limits

PlanRequests / monthMax shortlinks
Free305
Starter1.00050
Pro10.000200
Business30.000500
  • Usage resets at the start of each month (UTC).
  • Requests rejected for invalid API keys do not count.
  • Successful requests count toward the monthly limit.
  • When the limit is reached, the API returns HTTP 429.

E-commerce Integration

When a new product is created in your e-commerce system, call the Kliqs API from your backend and store the returned short URL.

  1. Product created.
  2. Backend builds the long product URL.
  3. Backend sends the URL to the Kliqs API.
  4. Kliqs returns the short_url.
  5. Backend stores short_url on the product record.
  6. WhatsApp bot sends the product update with the short_url.
{
  "url": "https://marketku.id/products/PRODUCT_UUID",
  "slug": "produk-sepatu-001",
  "title": "Produk Sepatu"
}

WhatsApp Bot Flow

After receiving the short URL, your WhatsApp bot can send a cleaner product update message.

New product available:
VPS Murah
https://kliqs.me/vps-murah

Best Practices

  • Always call the API from your backend, not the frontend.
  • Keep your API key secret.
  • Use a custom slug only when needed.
  • Handle 409 slug conflict errors.
  • Store the returned short_url in your database.
  • Retry safely only for 5xx errors.
  • Do not spam API requests.
  • Revoke leaked keys immediately.

FAQ

Can the Free plan use the API?

Yes. Free plan gets 30 API requests per month.

Can I see my API key again after creating it?

No. The API key is shown only once at creation. Create a new one if you lose it.

Do API-created links appear in the dashboard?

Yes. Links are stored in the same table and appear under Dashboard → Links.