{"name":"短.在线","description":"短.在线 is a link shortener run by Arasaka Oy, a company in Finland. 短.在线 is in public beta and there is no SLA. Your statutory consumer rights are not affected. This Agent Card is a static discovery document. It does not expose an A2A message transport: there is no JSON-RPC, gRPC, or HTTP+JSON endpoint for sending messages or tasks. The preferred interface is MCP Streamable HTTP at https://xn--s7y.xn--3ds443g/mcp (POST only, protocol 2026-07-28). REST operations are the OpenAPI 3.1.0 document at https://xn--s7y.xn--3ds443g/openapi.json. Personal Agent Protocol discovery is https://xn--s7y.xn--3ds443g/.well-known/poppy.json. It names this MCP endpoint and the OpenAPI document. A Poppy-Session header is verified when present and is not account access. Streaming, push notifications, and an authenticated extended agent card are not supported.","supportedInterfaces":[{"url":"https://xn--s7y.xn--3ds443g/mcp","protocolBinding":"https://modelcontextprotocol.io/specification/2026-07-28/basic/transports","protocolVersion":"2026-07-28"},{"url":"https://xn--s7y.xn--3ds443g/openapi.json","protocolBinding":"https://spec.openapis.org/oas/v3.1.0","protocolVersion":"3.1.0"}],"provider":{"organization":"Arasaka Oy","url":"https://xn--s7y.xn--3ds443g"},"version":"1.7.0","documentationUrl":"https://xn--s7y.xn--3ds443g/en/docs","capabilities":{"streaming":false,"pushNotifications":false,"extendedAgentCard":false},"securitySchemes":{"oauth2":{"oauth2SecurityScheme":{"description":"Authorization code + PKCE S256 for a public client (no client secret). Token endpoint auth method is `none`. Flows are authorization code and refresh only: no client-credentials grant, no implicit grant, and no device code. An omitted scope grants `links:read` only. `links:disable` is granted only when explicitly requested. `analytics:read` is granted only when explicitly requested. Access tokens are sent as `Authorization: Bearer` on `POST /mcp` only and are bound to the canonical MCP resource. REST `/v1` does not accept them.","flows":{"authorizationCode":{"authorizationUrl":"https://xn--s7y.xn--3ds443g/oauth/authorize","tokenUrl":"https://xn--s7y.xn--3ds443g/oauth/token","scopes":{"links:create":"Create short links","links:read":"Read your links","links:update":"Edit your links, including changing where they redirect","links:disable":"Disable your links, so their short links and QR codes stop redirecting","analytics:read":"Read aggregate click statistics for your links","batches:create":"Create link batches"},"pkceRequired":true,"refreshUrl":"https://xn--s7y.xn--3ds443g/oauth/token"}},"oauth2MetadataUrl":"https://xn--s7y.xn--3ds443g/.well-known/oauth-authorization-server"}},"apiKey":{"httpAuthSecurityScheme":{"description":"Bearer API key (`Authorization: Bearer <key>`). Dashboard-minted scoped keys with `links:create`, `links:read`, `links:update`, `links:disable`, `analytics:read`, `batches:create`. Not a god-key / `*`. Not an OAuth access token. Accepted on REST `/v1` and on `POST /mcp`. A presented Bearer that does not verify is 401 and is not anonymous access. Missing scope → 403 INSUFFICIENT_SCOPE. Anonymous REST create remains available when the Authorization header is absent.","scheme":"bearer","bearerFormat":"APIKey"}},"sessionCookie":{"apiKeySecurityScheme":{"description":"Session cookie `duan_session` for the web app. Accepted on owner REST list, update, enable, and QR, and as optional account auth on REST create and batch. Required for POST /api/oauth/consent. Does not authorize POST /mcp. Not a public /v1 login route. Anonymous create does not require this cookie.","location":"cookie","name":"duan_session"}}},"defaultInputModes":["application/json"],"defaultOutputModes":["application/json"],"skills":[{"id":"shorten_url","name":"URL shortener","description":"Create one HTTP or HTTPS short link (URL shortener / 短网址). A registered account is required. Retry with the same idempotency_key. PREMIUM_ALIAS.","tags":["mcp","shorten_url"],"securityRequirements":[{"schemes":{"apiKey":{"list":["links:create"]}}},{"schemes":{"oauth2":{"list":["links:create"]}}}]},{"id":"shorten_urls","name":"Batch shorten","description":"Create several short links in one call, matched by client_ref. Partial success is allowed. A registered account is required.","tags":["mcp","shorten_urls"],"securityRequirements":[{"schemes":{"apiKey":{"list":["batches:create"]}}},{"schemes":{"oauth2":{"list":["batches:create"]}}}]},{"id":"get_link","name":"Get link","description":"Fetch one owned link by id. A registered account is required. For a public status check, use resolve_short_url.","tags":["mcp","get_link"],"securityRequirements":[{"schemes":{"apiKey":{"list":["links:read"]}}},{"schemes":{"oauth2":{"list":["links:read"]}}}]},{"id":"resolve_short_url","name":"Inspect short link","description":"Look up a 短.在线 code or short URL. Returns saved state, and the destination only when active. No account required. Does not look up other shorteners. Not a security verdict.","tags":["mcp","resolve_short_url"]},{"id":"create_qr","name":"QR code","description":"QR for an existing short link you own. For a new destination, call shorten_url first, then create_qr. Does not create a link or fetch the destination. Encodes the ASCII short link with ?s=qr, same as GET /v1/links/{id}/qr. image_url is not an API key, OAuth token, or session.","tags":["mcp","create_qr"],"outputModes":["application/json","image/png","image/svg+xml"],"securityRequirements":[{"schemes":{"apiKey":{"list":["links:read"]}}},{"schemes":{"oauth2":{"list":["links:read"]}}}]},{"id":"get_links","name":"List links","description":"List links this account owns. cursor and limit match GET /v1/links. Requires links:read.","tags":["mcp","get_links"],"securityRequirements":[{"schemes":{"apiKey":{"list":["links:read"]}}},{"schemes":{"oauth2":{"list":["links:read"]}}}]},{"id":"get_link_analytics","name":"Link analytics","description":"Aggregate click statistics. period is 7d, 30d, or 90d, ending yesterday. clicks counts every stored click row in the window, including bots, and is not a count of people. qr_clicks counts human QR-tagged clicks only. Counts under 5 fold into other. Country data: IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0. If you show country data, show this credit.","tags":["mcp","get_link_analytics"],"securityRequirements":[{"schemes":{"apiKey":{"list":["analytics:read"]}}},{"schemes":{"oauth2":{"list":["analytics:read"]}}}]},{"id":"update_link","name":"Update link","description":"Change the title or destination of a link you own. Requires links:update. Unverified email or an account under 7 days old can change the title only. Does not re-enable a link. PREMIUM_ALIAS_FROZEN.","tags":["mcp","update_link"],"securityRequirements":[{"schemes":{"apiKey":{"list":["links:update"]}}},{"schemes":{"oauth2":{"list":["links:update"]}}}]},{"id":"disable_link","name":"Disable link","description":"Disable a link you own: its short link and QR code stop redirecting. Requires links:disable. Idempotent.","tags":["mcp","disable_link"],"securityRequirements":[{"schemes":{"apiKey":{"list":["links:disable"]}}},{"schemes":{"oauth2":{"list":["links:disable"]}}}]},{"id":"begin_registration","name":"Connect account","description":"Fallback when the client cannot start OAuth. Returns a browser registration link. Does not create an account, accept a password, or accept terms.","tags":["mcp","begin_registration"]},{"id":"prepare_campaign_pack","name":"Prepare campaign pack","description":"Prepare short links and QR files from tabular rows you provide: assign item_id, create short links and QR codes; match each item to the row you provided so that each QR encodes the returned short link; and return downloadable files. Each PNG QR also has an SVG text resource at qr_files.svg_uri. resources/read returns that SVG as text so a client can save the file. Mixed per-item outcomes allowed. Rows you do not resubmit on recovery stay in the pack, and the result is the full pack. ready_to_share is true only when every row is checked and every file is present and generated. Registered account required.","tags":["mcp","prepare_campaign_pack"],"securityRequirements":[{"schemes":{"apiKey":{"list":["batches:create"]}}},{"schemes":{"oauth2":{"list":["batches:create"]}}}]},{"id":"get_campaign_pack","name":"Get campaign pack","description":"Return the full pack by campaign_id: every row, the spreadsheet, and every generated QR file. Each PNG QR also has an SVG text resource at qr_files.svg_uri. resources/read returns that SVG as text so a client can save the file. ready_to_share is true only when every row is checked and every file is present and generated. Registered account required.","tags":["mcp","get_campaign_pack"],"securityRequirements":[{"schemes":{"apiKey":{"list":["links:read"]}}},{"schemes":{"oauth2":{"list":["links:read"]}}}]},{"id":"retry_campaign_pack","name":"Retry campaign pack","description":"Retry failed item_id values in the same campaign_id and return the full pack (every row and every file), not only the retried row. Each PNG QR also has an SVG text resource at qr_files.svg_uri. resources/read returns that SVG as text so a client can save the file. Does not accept replacement rows and does not recreate items that already succeeded. ready_to_share is true only when every row is checked and every file is present and generated. Submit a corrected row with prepare_campaign_pack, recovery_campaign_id, and the same item_id. Registered account required.","tags":["mcp","retry_campaign_pack"],"securityRequirements":[{"schemes":{"apiKey":{"list":["batches:create"]}}},{"schemes":{"oauth2":{"list":["batches:create"]}}}]},{"id":"save_campaign_setup","name":"Save campaign setup","description":"Save reusable column mappings and output format; does not copy link identities. Registered account required.","tags":["mcp","save_campaign_setup"],"securityRequirements":[{"schemes":{"apiKey":{"list":["links:read"]}}},{"schemes":{"oauth2":{"list":["links:read"]}}}]},{"id":"apply_campaign_setup","name":"Apply campaign setup","description":"Apply a setup to a new campaign or explicit recovery. New campaigns get new identities. Registered account required.","tags":["mcp","apply_campaign_setup"],"securityRequirements":[{"schemes":{"apiKey":{"list":["batches:create"]}}},{"schemes":{"oauth2":{"list":["batches:create"]}}}]},{"id":"delete_campaign_pack","name":"Delete campaign pack","description":"Delete a campaign pack you own, and its files. After delete, the pack's short links and QR codes stay active and are still listed under your links. The pack's files can't be downloaded again. To get the files again, prepare the pack again, which creates new short links. You can only delete your own packs; an id that belongs to another account is not deleted. Registered account required.","tags":["mcp","delete_campaign_pack"],"securityRequirements":[{"schemes":{"apiKey":{"list":["batches:create"]}}},{"schemes":{"oauth2":{"list":["batches:create"]}}}]},{"id":"delete_campaign_setup","name":"Delete campaign setup","description":"Delete a saved campaign setup you own. Another account's id is not deleted. Registered account required.","tags":["mcp","delete_campaign_setup"],"securityRequirements":[{"schemes":{"apiKey":{"list":["batches:create"]}}},{"schemes":{"oauth2":{"list":["batches:create"]}}}]},{"id":"createLink","name":"Create a short link","description":"Creates a short URL. Anonymous callers share rate limits with the web create form. Session cookie and API key are optional for basic create. With either, the link belongs to that account and counts toward its monthly limit. Verify your email to raise your limit. Request body must include **exactly one** of `url` or `longUrl` (OpenAPI `oneOf`). Optional `alias` / `customSlug`: if both are sent they must match (case-insensitive); otherwise **409** `FIELD_CONFLICT`. User aliases are folded to lowercase before persistence. A custom alias requires a verified email: session or user API key → **403** `EMAIL_UNVERIFIED` (`email_unverified`); anonymous → **403** `AUTH_REQUIRED` (`alias_requires_verified_account`). An OAuth access token is not an API key here: presenting one is 401 and does not fall through to anonymous create.","tags":["rest","createLink"],"securityRequirements":[{"schemes":{}},{"schemes":{"apiKey":{"list":[]}}},{"schemes":{"sessionCookie":{"list":[]}}}]},{"id":"createLinksBatch","name":"Create short links (sync batch)","description":"Sync batch create. Body `items` length 1–100. Each item requires `client_ref` (unique within the batch) plus destination (`url` XOR `longUrl`) and optional `alias`. Partial success: HTTP 200 envelope with per-item `ok` + `result` (ActiveLinkCreated | NonActiveLinkCreated) or `ok: false` + `problem` + `retryable`. Correlate by `client_ref` only — never by array index. Over 100 items → 400 BATCH_TOO_LARGE (`/problems/batch-too-large`). Whole-batch `Idempotency-Key` required (scoped as `batch:{key}`). Same auth / abuse / destination safety rules as single create. Missing scope → **403** `INSUFFICIENT_SCOPE`. Accepted credentials are anonymous access, a session cookie, or an API key with `batches:create`. An OAuth access token is not accepted.","tags":["rest","createLinksBatch"],"securityRequirements":[{"schemes":{}},{"schemes":{"apiKey":{"list":[]}}},{"schemes":{"sessionCookie":{"list":[]}}}]},{"id":"listLinks","name":"List links you own","description":"Returns short links owned by the authenticated account. Anonymous → **401**. Requires `links:read` on an API key, or a session cookie. An OAuth access token is not accepted on this route (401, not anonymous).","tags":["rest","listLinks"],"securityRequirements":[{"schemes":{"apiKey":{"list":[]}}},{"schemes":{"sessionCookie":{"list":[]}}}]},{"id":"getLinkStatus","name":"Get link status","description":"Public status lookup by short code. No authentication required. States: active | quarantined | disabled | blocked | expired. Destination, short_url, and short_url_ascii omitted unless state is active. Unknown/deleted codes → 404 with problem type /problems/link-not-found. User-alias lookup folds case to lowercase; system short codes remain case-sensitive as stored. No credential is required. A presented API key must be valid and include `links:read` (otherwise 403). Any other presented Bearer, including an OAuth access token, is 401 and is not treated as anonymous.","tags":["rest","getLinkStatus"],"securityRequirements":[{"schemes":{}}]},{"id":"updateLink","name":"Update a link you own","description":"Update the title or destination of a link you own. API key scope `links:update`, or a session cookie. An OAuth access token is not accepted on this route. MCP update_link uses this handler. A destination change is screened again, needs a verified email and an account at least 7 days old, and is capped at 3 times per link and 20 times per account in any 24 hours. Disabled, quarantined, blocked, expired, and reported links cannot be changed. An update does not re-enable a link. Other users' / unowned → **404**.","tags":["rest","updateLink"],"securityRequirements":[{"schemes":{"apiKey":{"list":[]}}},{"schemes":{"sessionCookie":{"list":[]}}}]},{"id":"disableLink","name":"Disable a link you own","description":"Stop serving a link you own. API key scope `links:disable`, or a session cookie. An OAuth access token is not accepted on REST (401). Another account's link, or an unknown id, is 404. A verified email is not required. A link that is quarantined, blocked, expired, or in an abuse posture is refused (403 LINK_BLOCKED). An already owner-disabled link succeeds and changes nothing. The same edit rate limit as PATCH applies (429). Idempotency-Key is not used. A form body or a cross-site Origin is rejected before auth (`csrf_rejected`, not problem+json). Responses are `Cache-Control: private, no-store`. Shlink must confirm before `link_disabled` is emitted; if confirm fails the response is 503 and a retry is queued. MCP `disable_link` uses the same logic with scope `links:disable`.","tags":["rest","disableLink"],"securityRequirements":[{"schemes":{"apiKey":{"list":[]}}},{"schemes":{"sessionCookie":{"list":[]}}}]},{"id":"getLinkAnalytics","name":"Click analytics for a link you own","description":"Aggregate click statistics for a link the authenticated account owns. period is 7d, 30d, or 90d. A free plan can use 7d. Pro and Business can use 7d, 30d, or 90d. Omit period for the plan default (7d on Free, 30d on Pro and Business). from, to, and interval are rejected. A free plan asking for 30d or 90d is 403 FEATURE_NOT_AVAILABLE. Each period is whole UTC days ending yesterday. Daily totals split human clicks, bot clicks, and QR-tagged clicks. Human-click breakdowns fold counts under 5 into other. API key scope analytics:read, or a session cookie. An OAuth access token is not a REST credential. Another account's link, or a link with no account, is 404. Cache-Control is private, no-store. Country data: IP Geolocation by DB-IP (https://db-ip.com), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)","tags":["rest","getLinkAnalytics"],"securityRequirements":[{"schemes":{"apiKey":{"list":[]}}},{"schemes":{"sessionCookie":{"list":[]}}}]},{"id":"getLinkQr","name":"QR image (PNG or SVG)","description":"Owner-only. Returns a QR code image that encodes the link's `qr_tracking_url` (tagged short URL; ASCII host in the matrix). Default format PNG size 512. `format=png|svg`. PNG `size` is 256, 512, or 1024 (SVG ignores size). Requires a session cookie or an API key with `links:read`. An OAuth access token is not accepted. Anon → 401. Other-user / unowned → 404. Destination is never fetched or encoded. Fetching it does not record a visit. MCP create_qr may also return a short-lived image_url. Returns the stored link's QR as PNG, or SVG when requested, with a short-lived image URL where available. The QR encodes qr_tracking_url. Where an image is not displayed, image_url (when present) or the short link reaches the same code.","tags":["rest","getLinkQr"],"securityRequirements":[{"schemes":{"apiKey":{"list":[]}}},{"schemes":{"sessionCookie":{"list":[]}}}],"outputModes":["image/png","image/svg+xml"]}]}