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

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)

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)

Failure Response

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