Skip to content
Developer

Chatroom

Chat and notifications13 EndpointsChat / Chatroom

Returns a list of all Chatrooms

GET/api/chat/chatroom

Query parameters

namestring_LIST, LOGGED_IN_LIST, C1, C2
createdstring_LIST, LOGGED_IN_LIST, C1, C2
companystring_LIST, LOGGED_IN_LIST, C1, C2
eventstring_LIST, LOGGED_IN_LIST, C1, C2
deletedbooleanThis property is used to mark an entity as deleted / archived | _LIST, C1
trustLevelstringBerechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper. | _LIST, C1
handoverAtstringSeit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper. | _LIST, C1
personstringDie Person, deren persoenlicher Assistenten-Raum das hier ist. Genau eine Person plus Bot - die Logik dazu folgt, das Feld steht schon. | _LIST, C1
mediaQuestionnaireAnswerstring_LIST, C1
idstringRequires access right: C1, C2
searchStringstringtext to search for in the list
orderFieldNamestringname of the order field
orderFieldSortstringsorting modeAllowed: DESCASC
pageintegerpage of the list
pageSizeintegernumber of entries for each page
withMaxPageNumberstringreturns the number of pages available as a header if this is set

Responses

200Returns a list of all Chatroomsarray<Chatroom3>

Show fields (20)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/chat/chatroom \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
[
  {
    "id": 42,
    "name": "Beispiel",
    "image_url": "https://vynst.de",
    "unread_count": 1,
    "is_unread": true,
    "chatbot_active": true,
    "member_managed": true,
    "support_status": "string",
    "token": "string",
    "notification_token": "string"
  }
]

Add a new Chatroom

POST/api/chat/chatroom

Request body application/json

  • dataChatroom4
    Show fields (22)
    • unread_countinteger
    • is_unreadboolean
    • chatbot_activeboolean

      Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

    • member_managedboolean

      Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

    • is_support_roomboolean

      Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

    • support_statusstring

      Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

    • idinteger

      Primary key of the chat room. Internal ID.

    • tokenstring

      Token that identifies the chat room.

    • notification_tokenstring

      Token used for notifications of the chat room.

    • participantsarray<ChatroomParticipant4>

      Participants of the chat room.

    • last_read_atstring (date-time)

      A timestamp of the last time a admin participant read the chatroom

    • message_count_readinteger

      Number of messages read.

    • trust_levelstring

      Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

    • member_started_typestring

      Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

    • handover_atstring (date-time)

      Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

    • handover_reasonstring

      Siehe HANDOVER_REASON_*.

    • support_snoozed_untilstring (date-time)

      Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

Responses

200Add a new ChatroomChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/chat/chatroom \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '
{
  "data": {
    "id": 42,
    "name": "Beispiel",
    "image_url": "https://vynst.de",
    "unread_count": 1,
    "is_unread": true,
    "chatbot_active": true
  }
}
'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}

Returns a single Chatroom entry.

GET/api/chat/chatroom/{identifier}

Path parameters

identifierrequiredstring

Responses

200Return single ChatroomChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/chat/chatroom/42 \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}

Updates an existing Chatroom entry.

PUT/api/chat/chatroom/{identifier}

Path parameters

identifierrequiredstring

Request body application/json

  • dataChatroom4
    Show fields (22)
    • unread_countinteger
    • is_unreadboolean
    • chatbot_activeboolean

      Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

    • member_managedboolean

      Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

    • is_support_roomboolean

      Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

    • support_statusstring

      Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

    • idinteger

      Primary key of the chat room. Internal ID.

    • tokenstring

      Token that identifies the chat room.

    • notification_tokenstring

      Token used for notifications of the chat room.

    • participantsarray<ChatroomParticipant4>

      Participants of the chat room.

    • last_read_atstring (date-time)

      A timestamp of the last time a admin participant read the chatroom

    • message_count_readinteger

      Number of messages read.

    • trust_levelstring

      Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

    • member_started_typestring

      Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

    • handover_atstring (date-time)

      Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

    • handover_reasonstring

      Siehe HANDOVER_REASON_*.

    • support_snoozed_untilstring (date-time)

      Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

