meshalive
Sign inStart free
API v1 Stable● All Systems 99.99% Live

Meshalive Developer Hub & REST API

Programmatically create high-speed short links, manage dynamic QR codes, inspect visitor analytics, and connect custom domains using standard JSON REST endpoints.

Base URL: https://api.meshalive.com/v1
Get API Token in Dashboard

Interactive API Console

Test the real public endpoint directly from your browser. Dispatches a live HTTP POST to https://api.meshalive.com/v1/shorten.
POST /v1/shorten

Quickstart Code Examples

Copy and run working code in your terminal or backend stack.
curl -X POST https://api.meshalive.com/v1/shorten \
  -H "Content-Type: application/json" \
  -d '{"url": "https://github.com/meshalive"}'

Authentication & Security

Meshalive uses standard Bearer token authentication. API tokens are generated from your Meshalive workspace dashboard under Settings → API Tokens. Tokens start with the prefix mshl_ and remain active until revoked.

API Tokens (Programmatic)

Use for backend scripts, CI/CD pipelines, bot automations, and webhook integrations.

Authorization: Bearer mshl_••••••••••••••••
Zero-Auth Public API

Directly call POST /v1/shorten from any client without passing any API key or login header. Rate limited to 10 req/min.

No Authorization header required

REST API Endpoints Reference

POST/v1/shorten
None (Public)
Create an instant short link anonymously without an account.
Request Spec
{"url": "https://example.com", "expires_in_hours": 720}
Example Response
{"slug": "a9k2z", "short_url": "https://msha.live/a9k2z"}
POST/v1/links
Bearer Token
Create a short link in your workspace with custom slug, title, and tags.
Request Spec
{"destination": "https://example.com", "slug": "promo", "title": "Summer Promo", "tags": ["social"]}
Example Response
{"id": "uuid", "slug": "promo", "destination": "https://example.com", "short_url": "https://msha.live/promo"}
GET/v1/links
Bearer Token
List workspace links with pagination, search, and archived status filters.
Request Spec
Query params: ?page=1&page_size=20&search=promo&archived=false
Example Response
{"links": [...], "total_count": 42, "page": 1, "page_size": 20}
PATCH/v1/links/:id
Bearer Token
Update link destination, title, tags, or archive status.
Request Spec
{"destination": "https://new-target.com", "title": "Updated", "archived": false}
Example Response
{"id": "uuid", "destination": "https://new-target.com", "archived": false}
DELETE/v1/links/:id
Bearer Token
Permanently delete a short link from the edge network.
Request Spec
No body required
Example Response
HTTP 204 No Content
GET/v1/analytics/summary
Bearer Token
Fetch full click telemetry, time-series, country origins, and device breakdown.
Request Spec
Query params: ?period=30d (options: 7d, 30d, 90d)
Example Response
{"summary": {"total_clicks": 1420}, "clicks_by_day": [...], "countries": [...], "devices": [...]}
GET/v1/domains
Bearer Token
List custom branded domains and their DNS verification status.
Request Spec
No body required
Example Response
{"domains": [{"id": "uuid", "hostname": "go.yourbrand.com", "status": "active"}]}
POST/v1/domains
Bearer Token
Connect a new custom domain to your workspace.
Request Spec
{"hostname": "go.yourbrand.com"}
Example Response
{"id": "uuid", "hostname": "go.yourbrand.com", "status": "pending"}
POST/v1/report
None (Public)
Report a malicious or abusive short link for instant edge deactivation.
Request Spec
{"slug": "spam-link", "reason": "Phishing attempt"}
Example Response
{"status": "suspended", "message": "The reported link has been immediately deactivated."}

HTTP Status Codes & Error Formats

Error CodeHTTP StatusDescription
INVALID_URL400URL is missing or does not start with http:// or https://
UNSAFE_URL422URL failed Google Web Risk / Phishing / Malware safety scan
SLUG_TAKEN409The requested custom slug is already reserved by another link
RATE_LIMITED429IP rate limit exceeded (10 requests / minute on public shorten)
UNAUTHORIZED401Missing or invalid Bearer API token
LINK_NOT_FOUND404The requested link ID was not found in this workspace

Building something high-volume?

Check out our open source SDK examples and API specs on GitHub or connect with our developer community.