http
POST /projects/{project_reference}/agentsCreate agent. Requires project.agents.write.
Servers
JSON
1[2 {3 "url": "https://api.veryfront.com"4 }5]Authentication
JSON
1[2 {3 "bearerAuth": []4 },5 {6 "apiKeyAuth": []7 }8]JSON
1{2 "bearerAuth": {3 "type": "http",4 "scheme": "bearer",5 "bearerFormat": "JWT or API Key",6 "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header."7 },8 "apiKeyAuth": {9 "type": "apiKey",10 "in": "header",11 "name": "X-API-Key",12 "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens."13 }14}Parameters
| Name | Location | Required | Description |
|---|---|---|---|
| project_reference | path | Yes | Project slug, UUID, or domain that identifies the project. |
| source_target_kind | query | No | |
| target_branch_id | query | No |
Parameter contracts
JSON
1[2 {3 "schema": {4 "$ref": "#/components/schemas/ProjectReference"5 },6 "required": true,7 "description": "Project slug, UUID, or domain that identifies the project.",8 "name": "project_reference",9 "in": "path"10 },11 {12 "schema": {13 "type": "string"14 },15 "required": false,16 "name": "source_target_kind",17 "in": "query"18 },19 {20 "schema": {21 "type": [22 "string",23 "null"24 ],25 "format": "uuid"26 },27 "required": false,28 "name": "target_branch_id",29 "in": "query"30 }31]Request body
JSON
1{2 "content": {3 "application/json": {4 "schema": {5 "type": "object",6 "properties": {7 "id": {8 "type": "string",9 "minLength": 1,10 "maxLength": 128,11 "pattern": "^[a-zA-Z0-9_-]+$"12 },13 "name": {14 "type": "string",15 "minLength": 116 },17 "description": {18 "type": [19 "string",20 "null"21 ]22 },23 "model": {24 "type": [25 "string",26 "null"27 ]28 },29 "system_prompt": {30 "type": "string",31 "minLength": 132 },33 "thinking": {34 "type": "object",35 "properties": {36 "enabled": {37 "type": "boolean"38 },39 "budget_tokens": {40 "type": "number",41 "exclusiveMinimum": 042 }43 },44 "required": [45 "enabled"46 ],47 "additionalProperties": false48 },49 "temperature": {50 "type": [51 "number",52 "null"53 ],54 "minimum": 0,55 "maximum": 256 },57 "max_steps": {58 "type": [59 "integer",60 "null"61 ],62 "exclusiveMinimum": 063 },64 "allowed_models": {65 "type": "array",66 "items": {67 "type": "string",68 "minLength": 169 }70 },71 "skill_ids": {72 "type": "array",73 "items": {74 "type": "string",75 "minLength": 176 }77 },78 "skill_selection": {79 "type": "object",80 "properties": {81 "kind": {82 "type": "string",83 "enum": [84 "omitted",85 "explicit"86 ]87 },88 "skill_ids": {89 "type": "array",90 "items": {91 "type": "string",92 "minLength": 193 },94 "default": []95 }96 },97 "required": [98 "kind"99 ]100 },101 "skills": {102 "anyOf": [103 {104 "type": "boolean"105 },106 {107 "type": "string",108 "minLength": 1,109 "maxLength": 128110 },111 {112 "type": "array",113 "items": {114 "type": "string",115 "minLength": 1,116 "maxLength": 128117 },118 "maxItems": 500119 },120 {121 "type": "object",122 "additionalProperties": {123 "type": "boolean"124 }125 }126 ]127 },128 "all_tools_enabled": {129 "type": "boolean"130 },131 "tool_ids": {132 "type": "array",133 "items": {134 "type": "string",135 "minLength": 1136 },137 "description": "Project tools, platform tools, and integration catalog tools returned by get_integration. Use exact names from the agent tool references search."138 },139 "tools": {140 "anyOf": [141 {142 "type": "boolean"143 },144 {145 "type": "array",146 "items": {147 "type": "string",148 "minLength": 1,149 "maxLength": 128150 },151 "maxItems": 500152 },153 {154 "type": "object",155 "additionalProperties": {156 "type": "boolean"157 }158 }159 ],160 "description": "Callable host-tool selector. Use false to disable all host tools, including skill and delegation tools. An empty array or map selects no project tools but preserves legacy runtime essentials. Provider-native tools use provider_tool_ids."161 },162 "tool_loading": {163 "type": "string",164 "enum": [165 "eager",166 "deferred"167 ]168 },169 "tool_result_context": {170 "anyOf": [171 {172 "type": "boolean"173 },174 {175 "type": "object",176 "properties": {177 "max_inline_bytes": {178 "type": "integer",179 "exclusiveMinimum": 0,180 "maximum": 1048576181 },182 "preview_bytes": {183 "type": "integer",184 "exclusiveMinimum": 0,185 "maximum": 1048576186 },187 "max_section_bytes": {188 "type": "integer",189 "minimum": 4,190 "maximum": 1048576191 },192 "max_stored_results": {193 "type": "integer",194 "exclusiveMinimum": 0,195 "maximum": 1024196 }197 },198 "additionalProperties": false199 }200 ]201 },202 "knowledge": {203 "anyOf": [204 {205 "type": "boolean"206 },207 {208 "type": "string",209 "minLength": 1,210 "maxLength": 4096211 },212 {213 "type": "array",214 "items": {215 "type": "string",216 "minLength": 1,217 "maxLength": 4096218 },219 "maxItems": 1024220 },221 {222 "type": "object",223 "additionalProperties": {224 "type": "boolean"225 }226 }227 ]228 },229 "provider_tool_ids": {230 "type": "array",231 "items": {232 "type": "string",233 "minLength": 1234 },235 "description": "Provider-native model tools only. Never put tool references from tool_ids here."236 },237 "suggestions": {238 "type": [239 "array",240 "null"241 ],242 "items": {243 "anyOf": [244 {245 "type": "string",246 "minLength": 1247 },248 {249 "type": "object",250 "properties": {251 "title": {252 "type": "string",253 "minLength": 1254 },255 "prompt": {256 "type": "string",257 "minLength": 1258 }259 },260 "required": [261 "title",262 "prompt"263 ],264 "additionalProperties": false265 }266 ]267 }268 },269 "avatar": {270 "type": [271 "object",272 "null"273 ],274 "properties": {275 "seed": {276 "type": "string",277 "minLength": 1,278 "maxLength": 128279 },280 "archetype": {281 "type": "string",282 "enum": [283 "upright",284 "slumped",285 "alert",286 "profile",287 "leaning",288 "crouched",289 "tall",290 "spread",291 "happy",292 "sad",293 "angry",294 "surprised",295 "sleepy",296 "curious"297 ]298 },299 "texture": {300 "type": "string",301 "pattern": "^(?:[0-9]|none)$"302 },303 "color": {304 "type": "string",305 "pattern": "^#[0-9a-fA-F]{6}$"306 },307 "shape": {308 "type": "string",309 "enum": [310 "snircle",311 "circle",312 "square"313 ]314 },315 "matrix": {316 "type": "string",317 "pattern": "^[012]{16}$"318 }319 }320 },321 "avatar_url": {322 "type": [323 "string",324 "null"325 ],326 "format": "uri"327 },328 "security_enabled": {329 "type": "boolean"330 }331 },332 "required": [333 "id",334 "name",335 "system_prompt"336 ]337 }338 }339 }340}Responses
201
Agent created
JSON
1{2 "description": "Agent created",3 "content": {4 "application/json": {5 "schema": {6 "$ref": "#/components/schemas/AgentSource"7 }8 }9 }10}400
Bad request
JSON
1{2 "description": "Bad request",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/AgentProblem"7 }8 }9 }10}401
Unauthorized
JSON
1{2 "description": "Unauthorized",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}403
Forbidden
JSON
1{2 "description": "Forbidden",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}404
Not found
JSON
1{2 "description": "Not found",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}409
Conflict
JSON
1{2 "description": "Conflict",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/AgentProblem"7 }8 }9 }10}500
Server error
JSON
1{2 "description": "Server error",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}503
internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.
JSON
1{2 "description": "internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}Referenced contracts
components/parameters/ProjectReference
JSON
1{2 "schema": {3 "$ref": "#/components/schemas/ProjectReference"4 },5 "required": true,6 "description": "Project slug, UUID, or domain that identifies the project.",7 "name": "project_reference",8 "in": "path"9}components/schemas/ProjectReference
JSON
1{2 "type": "string"3}components/schemas/AgentSource
JSON
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string"6 },7 "name": {8 "type": "string"9 },10 "description": {11 "type": [12 "string",13 "null"14 ]15 },16 "model": {17 "type": [18 "string",19 "null"20 ],21 "description": "Model identifier recovered from authored source. Null means no literal identifier was recovered; an omitted model is valid. The run selects and checks its model at admission, so null is not a missing-configuration error or a verified runtime default."22 },23 "system_prompt": {24 "type": [25 "string",26 "null"27 ]28 },29 "thinking": {30 "type": "object",31 "properties": {32 "enabled": {33 "type": "boolean"34 },35 "budget_tokens": {36 "type": "number",37 "exclusiveMinimum": 038 }39 },40 "required": [41 "enabled"42 ],43 "additionalProperties": false44 },45 "temperature": {46 "type": [47 "number",48 "null"49 ],50 "minimum": 0,51 "maximum": 252 },53 "max_steps": {54 "type": [55 "integer",56 "null"57 ],58 "exclusiveMinimum": 059 },60 "allowed_models": {61 "type": "array",62 "items": {63 "type": "string"64 },65 "description": "Agent-level allowlist for request model overrides. Empty means no restriction by this allowlist; project and run model policies still apply. This does not identify the resolved runtime model."66 },67 "skill_ids": {68 "type": "array",69 "items": {70 "type": "string"71 },72 "description": "Legacy source-view skill IDs. A read with skill_resolution can include source-catalog matches; a write response can echo only authored IDs. An empty array does not prove that no skills are available, and these IDs do not verify runtime loading. Use skill_selection and skill_resolution for provenance."73 },74 "skill_selection": {75 "type": "object",76 "properties": {77 "kind": {78 "type": "string",79 "enum": [80 "omitted",81 "explicit"82 ]83 },84 "skill_ids": {85 "type": "array",86 "items": {87 "type": "string"88 },89 "description": "Explicit skill IDs when kind is explicit. When kind is omitted, a read lists the owner-visible source-catalog matches (legacy projection) and a write response can echo an empty list. Use skill_resolution for provenance; these IDs do not verify runtime loading."90 }91 },92 "required": [93 "kind",94 "skill_ids"95 ],96 "description": "Skill selection. kind is the authored policy: omitted selects all owner-visible skills. Use skill_resolution for resolved source-catalog matches and their evidence scope."97 },98 "skill_resolution": {99 "type": "object",100 "properties": {101 "policy": {102 "oneOf": [103 {104 "type": "object",105 "properties": {106 "kind": {107 "type": "string",108 "enum": [109 "all-visible"110 ]111 },112 "source": {113 "type": "string",114 "enum": [115 "omitted",116 "true"117 ]118 }119 },120 "required": [121 "kind",122 "source"123 ]124 },125 {126 "type": "object",127 "properties": {128 "kind": {129 "type": "string",130 "enum": [131 "none"132 ]133 }134 },135 "required": [136 "kind"137 ]138 },139 {140 "type": "object",141 "properties": {142 "kind": {143 "type": "string",144 "enum": [145 "allowlist"146 ]147 },148 "entries": {149 "type": "array",150 "items": {151 "type": "string"152 }153 }154 },155 "required": [156 "kind",157 "entries"158 ]159 },160 {161 "type": "object",162 "properties": {163 "kind": {164 "type": "string",165 "enum": [166 "rules"167 ]168 },169 "entries": {170 "type": "array",171 "items": {172 "type": "object",173 "properties": {174 "pattern": {175 "type": "string"176 },177 "allow": {178 "type": "boolean"179 }180 },181 "required": [182 "pattern",183 "allow"184 ]185 }186 }187 },188 "required": [189 "kind",190 "entries"191 ]192 }193 ]194 },195 "skill_ids": {196 "type": "array",197 "items": {198 "type": "string"199 }200 },201 "source_paths": {202 "type": "object",203 "additionalProperties": {204 "type": "string"205 }206 },207 "unresolved_entry_indexes": {208 "type": "array",209 "items": {210 "type": "integer",211 "minimum": 0212 }213 },214 "catalog_status": {215 "type": "string",216 "enum": [217 "complete",218 "partial"219 ]220 },221 "evidence_scope": {222 "type": "string",223 "enum": [224 "source_catalog"225 ]226 }227 },228 "required": [229 "policy",230 "skill_ids",231 "source_paths",232 "unresolved_entry_indexes",233 "catalog_status",234 "evidence_scope"235 ],236 "description": "Skill selector policy and owner-visible source catalog matches. Partial catalogs cannot establish that unreturned skills are absent. This does not verify run execution access."237 },238 "skills": {239 "anyOf": [240 {241 "type": "boolean"242 },243 {244 "type": "string",245 "minLength": 1,246 "maxLength": 128247 },248 {249 "type": "array",250 "items": {251 "type": "string",252 "minLength": 1,253 "maxLength": 128254 },255 "maxItems": 500256 },257 {258 "type": "object",259 "additionalProperties": {260 "type": "boolean"261 }262 }263 ]264 },265 "all_tools_enabled": {266 "type": "boolean",267 "description": "Whether the authored selector allows all tools. False can still select individual tools. Read the raw tools selector and capability resolution for the selected set."268 },269 "tool_ids": {270 "type": "array",271 "items": {272 "type": "string"273 },274 "description": "Source-recovered explicit tool IDs. Empty when all_tools_enabled is true, when tools is false (authored deny-all), or when no explicit IDs were recovered, so an empty array alone does not mean callable host tools are disabled. This source view does not verify execution grants."275 },276 "tools": {277 "anyOf": [278 {279 "type": "boolean"280 },281 {282 "type": "array",283 "items": {284 "type": "string",285 "minLength": 1,286 "maxLength": 128287 },288 "maxItems": 500289 },290 {291 "type": "object",292 "additionalProperties": {293 "type": "boolean"294 }295 }296 ],297 "description": "Callable host-tool selector. Use false to disable all host tools, including skill and delegation tools. An empty array or map selects no project tools but preserves legacy runtime essentials. Provider-native tools use provider_tool_ids."298 },299 "tool_loading": {300 "type": "string",301 "enum": [302 "eager",303 "deferred"304 ]305 },306 "tool_result_context": {307 "anyOf": [308 {309 "type": "boolean"310 },311 {312 "type": "object",313 "properties": {314 "max_inline_bytes": {315 "type": "integer",316 "exclusiveMinimum": 0,317 "maximum": 1048576318 },319 "preview_bytes": {320 "type": "integer",321 "exclusiveMinimum": 0,322 "maximum": 1048576323 },324 "max_section_bytes": {325 "type": "integer",326 "minimum": 4,327 "maximum": 1048576328 },329 "max_stored_results": {330 "type": "integer",331 "exclusiveMinimum": 0,332 "maximum": 1024333 }334 },335 "additionalProperties": false336 }337 ]338 },339 "provider_tool_ids": {340 "type": "array",341 "items": {342 "type": "string"343 }344 },345 "knowledge": {346 "anyOf": [347 {348 "type": "boolean"349 },350 {351 "type": "string",352 "minLength": 1,353 "maxLength": 4096354 },355 {356 "type": "array",357 "items": {358 "type": "string",359 "minLength": 1,360 "maxLength": 4096361 },362 "maxItems": 1024363 },364 {365 "type": "object",366 "additionalProperties": {367 "type": "boolean"368 }369 }370 ]371 },372 "suggestions": {373 "type": "array",374 "items": {375 "anyOf": [376 {377 "type": "string",378 "minLength": 1379 },380 {381 "type": "object",382 "properties": {383 "title": {384 "type": "string",385 "minLength": 1386 },387 "prompt": {388 "type": "string",389 "minLength": 1390 }391 },392 "required": [393 "title",394 "prompt"395 ],396 "additionalProperties": false397 }398 ]399 }400 },401 "avatar": {402 "type": [403 "object",404 "null"405 ],406 "properties": {407 "seed": {408 "type": "string",409 "minLength": 1,410 "maxLength": 128411 },412 "archetype": {413 "type": "string",414 "enum": [415 "upright",416 "slumped",417 "alert",418 "profile",419 "leaning",420 "crouched",421 "tall",422 "spread",423 "happy",424 "sad",425 "angry",426 "surprised",427 "sleepy",428 "curious"429 ]430 },431 "texture": {432 "type": "string",433 "pattern": "^(?:[0-9]|none)$"434 },435 "color": {436 "type": "string",437 "pattern": "^#[0-9a-fA-F]{6}$"438 },439 "shape": {440 "type": "string",441 "enum": [442 "snircle",443 "circle",444 "square"445 ]446 },447 "matrix": {448 "type": "string",449 "pattern": "^[012]{16}$"450 }451 }452 },453 "avatar_url": {454 "type": [455 "string",456 "null"457 ],458 "description": "This agent's avatar: an http(s) URL, or a root-relative path served from the project. Null when no custom avatar has been set."459 },460 "security_enabled": {461 "type": [462 "boolean",463 "null"464 ],465 "description": "Whether the agent default security guardrails are enabled."466 },467 "source_path": {468 "type": "string"469 },470 "source": {471 "type": "string"472 },473 "edit_mode": {474 "type": "string",475 "enum": [476 "structured",477 "source_only"478 ]479 },480 "source_only_reasons": {481 "type": "array",482 "items": {483 "type": "string"484 }485 }486 },487 "required": [488 "id",489 "name",490 "description",491 "model",492 "system_prompt",493 "temperature",494 "max_steps",495 "allowed_models",496 "skill_ids",497 "skill_selection",498 "all_tools_enabled",499 "tool_ids",500 "provider_tool_ids",501 "security_enabled",502 "source_path",503 "source",504 "edit_mode",505 "source_only_reasons"506 ]507}components/schemas/AgentProblem
JSON
1{2 "allOf": [3 {4 "$ref": "#/components/schemas/Problem"5 },6 {7 "type": "object",8 "properties": {9 "edit_mode": {10 "type": "string",11 "enum": [12 "structured",13 "source_only"14 ],15 "description": "Edit mode of the agent definition, on a source_only_conflict."16 },17 "source_only_reasons": {18 "type": "array",19 "items": {20 "type": "string"21 },22 "description": "Why the agent can only be edited as raw source, on a source_only_conflict."23 },24 "source_path": {25 "type": "string",26 "description": "Source file of the agent definition, on a source_only_conflict."27 }28 }29 }30 ]31}components/schemas/Problem
JSON
1{2 "type": "object",3 "properties": {4 "cause": {5 "type": "string",6 "enum": [7 "schedule_concurrency_forbidden",8 "schedule_fire_in_progress",9 "schedule_run_limit_reached"10 ],11 "description": "Schedule admission refusal."12 },13 "idempotency": {14 "type": "object",15 "properties": {16 "state": {17 "type": "string",18 "enum": [19 "in_progress",20 "payload_mismatch",21 "outcome_unknown"22 ]23 },24 "operation": {25 "type": "string",26 "minLength": 127 },28 "retryable": {29 "type": "boolean"30 },31 "retry_after_seconds": {32 "type": [33 "integer",34 "null"35 ],36 "minimum": 037 },38 "expires_at": {39 "type": [40 "string",41 "null"42 ]43 },44 "recovery": {45 "type": "object",46 "properties": {47 "available": {48 "type": "boolean"49 },50 "description": {51 "type": "string"52 },53 "resource_url": {54 "type": "string"55 }56 },57 "required": [58 "available",59 "description"60 ]61 }62 },63 "required": [64 "state",65 "operation",66 "retryable",67 "retry_after_seconds",68 "expires_at"69 ],70 "description": "Replay status, retry timing, and recovery lookup."71 },72 "type": {73 "type": "string",74 "description": "URI reference identifying the problem type",75 "example": "https://api.veryfront.com/errors/validation-failed"76 },77 "title": {78 "type": "string",79 "description": "Short human-readable summary of the problem",80 "example": "Validation Failed"81 },82 "status": {83 "type": "integer",84 "minimum": 100,85 "maximum": 599,86 "description": "HTTP status code",87 "example": 40088 },89 "code": {90 "type": "string",91 "description": "Stable machine-readable error code",92 "example": "RUN_INVALID_INPUT"93 },94 "detail": {95 "type": "string",96 "description": "Human-readable explanation specific to this occurrence",97 "example": "The 'email' field must be a valid email address"98 },99 "instance": {100 "type": "string",101 "description": "URI reference identifying the specific occurrence",102 "example": "/projects/my-project/members"103 },104 "slug": {105 "type": "string",106 "description": "Stable identifier for the problem type",107 "example": "validation-failed"108 },109 "category": {110 "type": "string",111 "enum": [112 "AUTH",113 "RESOURCE",114 "VALIDATION",115 "DATABASE",116 "SUBSCRIPTION",117 "INTEGRATION",118 "INTERNAL"119 ],120 "description": "API error category",121 "example": "VALIDATION"122 },123 "suggestion": {124 "type": "string",125 "description": "Suggested action to resolve the problem",126 "example": "Check the request body and query parameters against the API documentation."127 },128 "errors": {129 "type": "array",130 "items": {131 "type": "object",132 "properties": {133 "field": {134 "type": "string",135 "description": "Field path that caused the error",136 "example": "email"137 },138 "message": {139 "type": "string",140 "description": "Error message for this field",141 "example": "Invalid email format"142 },143 "code": {144 "type": "string",145 "description": "Error code for this field",146 "example": "INVALID_FORMAT"147 }148 },149 "required": [150 "field",151 "message"152 ]153 },154 "description": "Detailed field-level errors for validation failures"155 }156 },157 "required": [158 "type",159 "title",160 "status"161 ]162}Operation contract
JSON
1{2 "operationId": "createAgent",3 "tags": [4 "agents/Agents/Agents"5 ],6 "summary": "Create agent",7 "description": "Create agent. Requires project.agents.write.",8 "parameters": [9 {10 "$ref": "#/components/parameters/ProjectReference"11 },12 {13 "schema": {14 "type": "string"15 },16 "required": false,17 "name": "source_target_kind",18 "in": "query"19 },20 {21 "schema": {22 "type": [23 "string",24 "null"25 ],26 "format": "uuid"27 },28 "required": false,29 "name": "target_branch_id",30 "in": "query"31 }32 ],33 "requestBody": {34 "content": {35 "application/json": {36 "schema": {37 "type": "object",38 "properties": {39 "id": {40 "type": "string",41 "minLength": 1,42 "maxLength": 128,43 "pattern": "^[a-zA-Z0-9_-]+$"44 },45 "name": {46 "type": "string",47 "minLength": 148 },49 "description": {50 "type": [51 "string",52 "null"53 ]54 },55 "model": {56 "type": [57 "string",58 "null"59 ]60 },61 "system_prompt": {62 "type": "string",63 "minLength": 164 },65 "thinking": {66 "type": "object",67 "properties": {68 "enabled": {69 "type": "boolean"70 },71 "budget_tokens": {72 "type": "number",73 "exclusiveMinimum": 074 }75 },76 "required": [77 "enabled"78 ],79 "additionalProperties": false80 },81 "temperature": {82 "type": [83 "number",84 "null"85 ],86 "minimum": 0,87 "maximum": 288 },89 "max_steps": {90 "type": [91 "integer",92 "null"93 ],94 "exclusiveMinimum": 095 },96 "allowed_models": {97 "type": "array",98 "items": {99 "type": "string",100 "minLength": 1101 }102 },103 "skill_ids": {104 "type": "array",105 "items": {106 "type": "string",107 "minLength": 1108 }109 },110 "skill_selection": {111 "type": "object",112 "properties": {113 "kind": {114 "type": "string",115 "enum": [116 "omitted",117 "explicit"118 ]119 },120 "skill_ids": {121 "type": "array",122 "items": {123 "type": "string",124 "minLength": 1125 },126 "default": []127 }128 },129 "required": [130 "kind"131 ]132 },133 "skills": {134 "anyOf": [135 {136 "type": "boolean"137 },138 {139 "type": "string",140 "minLength": 1,141 "maxLength": 128142 },143 {144 "type": "array",145 "items": {146 "type": "string",147 "minLength": 1,148 "maxLength": 128149 },150 "maxItems": 500151 },152 {153 "type": "object",154 "additionalProperties": {155 "type": "boolean"156 }157 }158 ]159 },160 "all_tools_enabled": {161 "type": "boolean"162 },163 "tool_ids": {164 "type": "array",165 "items": {166 "type": "string",167 "minLength": 1168 },169 "description": "Project tools, platform tools, and integration catalog tools returned by get_integration. Use exact names from the agent tool references search."170 },171 "tools": {172 "anyOf": [173 {174 "type": "boolean"175 },176 {177 "type": "array",178 "items": {179 "type": "string",180 "minLength": 1,181 "maxLength": 128182 },183 "maxItems": 500184 },185 {186 "type": "object",187 "additionalProperties": {188 "type": "boolean"189 }190 }191 ],192 "description": "Callable host-tool selector. Use false to disable all host tools, including skill and delegation tools. An empty array or map selects no project tools but preserves legacy runtime essentials. Provider-native tools use provider_tool_ids."193 },194 "tool_loading": {195 "type": "string",196 "enum": [197 "eager",198 "deferred"199 ]200 },201 "tool_result_context": {202 "anyOf": [203 {204 "type": "boolean"205 },206 {207 "type": "object",208 "properties": {209 "max_inline_bytes": {210 "type": "integer",211 "exclusiveMinimum": 0,212 "maximum": 1048576213 },214 "preview_bytes": {215 "type": "integer",216 "exclusiveMinimum": 0,217 "maximum": 1048576218 },219 "max_section_bytes": {220 "type": "integer",221 "minimum": 4,222 "maximum": 1048576223 },224 "max_stored_results": {225 "type": "integer",226 "exclusiveMinimum": 0,227 "maximum": 1024228 }229 },230 "additionalProperties": false231 }232 ]233 },234 "knowledge": {235 "anyOf": [236 {237 "type": "boolean"238 },239 {240 "type": "string",241 "minLength": 1,242 "maxLength": 4096243 },244 {245 "type": "array",246 "items": {247 "type": "string",248 "minLength": 1,249 "maxLength": 4096250 },251 "maxItems": 1024252 },253 {254 "type": "object",255 "additionalProperties": {256 "type": "boolean"257 }258 }259 ]260 },261 "provider_tool_ids": {262 "type": "array",263 "items": {264 "type": "string",265 "minLength": 1266 },267 "description": "Provider-native model tools only. Never put tool references from tool_ids here."268 },269 "suggestions": {270 "type": [271 "array",272 "null"273 ],274 "items": {275 "anyOf": [276 {277 "type": "string",278 "minLength": 1279 },280 {281 "type": "object",282 "properties": {283 "title": {284 "type": "string",285 "minLength": 1286 },287 "prompt": {288 "type": "string",289 "minLength": 1290 }291 },292 "required": [293 "title",294 "prompt"295 ],296 "additionalProperties": false297 }298 ]299 }300 },301 "avatar": {302 "type": [303 "object",304 "null"305 ],306 "properties": {307 "seed": {308 "type": "string",309 "minLength": 1,310 "maxLength": 128311 },312 "archetype": {313 "type": "string",314 "enum": [315 "upright",316 "slumped",317 "alert",318 "profile",319 "leaning",320 "crouched",321 "tall",322 "spread",323 "happy",324 "sad",325 "angry",326 "surprised",327 "sleepy",328 "curious"329 ]330 },331 "texture": {332 "type": "string",333 "pattern": "^(?:[0-9]|none)$"334 },335 "color": {336 "type": "string",337 "pattern": "^#[0-9a-fA-F]{6}$"338 },339 "shape": {340 "type": "string",341 "enum": [342 "snircle",343 "circle",344 "square"345 ]346 },347 "matrix": {348 "type": "string",349 "pattern": "^[012]{16}$"350 }351 }352 },353 "avatar_url": {354 "type": [355 "string",356 "null"357 ],358 "format": "uri"359 },360 "security_enabled": {361 "type": "boolean"362 }363 },364 "required": [365 "id",366 "name",367 "system_prompt"368 ]369 }370 }371 }372 },373 "responses": {374 "201": {375 "description": "Agent created",376 "content": {377 "application/json": {378 "schema": {379 "$ref": "#/components/schemas/AgentSource"380 }381 }382 }383 },384 "400": {385 "description": "Bad request",386 "content": {387 "application/problem+json": {388 "schema": {389 "$ref": "#/components/schemas/AgentProblem"390 }391 }392 }393 },394 "401": {395 "description": "Unauthorized",396 "content": {397 "application/problem+json": {398 "schema": {399 "$ref": "#/components/schemas/Problem"400 }401 }402 }403 },404 "403": {405 "description": "Forbidden",406 "content": {407 "application/problem+json": {408 "schema": {409 "$ref": "#/components/schemas/Problem"410 }411 }412 }413 },414 "404": {415 "description": "Not found",416 "content": {417 "application/problem+json": {418 "schema": {419 "$ref": "#/components/schemas/Problem"420 }421 }422 }423 },424 "409": {425 "description": "Conflict",426 "content": {427 "application/problem+json": {428 "schema": {429 "$ref": "#/components/schemas/AgentProblem"430 }431 }432 }433 },434 "500": {435 "description": "Server error",436 "content": {437 "application/problem+json": {438 "schema": {439 "$ref": "#/components/schemas/Problem"440 }441 }442 }443 },444 "503": {445 "description": "internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.",446 "content": {447 "application/problem+json": {448 "schema": {449 "$ref": "#/components/schemas/Problem"450 }451 }452 }453 }454 },455 "x-documentation-source-tag": "Project agents",456 "x-canonical-documentation": {457 "domain": "agents",458 "resource": "Agents",459 "subgroup": "Agents",460 "name": "Create agent",461 "description": "Create agent. Requires project.agents.write.",462 "operationId": "createAgent"463 },464 "x-mint": {465 "href": "/cloud/rest/api-reference/agents-agents-agents/create-agent"466 }467}