Responses

200Update single ChatroomChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request PUT \
  --url https://your-instance.iw-erp.de/api/chat/chatroom/42 \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '
{
  "data": {
    "id": 42,
    "name": "Beispiel",
    "image_url": "https://vynst.de",
    "unread_count": 1,
    "is_unread": true,
    "chatbot_active": true
  }
}
'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}

Updates an existing Chatroom entry.

PATCH/api/chat/chatroom/{identifier}

Path parameters

identifierrequiredstring

Request body application/json

  • dataChatroom4
    Show fields (22)
    • unread_countinteger
    • is_unreadboolean
    • chatbot_activeboolean

      Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

    • member_managedboolean

      Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

    • is_support_roomboolean

      Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

    • support_statusstring

      Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

    • idinteger

      Primary key of the chat room. Internal ID.

    • tokenstring

      Token that identifies the chat room.

    • notification_tokenstring

      Token used for notifications of the chat room.

    • participantsarray<ChatroomParticipant4>

      Participants of the chat room.

    • last_read_atstring (date-time)

      A timestamp of the last time a admin participant read the chatroom

    • message_count_readinteger

      Number of messages read.

    • trust_levelstring

      Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

    • member_started_typestring

      Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

    • handover_atstring (date-time)

      Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

    • handover_reasonstring

      Siehe HANDOVER_REASON_*.

    • support_snoozed_untilstring (date-time)

      Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

Responses

200Update single ChatroomChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request PATCH \
  --url https://your-instance.iw-erp.de/api/chat/chatroom/42 \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '
{
  "data": {
    "id": 42,
    "name": "Beispiel",
    "image_url": "https://vynst.de",
    "unread_count": 1,
    "is_unread": true,
    "chatbot_active": true
  }
}
'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}

Delete a single Chatroom

DELETE/api/chat/chatroom/{identifier}

Path parameters

identifierrequiredstring

Responses

200Return single ChatroomChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request DELETE \
  --url https://your-instance.iw-erp.de/api/chat/chatroom/42 \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}

Liefert den persoenlichen Assistenten-Raum der eingeloggten Person und legt ihn beim ersten Aufruf an.

POST/api/chat/chatroom/assistant

Read genuegt: der Aufruf beruehrt ausschliesslich die eigene Person, das Profil kommt aus den Einstellungen und ist nicht frei waehlbar.

Responses

200Der persoenliche Assistenten-Raum der eingeloggten PersonChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/chat/chatroom/assistant \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}

Status und Zuweisung eines Support-Raums setzen (chatroom_support_inbox_enabled, sonst 8618).

PUT/api/chat/chatroom/{identifier}/support

Nur gesendete Felder aendern sich, null leert sie. Fehler: 8625 kein Support-Raum, 8626 unbekannter Status, ungueltiges Datum oder unbekannte Person bzw. Gruppe.

Path parameters

identifierrequiredstring

Request body application/json

  • statusstring

    Allowed: open snoozed resolved

  • snoozed_untilstring (date-time)

    Nur fuer snoozed; leer = bis der Kunde schreibt

  • assigned_userinteger

    Benutzer-Id, null = niemand

  • assigned_groupinteger

    Benutzergruppen-Id, null = keine

Responses

200Der Raum mit neuem Status und neuer ZuweisungChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request PUT \
  --url https://your-instance.iw-erp.de/api/chat/chatroom/42/support \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '
{
  "status": "open",
  "snoozed_until": "2026-10-15T09:30:00+02:00",
  "assigned_user": 1,
  "assigned_group": 1
}
'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}

Status und Zuweisung eines Support-Raums setzen (chatroom_support_inbox_enabled, sonst 8618).

PATCH/api/chat/chatroom/{identifier}/support

Nur gesendete Felder aendern sich, null leert sie. Fehler: 8625 kein Support-Raum, 8626 unbekannter Status, ungueltiges Datum oder unbekannte Person bzw. Gruppe.

