Use this API to create a new custom agent configuration. The engine stores the agent in Firestore and writes version 1 to the agent’s versions subcollection. The schema usesDocumentation Index
Fetch the complete documentation index at: https://velt-raghul-agent-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
.passthrough(), so any additional behavioral fields are forwarded to the service layer.
POST https://api.velt.dev/v2/agents/create
| Field | Description |
|---|---|
summary | Summary text of the overall analysis. |
title | Short title of the finding. |
description | Detailed description of the finding. |
severity | Severity level. Values: critical, high, medium, low, info. |
targetText | The exact text on the page this finding refers to. |
suggestion | Suggested fix or recommendation. |
isPageLevel | true for visual/layout findings; false when targetText is real DOM text. |
htmlSelector | CSS selector of the DOM element. |
issueType | Issue type for match-and-merge keying (short, lowercase, hyphenated). |
confidence | Confidence score from 0 to 100. |
findingType | Finding type classification. |
| Field | Type | Description |
|---|---|---|
data.agentId | string | Firestore document ID of the new agent |
INVALID_ARGUMENT (Zod validation failure — e.g. missing name, missing apiKey, invalid userContextFields.type) / RESOURCE_EXHAUSTED (workspace already has the maximum number of custom agents).