Get Agent(s)
Agents
Get Agent(s)
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:
Errors:
agentIdprovided: 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.agentIdomitted: returns a list of agents with identity-only fields. Optionally filter byfilter(default vs custom) and/orgroupId(members of an agent group).
Endpoint
POST https://api.velt.dev/v2/agents/get
Headers
Your API key.
Your Auth Token.
Body
Params
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 includesystem: true.
Failure Response
NOT_FOUND (agent or group not found) / INVALID_ARGUMENT (invalid filter value).

