short-url · v1.0 · 2026-04-05 · sha256 394789dbf2f78c8d
short-url v1.0A
Immutable. This exact content is served forever at /api/v1/blob/394789dbf2f78c8d.
---
name: short-url
description: Create short URLs via AceDataCloud API. Use when generating shortened links for sharing, or batch-creating multiple short URLs at once. Supports custom slugs and expiration.
license: Apache-2.0
metadata:
author: acedatacloud
version: "1.0"
compatibility: Requires ACEDATACLOUD_API_TOKEN environment variable. Optionally pair with mcp-short-url for tool-use.
---
# Short URL Service
Create short URLs through AceDataCloud's URL shortening API.
## Authentication
```bash
export ACEDATACLOUD_API_TOKEN="your-token-here"
```
## 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 |
## MCP Server
```bash
pip install mcp-short-url
```
Or hosted: `https://short-url.mcp.acedata.cloud/mcp`
Key tools: `create_short_url`
## Gotchas
- Short URLs use the `suro.id` domain
- Results are returned synchronously — no task polling needed
- The `content` field must be a valid URL to shorten