Chats

Assign conversation

Assign or unassign a conversation to/from a team member.

patch/chats/{chat_id}/state/assign

Request

  • Base URL: https://api.useinvent.com
  • URL: https://api.useinvent.com/chats/{chat_id}/state/assign
  • Auth: HTTP bearer

Path parameters

chat_idstring required

Chat ID

Request body

member_idstring nullable required

Member ID to assign. Set to null to unassign.

Response

idstring required
state'OPEN' | 'CLOSED' required

The state status of the chat

channel_type'internal' | 'org' | 'agent' | 'custom' | 'whatsapp_bot' | 'messenger_bot' | 'instagram_dm' | 'tiktok_dm' | 'telegram_bot' | 'slack_bot' | 'teams_bot' | 'gmail' | 'outlook' | 'twilio' | 'telnyx' | 'email' | 'smpp' required

The channel type

conversation_idstring required

The ID of the conversation associated with the chat

assigned_atstring date-time nullable
ai_enabledboolean required

Whether AI is enabled for the chat

admin_unseen_countnumber required

The number of unseen messages in the chat

user_unseen_countnumber required

The number of unseen messages in the chat

follow_up_atstring date-time nullable

Scheduled follow-up datetime

muted_untilstring date-time nullable

Mute expiry datetime (null = not muted)

free_window_expires_atstring date-time nullable

When the free entry point window closes: templates sent before it are not charged. It never extends the reply window (null = no free window)

csat_scoreinteger nullable

Customer satisfaction score (1-5)

last_contact_message_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.