POST
/
conversations
/
{conversationId}
/
assign

Example JS Code to Assign a Conversation

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

const res = await fetch(`${apiUrl}/conversations/${conversationId}/assign`, {
  method: 'POST',
  body: JSON.stringify({
    email: 'user@email.com',
  }),
  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

conversationId
string
required

ID of the conversation to be assigned.

Body

application/json
email
string
required

Email of the user to whom the conversation will be assigned.

id
string

ID of the user to whom the conversation will be assigned.

membershipId
string

ID of the membership to whom the conversation will be assigned.

Response

200 - application/json
success
boolean
message
string