--- name: short-url description: Create short URLs via the AceDataCloud API. Use when a user asks to shorten a web address for sharing; submit one destination per request. license: Apache-2.0 metadata: author: acedatacloud version: "1.0" compatibility: Requires ACEDATACLOUD_API_TOKEN in the environment (see _shared/authentication.md). Optionally pair with mcp-shorturl for tool-use. --- # Short URL Service Create short URLs through AceDataCloud's URL shortening API. > **Setup:** See [authentication](../_shared/authentication.md) for token setup. ## Quick Start ```bash curl -X POST https://api.acedata.cloud/shorturl \ -H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"content": "https://example.com/very-long-url-path?with=params"}' ``` ## Workflows ### 1. Create a Short URL ```json POST /shorturl { "content": "https://example.com/article/2024/awesome-content" } ``` Response: ```json { "data": { "url": "https://suro.id/abc123" }, "success": true } ``` ## Parameters | Parameter | Required | Description | |-----------|----------|-------------| | `content` | Yes | The original long URL to shorten | ## Gotchas - Short URLs use the `suro.id` domain - Results are returned synchronously — no task polling needed - Submit one valid HTTP or HTTPS destination per request in `content`; the public API does not document a batch request, custom slug, or expiration parameter - Send only URLs suitable for sharing; do not send credentials, private links, or confidential query parameters - If a creation request times out, check request history before deciding whether to submit it again > **MCP:** `pip install mcp-shorturl` | Hosted: `https://shorturl.mcp.acedata.cloud/mcp` | See [all MCP servers](../_shared/mcp-servers.md)