← Developers
Quick Start
Create your first short link in under 5 minutes.
1. Get Your Credentials
Log in to your dashboard and navigate to General Settings → API.
- Personal Access Token (PAT) — identifies you as the user
- Organization Secret Key — identifies your organization
- URL Group ID — found in URL Groups settings (typically "1" for default)
2. Make Your First Request
curl -X POST https://linkshor.com/api/create \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"organization_key": "YOUR_ORG_KEY",
"url_group_id": "1",
"url": "https://example.com/my-page"
}'
3. Get Your Short Link
A successful response returns:
{
"data": {
"id": 1,
"short_url": "https://yourdomain.com/abc123",
"url": "https://example.com/my-page",
"alias": "abc123",
"redirect_type": 301
},
"code": 0,
"errors": []
}