Chats

Add chat member

Share an org chat with a member of the org: they can read and write it, and it appears in their chats.

post/chats/{chat_id}/members

Request

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

Path parameters

chat_idstring required

Chat ID

Request body

member_idstring required

The org member to add to the chat (member_...)

Response

idstring required
titlestring nullable required

The title of the chat

modelstring required

The model used for the chat

org_idstring
temporaryboolean required

Whether the chat is temporary and would be deleted after 24 hours of last activity

visibility'PRIVATE' | 'PUBLIC_READ' | 'PUBLIC_WRITE' required

The visibility of the chat

pinnedboolean required

Whether the chat is pinned in the user interface

status'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELED' required

The status of the chat

linkstring

The link to the chat in the integration

shared_urlstring nullable required

The shared URL of the chat, if it is shared

spendnumber

What the organization paid for this chat's AI turns, in USD; org chats only

created_atstring date-time nullable required
updated_atstring date-time nullable required

Example response

{
  "last_message": {
    "messages": [
      {
        "parts": [
          {
            "audio": {
              "file_filename": "document.pdf",
              "file_size": 1024,
              "file_mimetype": "application/pdf"
            }
          }
        ]
      }
    ]
  },
  "referral": {
    "parts": [
      {
        "file": {
          "file_filename": "document.pdf",
          "file_size": 1024,
          "file_mimetype": "application/pdf"
        }
      }
    ]
  }
}

Changes

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