Read a conversation with Rosie
GET
/public/assistant/sessions/{id}
const url = 'https://example.com/public/assistant/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/public/assistant/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'The conversation so far, its guide links and any register interest draft, for showing it again on a new page.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”The conversation
Media typeapplication/json
object
sessionId
required
string format: uuid
surface
required
string
status
required
string
expiresAt
required
string format: date-time
turnsLeft
required
integer
messages
required
Array<object>
object
id
required
string format: uuid
role
required
string
text
required
string
sources
required
Array<object>
object
title
required
string
url
required
string format: uri
createdAt
required
string format: date-time
interestDraft
required
object
name
string
business
string
email
string format: email
phone
string
vans
string
current_system
string
accounting
string
online_shop
string
biggest_pain
string
Example
{ "surface": "website", "status": "open", "messages": [ { "role": "visitor" } ], "interestDraft": { "vans": "1", "current_system": "paper", "accounting": "xero", "online_shop": "shopify" }}Missing, wrong or expired session token
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Rosie is not set up here
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}