Skip to content

Create Persona

POST /agents/{agent_id}/personas
NameInTypeNotes
agent_idpathstring (uuid)required—
FieldTypeNotes
slugstringrequired—
namestringrequiredmin length 1 max length 200
prompt_suffixstring | nulloptional—
tool_subsetstring[] | nulloptional—
sub_agent_subsetstring[] | nulloptional—
model_refstring | nulloptionalmax length 200
model_paramsobject | nulloptional—
attributesobjectoptional—
is_activebooleanoptionalDefault true.
StatusDescriptionBody
201Successful ResponsePersonaView
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/agents/{agent_id}/personas \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"slug": "string",
"name": "string"
}'
FieldTypeNotes
idstring (uuid)required—
agent_idstring (uuid)required—
scopeworkspace | organization | platformrequired—
slugstringrequired—
namestringrequired—
prompt_suffixstring | nullrequired, nullable—
tool_subsetstring[] | nullrequired, nullable—
sub_agent_subsetstring[] | nullrequired, nullable—
model_refstring | nullrequired, nullable—
model_paramsobject | nullrequired, nullable—
attributesobjectrequired—
is_activebooleanrequired—
created_atstring (date-time)required—
updated_atstring (date-time)required—