Get Persona
GEThttps://api.confident-ai.com/v2/personas/{personaId}
Retrieves a persona by id, including the characteristics the simulator plays it with. This is the text to read when a simulated conversation did not sound the way you expected: the persona supplies who is talking, while the golden it is attached to supplies what they want.
curl -X GET "https://api.confident-ai.com/v2/personas/{personaId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<PERSONA-ID>",
"name": "Frustrated support caller",
"characteristics": "An impatient customer who has already been transferred twice. Types in lowercase, asks short direct questions, and pushes back when given a generic answer.",
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-16T09:12:00.000Z"
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/personas",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
personaIdstringRequiredThe id of the persona.
Response
Get Persona succeeded.
successbooleanIndicates if the request was successful.
dataobjectA reusable character for the simulated user in a multi-turn conversation. Confident AI simulates conversations against your LLM app from multi-turn goldens, and a golden that names a persona has its user side played in character: the persona supplies who is talking, while the golden supplies what they want and when the conversation is done. Defining the character once here is what keeps 'a frustrated customer who types in lowercase' from being retyped on every row, and lets you compare runs where only the user changed.
Show 5 propertiesHide 5 properties
idstringThe id of the persona, generated by Confident AI.
namestringThe name of the persona, unique within the project.
characteristicsstringHow this persona behaves in a conversation, as the simulator reads it on every user turn.
createdAtstringThe time the persona was created, as an ISO 8601 datetime.
updatedAtstringThe time the persona was last changed, as an ISO 8601 datetime.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.