Tags API
Label short links with free-form tags for filtering and search
Tags are free-form string labels you can attach to any short link. A link can have multiple tags. You can then filter your link list by tag in the dashboard or via the Saved Views API. Tags are available on all plans.
Base URL
https://awsys.co
Authentication
All tag endpoints require a valid API key passed as a Bearer token. See the Authentication page for details.
Authorization: Bearer YOUR_API_KEY
Add Tags to a Link
POST /api/link/:short/tags
Adds one or more tags to a link. Tags are merged with any existing tags — duplicates are ignored.
Path parameters
| Parameter | Description |
|---|---|
short | The short code of the link (e.g. abc123) |
Request body
{
"tags": ["campaign-q3", "email", "social"]
}
| Field | Type | Required | Description |
|---|---|---|---|
tags | string[] | Yes | Array of tag strings to add to the link |
Response — 200 OK
{
"success": true,
"tags": ["campaign-q3", "email", "social"]
}
curl example
curl -X POST https://awsys.co/api/link/abc123/tags \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tags": ["campaign-q3", "email"]}'
Remove a Tag from a Link
DELETE /api/link/:short/tags/:tag
Removes a single tag from a link. URL-encode the tag name if it contains special characters.
Path parameters
| Parameter | Description |
|---|---|
short | The short code of the link |
tag | The exact tag string to remove (URL-encoded) |
Response — 200 OK
{
"success": true,
"tags": ["email", "social"]
}
curl example
curl -X DELETE https://awsys.co/api/link/abc123/tags/campaign-q3 \
-H "Authorization: Bearer YOUR_API_KEY"
Tags in Link Objects
When you retrieve a link via GET /api/link/:short or GET /api/user/links, the response includes a tags array. An empty array means no tags are set.
{
"short": "abc123",
"long": "https://example.com/landing-page",
"tags": ["campaign-q3", "email"],
"opened": 47
}
Error Codes
| Message | HTTP | Description |
|---|---|---|
Tags must be an array | 400 | The tags field must be a JSON array, not a string. |
Link not found | 404 | No link with that short code exists in your account. |
Access denied | 404 | The link exists but belongs to a different user. |