local_offer ๐Ÿš€ We just launched! Get 100% off Pro plans this weekend only.
REST API ยท v1 ยท Stable

Build with AsiaBio.Link

A clean, fast REST API to create short links, track analytics, and manage everything โ€” from any language, any platform.

link https://asiabio.link/api/v1 lock Bearer Auth data_object JSON

7

Endpoints

120

Req / min

< 100ms

Avg response

99.9%

Uptime SLA

1
vpn_key

Get your API Key

Sign up for a Pro plan, then generate a key from your dashboard.

2
code

Make your first call

Pass the key as a Bearer token. You'll get a JSON response in milliseconds.

3
check_circle

You're live

Create links, fetch analytics, automate anything โ€” at scale.

Quick Start

From zero to your first short link in under 60 seconds.

# 1. Create a short link
curl -X POST https://asiabio.link/api/v1/links \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-long-url.com/path",
    "title": "My First Link"
  }'

# 2. Response โ€” your new short link
# {
#   "success": true,
#   "data": {
#     "id": 1,
#     "short_url": "https://asiabio.link/AbCd12",
#     "clicks": 0
#   }
# }

Authentication

Every request must include your API key. Use the Authorization header โ€” it's the most secure method.

check_circle
Recommended ยท Authorization header
Authorization: Bearer {key}
info
Supported ยท Custom header
X-API-Key: {key}
warning
Avoid in prod ยท Query parameter
?api_key={key}
info
Where do I find my API key?

Go to Dashboard โ†’ API Access. If you don't have a key yet, click "Generate API Key". Keys start with ab_live_.

Rate Limits

Limits protect the API for everyone. Two separate limits apply to all requests.

Global Request Limit

Applies to every endpoint

120

requests per minute ยท resets every 60 seconds

Monthly Link Creation

Applies to POST /links only

Plan

check usage via GET /me โ†’ links_this_month

When rate limited, the API returns:

{
  "error": true,
  "code": "MONTHLY_LIMIT_REACHED",
  "message": "You have reached your monthly link creation limit of 50.",
  "status": 429,
  "docs": "https://asiabio.link/api-docs"
}

Error Codes

All errors share a consistent structure with a machine-readable code and a plain-English message that explains what went wrong and how to fix it.

Error envelope:

{
  "error": true,
  "code": "MACHINE_READABLE_CODE",
  "message": "A plain-English description of the problem and how to fix it.",
  "status": 401,
  "docs": "https://asiabio.link/api-docs"
}
HTTP Error Code When it happens
401 MISSING_API_KEY No key was provided in the request.
401 INVALID_API_KEY The key is wrong, expired, or revoked.
403 ACCOUNT_SUSPENDED Your account has been suspended by an admin.
403 PLAN_RESTRICTION API access is not included in your current plan.
403 FEATURE_NOT_AVAILABLE The field requires a plan feature (e.g. custom_codes, scheduling).
403 LINK_SUSPENDED The link was suspended by an admin โ€” read-only.
404 LINK_NOT_FOUND No link with that ID exists on your account.
404 ENDPOINT_NOT_FOUND The URL path doesn't match any API route.
422 VALIDATION_ERROR A field is missing or invalid. Check the "errors" object.
422 CODE_TAKEN That custom short code is already in use.
422 DOMAIN_NOT_FOUND Custom domain not found or not active on your account.
429 MONTHLY_LIMIT_REACHED Monthly link creation cap reached. Upgrade or wait for reset.
GET /api/v1/me

Returns your account details and current plan usage. Use this to check remaining monthly link quota and available features before making link creation requests.

cURL Example

curl https://asiabio.link/api/v1/me \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

200 OK
{
  "success": true,
  "data": {
    "id": 1,
    "name": "John Doe",
    "email": "john@example.com",
    "plan": "pro",
    "plan_expires_at": "2026-12-31T23:59:59+00:00",
    "links_this_month": 12,
    "monthly_link_limit": 500,
    "features": {
      "custom_codes": true,
      "custom_domain": true,
      "api_access": true,
      "scheduling": true,
      "analytics_days": 0
    },
    "created_at": "2026-01-15T08:00:00+00:00"
  }
}

Start Building

Integrate in minutes

Generate your API key from the dashboard and make your first call โ€” no SDK required.