Skip to main content
POST
/
personas
/
preview
Generate persona preview
curl --request POST \
  --url https://app2.freyavoice.ai/api/v2/personas/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agentId": "<string>",
  "prompt": "<string>",
  "count": 3,
  "seed": 123
}
'
{
  "success": true,
  "data": {
    "message": "<string>",
    "result": {
      "personas": [
        {
          "name": "<string>",
          "prompt": "<string>",
          "successCriteria": "<string>",
          "tags": [
            "<string>"
          ]
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
agentId
string
required
prompt
string
required
Minimum string length: 1
count
integer
default:3
Required range: 1 <= x <= 10
seed
integer

Response

Generated personas

success
enum<boolean>
required
Available options:
true,
false
data
object
required