Skip to content
Covo Developers

Reference

List short links

Short links the agent made to other web addresses (/go/<code>), with clicks in the last days and since each was made, plus how many the plan allows.

RESTGET /api/v1/agents/{agent_id}/short-links
MCP toollist_short_links
ClassificationRead (changes nothing)
Scopeagents:read
Minimum role on the agenteditor
ConfirmationNot needed
Retry safetySafe to retry with the same input
Success status200

What it does

Short links the agent made to other web addresses (/go/<code>), with clicks in the last days and since each was made, plus how many the plan allows. Each Place also has its own short link, listed in get_deployment_status.

Side effects

None. It only reads.

Inputs

NameTypeRequiredInDescription
agent_idstringyespathThe agent id (agt_...), from list_agents.
daysintegernoqueryClick window in days. Default 30.

Example

REST
curl "https://covo.lanaai.io/api/v1/agents/agt_4edc89bb2964/short-links?days=30" \
  -H "Authorization: Bearer $COVO_TOKEN"
MCP (POST /mcp)
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_short_links",
    "arguments": {
      "agent_id": "agt_4edc89bb2964",
      "days": 30
    }
  }
}

Response

Returns an object with days, max and short_links. This is a real response, shortened to two items per list.

200 response
{
  "days": 30,
  "max": 100,
  "short_links": [
    {
      "id": "33f5aef6-f05a-4a0e-8716-76aed5e209f9",
      "short_url": "https://covo.lanaai.io/go/NAqH5mp",
      "url": "https://example.com/spring-menu",
      "title": "Spring menu",
      "enabled": true,
      "clicks": 0,
      "total_clicks": 0,
      "last_clicked": null,
      "created_at": "2026-10-07T20:14:42.017Z"
    }
  ]
}

Over MCP the same object comes back as the tool result, in structuredContent and as JSON text.

Errors

StatusCodeMeaning
401unauthorizedNo token, or it is unknown, revoked or expired. OAuth apps refresh or reconnect.
403account_suspendedThe account that owns the token is paused.
403insufficient_scopeThe token lacks agents:read.
404agent_not_foundUnknown agent, or not reachable with this token.
400bad_requestAn input is invalid; field names it.
429rate_limitedWait Retry-After seconds.