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.
Path parameters
session_idstringrequiredThe
session_idsent to Ask the AI for an answer.
Query parameters
agent_idintegerAgent id. Required when this
session_idis used with more than one agent.
Possible errors
- 401
missing_keyAPI key not sent - 401
key_invalidUnknown API key - 401
key_revokedAPI key revoked - 401
key_expiredAPI key expired - 401
member_inactiveKey creator is no longer a member - 403
ip_not_allowedServer IP not in the key's list - 403
plan_no_apiPlan does not include the API for live keys - 403
tenant_blockedBusiness access suspended - 403
scope_missingKey lacks this permission - 403
permission_missingKey creator's role lacks this permission - 404
not_foundNot found - 422
invalid_requestInvalid field - 429
rate_limitedToo many requests per minute - 500
internal_errorProblem at Klik Flow
Try it
Try it with a test key
/api/v2/ai/sessions/{session_id}