Skip to main content
POST
/
projects
/
{project_reference}
/
agents
Create Agent
curl --request POST \
  --url https://api.veryfront.com/projects/{project_reference}/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "name": "<string>",
  "system_prompt": "<string>",
  "description": "<string>",
  "model": "<string>",
  "max_steps": 1,
  "allowed_models": [
    "<string>"
  ],
  "skill_ids": [
    "<string>"
  ],
  "tool_ids": [
    "<string>"
  ],
  "security_enabled": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "model": "<string>",
  "system_prompt": "<string>",
  "max_steps": 1,
  "allowed_models": [
    "<string>"
  ],
  "skill_ids": [
    "<string>"
  ],
  "tool_ids": [
    "<string>"
  ],
  "security_enabled": true,
  "source_path": "<string>",
  "source": "<string>",
  "edit_mode": "structured",
  "source_only_reasons": [
    "<string>"
  ],
  "suggestions": {
    "suggestions": [
      {
        "id": "<string>",
        "type": "prompt",
        "title": "<string>",
        "prompt": "<string>",
        "description": "<string>"
      }
    ],
    "welcome_message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_reference
string
required

Query Parameters

source_target_kind
string
target_branch_id
string<uuid> | null

Body

application/json
id
string
required
Required string length: 1 - 128
Pattern: ^[a-zA-Z0-9_-]+$
name
string
required
Minimum string length: 1
system_prompt
string
required
Minimum string length: 1
description
string | null
model
string | null
max_steps
integer | null
Required range: x > 0
allowed_models
string[]
Minimum string length: 1
skill_ids
string[]
Minimum string length: 1
tool_ids
string[]
Minimum string length: 1
suggestions
object
security_enabled
boolean

Response

Project agent created

id
string
required
name
string
required
description
string | null
required
model
string | null
required
system_prompt
string | null
required
max_steps
integer | null
required
Required range: x > 0
allowed_models
string[]
required
skill_ids
string[]
required
tool_ids
string[]
required
security_enabled
boolean | null
required
source_path
string
required
source
string
required
edit_mode
enum<string>
required
Available options:
structured,
source_only
source_only_reasons
string[]
required
suggestions
object