PATCH
/
conversations
/
{conversation-id}

Example JS Code to Update Conversation Status

const apiUrl = 'https://api.chatvolt.ai';
const apiKey = 'XXX';
const conversationId = 'XXX';

const res = await fetch(
  `${apiUrl}/conversations/${conversationId}/set-status`,
  {
    method: 'POST',
    body: JSON.stringify({
      status: 'RESOLVED', // Valid values: RESOLVED, UNRESOLVED, HUMAN_REQUESTED
    }),
    headers: {
      'Content-Type': 'application/json',
      Authorization: `Bearer ${apiKey}`,
    },
  }
);

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

conversation-id
string
required

ID of the conversation

Body

application/json
status
enum<string>
required
Available options:
RESOLVED,
UNRESOLVED,
HUMAN_REQUESTED

Response

200 - application/json
id
string
title
string | null
isAiEnabled
boolean
channel
string
status
enum<string>
Available options:
RESOLVED,
UNRESOLVED,
HUMAN_REQUESTED
metadata
object
channelExternalId
string | null
channelCredentialsId
string | null
organizationId
string
mailInboxId
string | null
priority
string
formId
string | null
agentId
string | null
userId
string | null
visitorId
string | null
createdAt
string
updatedAt
string
lead
object | null
agent
object
messages
object[]
organization
object