Buat Sesi
Membuat sesi chat baru. Sesi mewakili satu thread percakapan dan mempertahankan history (konteks) interaksi. Langkah ini wajib sebelum mengirim pesan.
HTTP Request
POST
/api/sessionContoh Request
curl -X POST https://api.aksita.ai/api/session \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_API_KEY"
Response Sukses
200 OK
{
"status": true,
"data": {
"conversation_id": "123e4567-e89b-..."
},
"detail": "Sesi berhasil dibuat"
}Response Error
API Key tidak valid atau hilang
401 Unauthorized
{
"status": false,
"reason": "API Key Tidak Valid"
}Server gagal membuat sesi
500 Internal Server Error
{
"status": false,
"reason": "gagal membuat sesi"
}