Skip to content
Covo Developers

Reference

Who am I

The token in use, its scopes, which client is calling, and how many agents it can reach.

RESTGET /api/v1/me
MCP toolget_account
ClassificationRead (changes nothing)
ScopeAny valid token
Minimum role on the agentany member
ConfirmationNot needed
Retry safetySafe to retry with the same input
Success status200

What it does

The token in use, its scopes, which client is calling, and how many agents it can reach. Call this first.

Side effects

None. It only reads.

Inputs

No inputs.

Example

REST
curl "https://covo.lanaai.io/api/v1/me" \
  -H "Authorization: Bearer $COVO_TOKEN"
MCP (POST /mcp)
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_account",
    "arguments": {}
  }
}

Response

Returns an object with token, client, agents, restricted_to_agents and scopes. This is a real response, shortened to two items per list.

200 response
{
  "token": {
    "id": "9203ec5c-173c-46e8-aa45-1a643266fdab",
    "name": "Docs examples",
    "scopes": [
      "agents:read",
      "agents:write"
    ]
  },
  "client": {
    "name": "docs-examples",
    "interface": "rest"
  },
  "agents": 1,
  "restricted_to_agents": false,
  "scopes": {
    "agents:read": "See agents, their configuration, versions, drafts, deployment and diagnostics.",
    "agents:write": "Change configuration, add knowledge, create drafts and versions.",
    "agents:delete": "Remove links, offers, knowledge and Places as part of a change. Needs confirmation.",
    "agents:test": "Run test conversations. Test replies count toward the AI reply allowance.",
    "agents:publish": "Publish, unpublish and restore earlier versions of a live agent. Needs confirmation.",
    "conversations:read": "Read conversations visitors had with an agent. These contain personal data."
  }
}

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.
400bad_requestAn input is invalid; field names it.
429rate_limitedWait Retry-After seconds.