Sessions
Get Session
GET
/v1/sessions/{thread_id}HTTPBearerheader
AuthorizationBearer <token>AskRAI API key
thread_id*Thread IdThe conversation's thread ID, spelled as its queries sent it: a UUID of any version: its 32 hex digits in any case, hyphenated 8-4-4-4-12 or not, bare, in braces or after urn:uuid:.
Successful Response
application/json- response
thread_id*Thread IdConversation thread identifier
messages?array<>The conversation's newest 200 turns at most, in chronological order: each turn's question and, when it has one, its answer
truncated?TruncatedTrue when the conversation has more than 200 turns, so its older turns were left out of messages
Default
falsecurl -X GET 'https://public.askrai.ai/v1/sessions/string'Example Response
{ "thread_id": "string", "messages": [ { "role": "string", "content": "string", "timestamp": "2019-08-24T14:15:22Z", "id": "string" } ], "truncated": false}