Create a new persona
Create a new persona for the authenticated user.
This endpoint:
- Creates a new persona with the provided name and description
- Associates the persona with the authenticated user
- Returns the created persona with all metadata
**Authentication**: Requires valid API key or JWT token
Request body
Example request
{
"description": "A persona specialized in creative writing and storytelling",
"name": "Creative Writer"
}Response
Successful Response
Example response
{
"message": "Persona created successfully",
"persona": {
"created_at": "2023-01-01T00:00:00Z",
"description": "A persona specialized in creative writing",
"name": "Creative Writer",
"persona_id": "123e4567-e89b-12d3-a456-426614174000",
"user_email": "john@example.com",
"user_id": "456e7890-e89b-12d3-a456-426614174001",
"user_name": "John Doe"
}
}Changes
Changed in 2 of the 29 revisions of this API.13
- ○
added the optional property
detailsto the response with the400statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the401statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the422statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the500statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the400statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the401statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the422statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the500statusresponse-optional-property-added
- ○
added the required property
error_codeto the response with the400statusresponse-required-property-added
- ○
added the required property
error_codeto the response with the401statusresponse-required-property-added
- ○
added the required property
error_codeto the response with the422statusresponse-required-property-added
- ○
added the required property
error_codeto the response with the500statusresponse-required-property-added
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○