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 '{
  "face": "obama",
  "profile": "interviewer",
  "behavior": "Assume the role of a doctor. You'\''re conducting an examination.",
  "time_limit": 300,
  "context": "- Candidate Name is Jon. - Position is Software Engineer."
}'
{
  "session_id": "1234567890abcdef"
}

Authorizations

X-API-KEY
string
headerrequired

Body

application/json
face
string
required

AI Face for session, see /faces for available faces

profile
string
required

AI Profile for session, see /profiles for available profiles

behavior
string

AI behaviour extension of set profile for session

time_limit
number

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

context
string

Additonal context for session, builds on top of selected profile

Response

201 - application/json
session_id
string

Session ID