Path parameters

identifierrequiredstring

Request body application/json

  • statusstring

    Allowed: open snoozed resolved

  • snoozed_untilstring (date-time)

    Nur fuer snoozed; leer = bis der Kunde schreibt

  • assigned_userinteger

    Benutzer-Id, null = niemand

  • assigned_groupinteger

    Benutzergruppen-Id, null = keine

Responses

200Der Raum mit neuem Status und neuer ZuweisungChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request PATCH \
  --url https://your-instance.iw-erp.de/api/chat/chatroom/42/support \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '
{
  "status": "open",
  "snoozed_until": "2026-10-15T09:30:00+02:00",
  "assigned_user": 1,
  "assigned_group": 1
}
'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}
Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/chat/chatroom_support_assignees \
  --header 'x-iw-jwt-token: <TOKEN>'

Den Verlauf eines anonymen Besuchers in den Support-Chat des Haushalts der Person uebernehmen (chatroom_support_merge_visitor_enabled, sonst 8618). Der Besucher verliert den Zugang zum alten Raum, der geschlossen wird. Fehler: 8627 kein Besucher im Raum, Person ohne Haushalt.

POST/api/chat/chatroom/{identifier}/merge_visitor

Path parameters

identifierrequiredstring

Request body application/json

  • personinteger

    CRM-Person, der der Besucher entspricht

Responses

200Der Support-Chat des Haushalts mit dem uebernommenen VerlaufChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/chat/chatroom/42/merge_visitor \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '{"person":1}'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}

Das Team uebernimmt einen Support-Raum: die KI zieht sich zurueck, ohne dass schon jemand geschrieben hat (Support-Modus, "Uebernehmen").

POST/api/chat/chatroom/{identifier}/handover

Path parameters

identifierrequiredstring

Responses

200Die KI uebergibt den Raum an das TeamChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/chat/chatroom/42/handover \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}

Die KI antwortet im Raum wieder.

DELETE/api/chat/chatroom/{identifier}/handover

Path parameters

identifierrequiredstring

Responses

200Die KI antwortet im Raum wiederChatroom4

