POST
/
session
Create Conversation
curl --request POST \
  --url https://ella.navgurukul.org/api/session \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "topic": "My Favorite Animal"
}
'
{
  "session_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "topic": "<string>",
  "header_title": "<string>",
  "duration_seconds": 123,
  "session_type": "<string>",
  "quality": "<string>",
  "completed": false,
  "starter": "<string>"
}

Authorizations

Authorization
string
header
default:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1N2U0NDg0NC04YWRiLTQyNTgtYWI4Mi05MWNmNDUxZTQ4OGEiLCJleHAiOjIwOTY4Njg2Njh9._oyjz0enX_sLYvidUm4EUMq5oTNUpxZmowoxIf5J7dc
required

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

Body

application/json
topic
string | null

Response

Successful Response

session_id
string
required
created_at
string<date-time>
required
topic
string | null
header_title
string | null
duration_seconds
integer | null
session_type
string | null
quality
string | null
completed
boolean
default:false
starter
string | null