Skip to content
Covo Developers

Reference

Delete a short link

Deletes a short link; anyone who opens it afterwards sees a not found page.

RESTPOST /api/v1/agents/{agent_id}/short-links/{short_link_id}/delete
MCP tooldelete_short_link
ClassificationSensitive write
Scopeagents:write
Minimum role on the agenteditor
ConfirmationRequired: confirm: true, after the person agrees
Retry safetySafe to retry with the same input
Success status200

What it does

Deletes a short link; anyone who opens it afterwards sees a not found page. Needs agents:delete and confirm: true. To stop it for a while, use update_short_link with enabled: false.

Side effects

Deletes the link; it answers not found from then on.

Inputs

NameTypeRequiredInDescription
agent_idstringyespathThe agent id (agt_...), from list_agents.
short_link_idstringyespathThe short link id, from list_short_links.
confirmtruenobodySet to true after reviewing the effect with the person you work for. Required for destructive operations.

Example

REST
curl -X POST "https://covo.lanaai.io/api/v1/agents/agt_4edc89bb2964/short-links/33f5aef6-f05a-4a0e-8716-76aed5e209f9/delete" \
  -H "Authorization: Bearer $COVO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"confirm":true}'
MCP (POST /mcp)
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delete_short_link",
    "arguments": {
      "agent_id": "agt_4edc89bb2964",
      "short_link_id": "33f5aef6-f05a-4a0e-8716-76aed5e209f9",
      "confirm": true
    }
  }
}

Response

Returns an object with short_link_id and deleted. This is a real response, shortened to two items per list.

200 response
{
  "short_link_id": "33f5aef6-f05a-4a0e-8716-76aed5e209f9",
  "deleted": true
}

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:write.
404agent_not_foundUnknown agent, or not reachable with this token.
400bad_requestAn input is invalid; field names it.
409confirmation_requiredReview the effect with the person you work for, then send confirm: true.
429rate_limitedWait Retry-After seconds.