Show fields (22)
  • unread_countinteger
  • is_unreadboolean
  • chatbot_activeboolean

    Antwortet hier gerade die KI? Fuer den Support-Modus der Verwaltung: dort kann das Team den Raum dann uebernehmen.

  • member_managedboolean

    Event- und freie Gruppenraeume verwalten Mitglieder bzw. Raum-Admins mit (verlassen, aufnehmen); Support-, Assistenten- und Fragebogen-Raeume nur die Verwaltung. Die Apps blenden danach die Raum-Optionen ein.

  • is_support_roomboolean

    Ist das der Haushalts-Chat mit dem Verein (Support-Chat)? Die Kunden-Apps sehen die Firma nicht und zeigen damit den Hinweis auf die Buerozeiten (chatroom_support_office_hours_enabled).

  • support_statusstring

    Der Status, wie die Inbox ihn zeigt: ein abgelaufenes Zurueckstellen zaehlt als offen.

  • idinteger

    Primary key of the chat room. Internal ID.

  • tokenstring

    Token that identifies the chat room.

  • notification_tokenstring

    Token used for notifications of the chat room.

  • participantsarray<ChatroomParticipant4>

    Participants of the chat room.

    Show fields (30)
    • idinteger

      Primary key of the participant. Internal ID.

    • participant_typestring

      Type of the participant.

    • public_sessionPublicSession4

      Public session of the participant.

    • first_namestring

      First name of the participant.

    • last_namestring

      Last name of the participant.

    • nicknamestring

      Nickname of the participant.

    • preferred_color_hexstring

      Preferred color of the participant as hex value.

    • avatar_tokenstring

      Token of the avatar image.

    • last_read_atstring (date-time)

      A timestamp of the last time this participant read the chatroom

    • message_count_readinteger

      Number of messages read by the participant.

    • room_adminboolean

      A flag to indicate if this participant can delete messages in the chatroom + rename the chatroom + add or remove participants

    • can_writeboolean

      A flag to indicate if this participant can write messages

    • is_mutedboolean

      A flag to indicate if this participant wants to receive notifications

    • auto_createdboolean

      A flag to indicate if this participant was auto created by being in a company or event

    • reply_modestring

      Override zum Antwortmodus des Profils: always | mention | question. Leer heisst: der Wert aus dem Profil gilt.

    • ai_auto_close_secret_wordstring

      A word as the last part of an ai reply that will close the chatroom. Used for AI bots.

    • ai_promptstring

      The system prompt for the AI bot. Used for AI bots.

    • ai_number_of_context_messagesinteger

      The number of messages we add to the context of the AI bot. Used for AI bots.

    • messenger_channelstring

      sms | whatsapp - set for an external participant who writes to the support over SMS or WhatsApp; answers in the room go back over this channel (MessengerSupportChatHelper).

    • messenger_phone_numberstring

      Mobile number of the messenger participant, E.164 digits without +.

    • messenger_verified_atstring (date-time)

      Point in time the messenger was verified.

    • left_atstring (date-time)

      Wann die Person den Raum verlassen hat bzw. von einem Raum-Admin entfernt wurde. Solange das gesetzt ist, nimmt der Event-Abgleich sie nicht wieder auf.

    • left_reasonstring

      self | room_admin, siehe LEFT_REASON_*

    • notify_levelstring

      Wann diese Person eine Push-Benachrichtigung bekommt: all | mentions | none, siehe NOTIFY_LEVEL_* (Einstellung chatroom_mute_enabled). Leer heisst: is_muted entscheidet (alt, von der Verwaltung gesetzt), sonst alle.

    • muted_untilstring (date-time)

      Bis wann der Raum ganz stumm ist ("fuer 8 Stunden aus"), danach gilt wieder notify_level.

    • createdstring (date-time)

      Point in time the entity was created.

    • updatedstring (date-time)

      Point in time the entity was last updated.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

    • namestring

      Name of the entity.

    • image_urlstring

      URL of the image of the entity.

  • last_read_atstring (date-time)

    A timestamp of the last time a admin participant read the chatroom

  • message_count_readinteger

    Number of messages read.

  • trust_levelstring

    Berechnete Vertrauensstufe, siehe TRUST_LEVEL_*. Nur lesend nach aussen; gesetzt wird sie ausschliesslich vom ChatroomTrustLevelHelper.

  • member_started_typestring

    Von Mitgliedern gestartet (Paket D): "direct" (1:1, chatroom_member_direct_enabled) oder "group" (Gruppe eines Trainers, chatroom_trainer_groups_enabled); null fuer alle anderen Raeume.

  • handover_atstring (date-time)

    Seit wann die KI sich aus dem Raum zurueckgezogen hat. Solange das gesetzt ist, antwortet kein Profil-Bot mehr; der Raum wartet auf das Team. Gesetzt und geloescht nur vom ChatbotHandoverHelper.

  • handover_reasonstring

    Siehe HANDOVER_REASON_*.

  • support_snoozed_untilstring (date-time)

    Zurueckgestellt bis; danach zaehlt der Raum wieder als offen.

  • createdstring (date-time)

    Point in time the entity was created.

  • updatedstring (date-time)

    Point in time the entity was last updated.

  • deletedboolean

    This property is used to mark an entity as deleted / archived

  • namestring

    Name of the entity.

  • image_urlstring

    URL of the image of the entity.

Request
curl --request DELETE \
  --url https://your-instance.iw-erp.de/api/chat/chatroom/42/handover \
  --header 'x-iw-jwt-token: <TOKEN>'
Response 200 application/json
{
  "id": 42,
  "name": "Beispiel",
  "image_url": "https://vynst.de",
  "unread_count": 1,
  "is_unread": true,
  "chatbot_active": true,
  "member_managed": true,
  "is_support_room": true,
  "support_status": "string",
  "token": "string"
}