Docs menuAI session details
API documentationBahasa Indonesia

GET/api/v2/ai/sessions/{session_id}

AI session details

What Klik Flow remembers of one session: the last turns, the status, and when the session ends.

To show the conversation again in your app. A session ends 24 hours after its last message (expires_at); after that, 404. status: handoff means the session was handed over to a person, with the reason in handoff_reason. Fill in agent_id when the same session_id is used with more than one agent.

Key
kf_live_ / kf_test_… in the Authorization: Bearer header. Created in Settings › API & Webhook › Create key (Pengaturan › API & Webhook › Buat kunci).
Key scope
ai:reply
Plan feature
WhatsApp sending API, AI Agent (automatic replies)

Path parameters

  • session_idstringrequired

    The session_id sent to Ask the AI for an answer.

Query parameters

  • agent_idinteger

    Agent id. Required when this session_id is used with more than one agent.

Possible errors

Try it

Try it with a test key
Path parameters
Query parameters
/api/v2/ai/sessions/{session_id}

Send WhatsApp from your system with the Klik Flow API.

Mulai dengan paket Free. Ajak tim setelah ruang kerja siap.