Skip to main content
POST
Get Agent(s)
Use this API to fetch a single agent or list agents in your workspace. The endpoint behaves differently based on the provided fields:
  • agentId provided: returns a single agent. For custom agents, the response merges identity + behavioral fields from the version subcollection. For built-in agents, the response contains the agent’s identity fields.
  • agentId omitted: returns a list of agents with identity-only fields. Optionally filter by filter (default vs custom) and/or groupId (members of an agent group).

Endpoint

POST https://api.velt.dev/v2/agents/get

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required

Example Requests

1. Get a single custom agent

2. Get a single built-in agent

3. List all agents (no filter)

4. List only custom agents

5. List agents in a group

Response

Success Response (single custom agent)

Custom agents return the full configuration including behavioral fields from the version subcollection:
Any auth secrets are returned as "__redacted__"; they are never sent back in plaintext. This applies to both rest-api strategy secrets stored in contextGathering.strategyOptions and mcp-tools server secrets stored in execution.mcpServers[].auth.executionCount / lastExecutedAt are returned only on list responses, not on single-agent fetches.

Success Response (single built-in agent)

Built-in agents return their identity fields: id, name, description, enabled, managedBy, system, and input when the agent declares one.

Success Response (list)

List rows are identity-only. Built-in agents include system: true.

Failure Response

Errors: NOT_FOUND (agent or group not found) / INVALID_ARGUMENT (invalid filter value).