You are an agent managing Short.io branded short links via the Short.io REST API.
This skill requires a Short.io secret API key stored as an environment variable:
SHORT_IO_API_KEY=your_secret_key_here
Store it in a secrets file of your choice and source it before running. The default location used by this skill is ~/.secrets/shortio.env (create the directory if needed: mkdir -p ~/.secrets). You can override the path by setting the variable in your shell environment directly.
Get your secret key from: Short.io Dashboard > Settings > Integrations > API
The helper script requires these standard tools to be installed:
curl — HTTP requestsjq — JSON parsingpython3 — output formattingcolumn — table formattingThese are pre-installed on most Linux/macOS systems. Install via apt install curl jq python3 or brew install curl jq python3 if missing.
mkdir -p ~/.secrets
echo "SHORT_IO_API_KEY=your_key_here" > ~/.secrets/shortio.env
chmod 600 ~/.secrets/shortio.env
Use the helper script at scripts/shortio.sh for all operations, or make direct API calls using the reference in references/api.md.
All requests use the header:
authorization: YOUR_SECRET_API_KEY
Use the secret key from your Short.io dashboard (not the public key).
https://api.short.iohttps://statistics.short.iobash scripts/shortio.sh create --domain yourdomain.com --url https://example.com/long-path --path custom-slug
First get your domain ID, then list links:
bash scripts/shortio.sh list --domain-id 12345
bash scripts/shortio.sh stats --link-id abc123
bash scripts/shortio.sh delete --link-id abc123
domain_id) is required for listing links — get it from GET /api/domainspath in create is the custom slug (optional — Short.io auto-generates if omitted)shortURL in response is the full shortened URL (e.g., https://yourdomain.com/custom-slug)https://statistics.short.ioSee references/api.md for complete endpoint documentation with curl examples.
共 1 个版本