Skip to main content
For developers and coding agents

Build on your organisation's personas.

Ask them questions from your own app, script or coding agent, over plain HTTPS and JSON.

  • Plain HTTPS and JSON
  • One header to authenticate
  • llms.txt for coding agents
Ask a persona a questionList, create, stream, send: the same calls as the Personaas app4 CALLS
# 1. list your personas and their tasks
curl "$PERSONAAS_BASE_URL/api/v1/personas/" \
-H "x-personaas-key: $PERSONAAS_API_KEY"
# → [ { "id": 12, "name": "HR Assistant", "tasks": [ { "id": 40, … } ] } ]

# 2. create a conversation with one persona and task
curl -X POST "$PERSONAAS_BASE_URL/api/v1/activity/" \
-H "x-personaas-key: $PERSONAAS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "persona_id": 12, "task_id": 40 }'

# 3. open its stream: the answer arrives here as it is written
curl -N "$PERSONAAS_BASE_URL/api/v2/activity/$ACTIVITY_ID/stream" \
-H "x-personaas-key: $PERSONAAS_API_KEY"

# 4. in another terminal, send the question
curl -X POST \
"$PERSONAAS_BASE_URL/api/$PERSONAAS_ENGINE/activity/$ACTIVITY_ID/message" \
-H "x-personaas-key: $PERSONAAS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "input": "How many leave days can I carry over?" }'
  1. 1Get your API key
  2. 2Make your first call
  3. 3Ask a persona a question

Something not working? See Troubleshooting or Get help.