POST
/
create-session
curl --request POST \
  --url https://engine.diarupt.ai/create-session \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "behavior": "Assume the role of a doctor. You'\''re conducting an examination.",
  "context": "- Candidate Name is Jon. - Position is Software Engineer.",
  "face": "obama",
  "profile": "interviewer",
  "time_limit": 300
}'
{
  "session_id": "1234567890abcdef"
}

Authorizations

X-API-KEY
string
headerrequired

Body

application/json
behavior
string

AI behaviour extension of set profile for session

context
string

Additonal context for session, builds on top of selected profile

face
string
required

AI Face for session, see /faces for available faces

profile
string
required

AI Profile for session, see /profiles for available profiles

time_limit
number

Time limit for session in seconds, if 0 or not set then no time limit

Response

201 - application/json
session_id
string

Session ID