Interactive API Console
Test the real public endpoint directly from your browser. Dispatches a live HTTP POST to
https://api.meshalive.com/v1/shorten.Quickstart Code Examples
Copy and run working code in your terminal or backend stack.
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 TokenCreate 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 TokenList 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 TokenUpdate 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 TokenPermanently delete a short link from the edge network.
Request Spec
No body required
Example Response
HTTP 204 No Content
GET/v1/analytics/summary
Bearer TokenFetch 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 TokenList 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 TokenConnect 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
Building something high-volume?
Check out our open source SDK examples and API specs on GitHub or connect with our developer community.