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, only sanitized public fields are returned.
  • 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).
Built-in agents flagged metadata.internal: true (e.g. crawler, screenshot) are excluded from list responses but can still be fetched individually.

Endpoint

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

Headers

string
required
Your API key.
string
required

Body

Params

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.

Success Response (single built-in agent, sanitized)

Built-in agents return only public fields. Internal implementation fields (instructions, contextGathering, execution, postProcess, response, payloadSchema, supportedVariables) are stripped.

Success Response (list)

List rows are identity-only. Built-in agents include system: true; internal agents (crawler, screenshot) are omitted.

Failure Response

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