FruxonDocs
AgentsCore

Creates a new agent.

Provisions a new agent shell with an empty draft revision and grants the calling user the Admin role on it. No flow is deployed yet — the agent is not executable until you build a revision via the agent-revisions endpoints and deploy it with `POST /v1/tenants/{tenant}/agents/{agent}/revisions/{revision}:deploy`. Returns 201 with the new agent's ID, which is used in the path of all subsequent agent-scoped calls.

POST
/v1/tenants/{tenant}/agents
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

tenant*string

The tenant identifier

The agent creation request.

id*string
Length1 <= length
displayName?string
description?string
avatarFileId?string|null
type?string

Enum representing the different types of AI agents supported by Fruxon. Wire form is UPPER_SNAKE; Unspecified = 0 is the AIP-126 zero-sentinel.

This enum is mandatory, meaning every agent must have a specific type.

Value in"UNSPECIFIED" | "SUMMARIZATION" | "RECOMMENDATION" | "ANALYZER" | "CHAT" | "OTHER"
tags?array<string>
networkId?string

The Application selected to own this Agent at creation.

Formatuuid
origin?string

Where the agent's reasoning loop runs. Defaults to Fruxon.Model.Agents.External.AgentOrigin.Native. When set to a non-native value, Fruxon.Model.Agents.CreateAgent.ExternalConfig is required.

Value in"UNSPECIFIED" | "NATIVE" | "LANG_GRAPH" | "CREW_AI" | "OPEN_AI_ASSISTANTS" | "DIFY"
externalConfig?

Required when Fruxon.Model.Agents.CreateAgent.Origin is non-native. Holds the remote-platform connection details.

[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/agents" \  -H "Content-Type: application/json" \  -d '{    "id": "string"  }'
{
  "id": "string",
  "displayName": "string",
  "description": "string",
  "avatarFileId": "string",
  "type": "SUMMARIZATION",
  "tags": [
    "string"
  ],
  "enabled": false,
  "currentRevision": 0,
  "createdAt": 0,
  "modifiedAt": 0,
  "origin": "NATIVE",
  "networkId": "00000000-0000-0000-0000-000000000000"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty