Rest API
Get conversation details
GET
/api/v1/ai/conversations/details
const url = 'https://api.unless.com/api/v1/ai/conversations/details?conversations__conversationId=example';const options = { method: 'GET', headers: { 'x-api-key': 'example', 'x-user-email': 'example', 'x-account-id': 'example', 'x-website-id': 'example' }};
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://api.unless.com/api/v1/ai/conversations/details?conversations__conversationId=example' \ --header 'x-account-id: example' \ --header 'x-api-key: example' \ --header 'x-user-email: example' \ --header 'x-website-id: example'The stored analysis of one conversation: its metadata, sentiment, rating, outcome and tags.
Notes
conversations__conversationIdis required- A conversation belonging to another account or workspace answers
404, not403 - Use
GET /api/v1/visitors/conversationswith aconversationIdwhen you want the messages rather than the analysis - Conversation data passes the workspace’s API output filters (Trust > Privacy in the dashboard). By default no metadata is returned, PII in the transcript is replaced with
*****andanalysisis left out; readapiOutputMetadataModeandapiOutputFilterPIIfrom the AI configuration to see what applies
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-api-key
required
string
Your API key from account settings.
x-user-email
required
string
The email address of your user.
x-account-id
required
string
The ID of your account. You can find this in the account settings.
x-website-id
required
string
The ID of the workspace you want to use.
Query Parameters
Section titled “Query Parameters”conversations__conversationId
required
string
The conversation’s id.
conversationUrl
string
Responses
Section titled “Responses”The conversation’s details.
Bad request - missing websiteId or conversation id.
Unauthorized - invalid API key.
The conversation does not belong to this account and workspace.