curl --request POST \
  --url https://api.honeyhive.ai/session/start \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "session": {
    "project": "Simple RAG Project",
    "source": "playground",
    "event_type": "session",
    "session_name": "Playground Session",
    "session_id": "caf77ace-3417-4da4-944d-f4a0688f3c23",
    "event_id": "caf77ace-3417-4da4-944d-f4a0688f3c23",
    "parent_id": null,
    "children_ids": [
      "7f22137a-6911-4ed3-bc36-110f1dde6b66"
    ],
    "inputs": {
      "context": "Hello world",
      "question": "What is in the context?",
      "chat_history": [
        {
          "role": "system",
          "content": "Answer the user'\''s question only using provided context.\n\nContext: Hello world"
        },
        {
          "role": "user",
          "content": "What is in the context?"
        }
      ]
    },
    "outputs": {
      "role": "assistant",
      "content": "Hello world"
    },
    "error": null,
    "start_time": 1712025501605,
    "end_time": 1712025499832,
    "duration": 824.8056,
    "metrics": {},
    "feedback": {},
    "metadata": {},
    "user_properties": {
      "user": "google-oauth2|111840237613341303366"
    }
  }
}'
{
  "session_id": "<string>"
}

Authorizations

Authorization
string
headerrequired

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

Body

application/json
session
object

Response

200 - application/json
session_id
string