Skip to main content
POST
/
api
/
v2
/
appuid
/
{appUid}
/
agents
Create a new agent
curl --request POST \
  --url https://a.api.mindset.ai/api/v2/appuid/{appUid}/agents \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "agentName": "<string>",
  "agentPurpose": "<string>",
  "templateAgentUid": "<string>",
  "personality": {
    "preset": "friendly",
    "customText": "<string>"
  },
  "formatting": {
    "preset": "conversational",
    "customText": "<string>"
  },
  "policies": {
    "focusAndScope": {
      "enabled": false,
      "scope": "<string>"
    },
    "knowledgeLimits": {
      "enabled": false,
      "themeSpecificAllowance": "<string>"
    },
    "nonContextSegmentMessage": {
      "enabled": false,
      "message": "<string>"
    },
    "clarification": {
      "enabled": false
    },
    "recommendations": {
      "enabled": false
    },
    "neutrality": {
      "enabled": false
    },
    "professionalConduct": {
      "enabled": false
    },
    "legalFinancial": {
      "enabled": false
    },
    "safeguarding": {
      "enabled": false,
      "email": "[email protected]"
    },
    "feedback": {
      "enabled": false
    }
  },
  "additionalPolicyRules": "<string>",
  "additionalInformation": "<string>",
  "iceBreakerMessage": "<string>",
  "memory": {
    "allowAccess": false,
    "allowContribution": false,
    "miningGuidance": "<string>"
  },
  "live": false,
  "contextUids": [
    "<string>"
  ],
  "mcpserverUids": [
    "<string>"
  ],
  "tags": [
    "<string>"
  ],
  "access": "restrictedAccess",
  "externalTenantId": "<string>"
}
'
{
  "uid": "<string>",
  "agentName": "<string>",
  "agentPurpose": "<string>",
  "personality": {
    "preset": "friendly",
    "customText": "<string>"
  },
  "formatting": {
    "preset": "conversational",
    "customText": "<string>"
  },
  "policies": {
    "focusAndScope": {
      "enabled": false,
      "scope": "<string>"
    },
    "knowledgeLimits": {
      "enabled": false,
      "themeSpecificAllowance": "<string>"
    },
    "nonContextSegmentMessage": {
      "enabled": false,
      "message": "<string>"
    },
    "clarification": {
      "enabled": false
    },
    "recommendations": {
      "enabled": false
    },
    "neutrality": {
      "enabled": false
    },
    "professionalConduct": {
      "enabled": false
    },
    "legalFinancial": {
      "enabled": false
    },
    "safeguarding": {
      "enabled": false,
      "email": "[email protected]"
    },
    "feedback": {
      "enabled": false
    }
  },
  "additionalPolicyRules": "<string>",
  "additionalInformation": "<string>",
  "iceBreakerMessage": "<string>",
  "memory": {
    "allowAccess": false,
    "allowContribution": false,
    "miningGuidance": "<string>"
  },
  "live": true,
  "contextUids": [
    "<string>"
  ],
  "mcpserverUids": [
    "<string>"
  ],
  "tags": [
    "<string>"
  ],
  "access": "openAccess",
  "externalTenantId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Path Parameters

appUid
string
required

Your application's uid

Minimum string length: 1

Body

application/json
agentName
string
required

Name of the agent

Required string length: 1 - 50
agentPurpose
string
required

Purpose of the agent

Required string length: 1 - 1000
templateAgentUid
string

UID of an existing agent to use as a template for sources presentation options (citations, references etc)

personality
object

Agent personality configuration

formatting
object

Agent response formatting configuration

policies
object

Agent policy configuration with 10 toggleable policies

additionalPolicyRules
string

Additional free-form policy rules

Maximum string length: 500
additionalInformation
string

Additional context information for the agent

Maximum string length: 65535
iceBreakerMessage
string

Invisible instruction to prompt the agent to greet users in a specific way

Maximum string length: 1000
memory
object

Agent memory configuration. Note: Memory access must be enabled at the app level for these settings to take effect.

live
boolean
default:false

Agent is active and live for end users

contextUids
string[]

Array of existing context UIDs (max 30)

Maximum array length: 30
mcpserverUids
string[]

Array of existing MCP server UIDs (max 5)

Maximum array length: 5
tags
string[]

Array of tags (max 10)

Maximum array length: 10
Required string length: 1 - 60
access
enum<string>
default:restrictedAccess

Access control mode for this agent

Available options:
openAccess,
restrictedAccess
externalTenantId
string

External tenant identifier (alphanumeric, underscore, hyphen only)

Maximum string length: 100

Response

Agent created successfully

uid
string

Unique ID of the agent

agentName
string

Name of the agent

agentPurpose
string

Purpose of the agent

personality
object

Agent personality configuration

formatting
object

Agent response formatting configuration

policies
object

Agent policy configuration with 10 toggleable policies

additionalPolicyRules
string

Additional free-form policy rules

additionalInformation
string

Additional context information for the agent

iceBreakerMessage
string

Invisible instruction to prompt the agent to greet users in a specific way

memory
object

Agent memory configuration. Note: Memory access must be enabled at the app level for these settings to take effect.

live
boolean

Agent is active and live for end users

contextUids
string[]

Array of context UIDs

mcpserverUids
string[]

Array of MCP server UIDs

tags
string[]

Array of tags

access
enum<string>

Access control mode

Available options:
openAccess,
restrictedAccess
externalTenantId
string

External tenant identifier

createdAt
string<date-time>

Creation timestamp (ISO 8601)