NiCE Chat Requests API

: Chat Contact Management

GitHub OpenAPI

Operations 18

POST /agent-sessions/{sessionId}/interactions/add-chat Add a Chat Contact #
POST /agent-sessions/{sessionId}/interactions/add-text Add chat or sms contact #
POST /agent-sessions/{sessionId}/interactions/{contactId}/accept Accepts an incoming contact #
POST /agent-sessions/{sessionId}/interactions/{contactId}/reject Rejects an incoming contact #
POST /agent-sessions/{sessionId}/interactions/{contactId}/end Ends a contact.In the case of a voice call, this action will hang up the call #
POST /agent-sessions/{sessionId}/interactions/{contactId}/activate-chat Restore a chat to an active state #
POST /agent-sessions/{sessionId}/interactions/{contactId}/send-chat-text Send chat text to the patron #
POST /agent-sessions/{sessionId}/interactions/{contactId}/transfer-chat-to-agent Transfer chat to an agent #
POST /agent-sessions/{sessionId}/interactions/{contactId}/transfer-chat-to-skill Transfer chat to skill #
POST /agent-sessions/{sessionId}/interactions/{contactId}/typing Notify Patron Agent is Typing #
POST /contacts/chats Starts a Chat Session #
GET /contacts/chats/{chatSession} Gets any inbound chat text from an active chat session #
DELETE /contacts/chats/{chatSession} Ends an active Chat Session #
POST /contacts/chats/{chatSession}/send-text Sends a text to members of the chat session #
POST /contacts/chats/{chatSession}/typing Notify Agent Patron is Typing #
POST /contacts/chats/{chatSession}/typing-preview Sends Agent a Chat Preview #
POST /contacts/chats/send-email Sends chat transcript via email #
GET /points-of-contact/{pointsOfContactId}/chat-profile Return Chat Profile config #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nice:nice-chatrequests-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nice-chatrequests-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nice Chat Requests API
  version: v1
  description: 'Operations tagged ChatRequests across 4 of this provider''s published API definitions: nice-chatrequests.json, nice-patron-chatrequests.json, nice-chatrequests-openapi.yml, nice-patron-chatrequests-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: ChatRequests
  description: ': Chat Contact Management'
paths:
  /agent-sessions/{sessionId}/interactions/add-chat:
    post:
      tags:
      - ChatRequests
      summary: Add a Chat Contact
      description: If an agent is routed an incoming chat, and accepts it (i.e. the agent has an active chat), the agent is able to request additional chats be routed, allowing them to handle multiple chats at one time. This API call allows the application to request an additional chat. Making the call when there are no additional chats that can be routed to the agent will result in a 202 Accepted result, but no additional chat will be routed to the agent. Limiting the number of concurrent chats for an agent is enforced by the team configuration.
      operationId: addChatContact
      parameters:
      - $ref: '#/components/parameters/sessionId'
      responses:
        '202':
          description: Accepted
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid agent session Id.</p><p>Chat limit reached.</p>
        '409':
          description: Invalid state.
  /agent-sessions/{sessionId}/interactions/add-text:
    post:
      tags:
      - ChatRequests
      summary: Add chat or sms contact
      description: If an agent is routed an incoming chat or sms, and accepts it (i.e. the agent has an active chat), the agent is able to request additional chats or sms be routed, allowing them to handle multiple chats at one time. This API call allows the application to request an additional chat/sms. Making the call when there are no additional chats/sms that can be routed to the agent will result in a 202 Accepted result, but no additional chat/sms will be routed to the agent. Limiting the number of concurrent chats/sms for an agent is enforced by the team configuration.
      operationId: post-agent-sessions-id-interactions-add-text
      parameters:
      - name: sessionId
        in: path
        required: true
        description: An agent Session Id
        schema:
          type: string
      - name: mediaType
        in: query
        required: true
        description: Media Type Id, 7=SMS or 3=Chat
        schema:
          type: integer
          format: int32
      responses:
        '202':
          description: Accepted
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid agent session Id.</p><p>Text limit reached.</p>
        '409':
          description: <p>Invalid state.</p><p>Invalid Media Type.</p>
  /agent-sessions/{sessionId}/interactions/{contactId}/accept:
    post:
      tags:
      - ChatRequests
      summary: Accepts an incoming contact
      description: 'This API method allows an agent to indicate that they are willing to accept the chat. With the Phone channel, the agent indicates their ability and willingness to handle an incoming voice contact by answering the agent telephone when it rings. Failure to answer causes the system to requeue the phone contact for delivery to another agent.

        The Chat channel doesn''t use a phone, so there is no physical way for the agent to indicate that they are present and willing/able to handle the chat. Your application should prompt the agent to accept the incoming chat when an incoming chat event arrives. When the agent manually accepts the chat, you should send this API call to indicate that the agent has accepted it. Note that if the Accept a Chat request is not placed within 45 seconds, the chat is automatically "rejected", and placed back into queue, and the agent state is set to "Unavailable/Refused".


        v15.0 NOTE: adds new request parameter for “chatTarget” and supports “mediaType” 7 for SMS.'
      operationId: post-agent-sessions-id-interactions-id-accept
      parameters:
      - $ref: '#/components/parameters/sessionId'
      - $ref: '#/components/parameters/contactId'
      responses:
        '202':
          description: Accepted
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid agent session id.</p><p>Invalid contact id</p>
        '409':
          description: Invalid state.
  /agent-sessions/{sessionId}/interactions/{contactId}/reject:
    post:
      tags:
      - ChatRequests
      summary: Rejects an incoming contact
      description: 'This API method allows an agent to indicate that they are unwilling to accept the chat. With the Phone channel, the agent indicates they are unable to handle an incoming voice contact by not answering the agent telephone when it rings. This causes the system to requeue the phone contact for delivery to another agent.

        The Chat channel doesn''t use a phone, so there is no physical way for the agent to indicate that they are unable to handle the chat. Your application should prompt the agent to accept or reject the chat when an incoming chat event arrives. When the agent manually rejects the chat, you should send this API call to indicate that the agent has rejected it. Note that if the Reject a Chat request is not placed within 45 seconds, the chat is automatically "rejected", and placed back into queue, and the agent state is set to "Unavailable/Refused".


        v15.0 NOTE: adds support for “mediaType” 7 for SMS.'
      operationId: post-agent-sessions-id-interactions-id-reject
      parameters:
      - $ref: '#/components/parameters/sessionId'
      - $ref: '#/components/parameters/contactId'
      responses:
        '202':
          description: Accepted
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid agent session.</p><p>Invalid contact ID.</p>
        '409':
          description: Invalid state.
  /agent-sessions/{sessionId}/interactions/{contactId}/end:
    post:
      tags:
      - ChatRequests
      summary: Ends a contact.In the case of a voice call, this action will hang up the call
      description: 'This method will end the chat contact. This is similar to ending a phone call or work item. If the agent has only one active chat, ending the chat will move the agent to their "next" state. If there are multiple active chats routed to the agent, ending one of them simply results in the chat being ended.


        v15.0 NOTE: adds support for “mediaType” 7 for SMS.'
      operationId: post-agent-sessions-id-interactions-id-end
      parameters:
      - $ref: '#/components/parameters/sessionId'
      - $ref: '#/components/parameters/contactId'
      responses:
        '202':
          description: Accepted
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid agent session.</p><p>Invalid contact ID.</p>
        '409':
          description: Cannot end the contact at this time.
  /agent-sessions/{sessionId}/interactions/{contactId}/activate-chat:
    post:
      tags:
      - ChatRequests
      summary: Restore a chat to an active state
      description: 'The most recently routed chat becomes "active" for the agent. Only one chat can be considered "active" at any given time. The total aggregate time that a chat is "active" becomes a metric that can be reported on.

        You can have your application choose to "activate" any of the current chat contacts for the agent. A typical design pattern is to "activate" a chat based on some interaction from the agent (the agent selects a particular chat window, for example). Once a chat is activated, all other chats (including the current active chat) become "inactive", and the newly activated chat becomes "active".'
      operationId: activateChatContact
      parameters:
      - $ref: '#/components/parameters/sessionId'
      - $ref: '#/components/parameters/contactId'
      responses:
        '202':
          description: Accepted
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid agent session Id.</p><p>Invalid Contact Id.</p>
        '409':
          description: Invalid state.
  /agent-sessions/{sessionId}/interactions/{contactId}/send-chat-text:
    post:
      tags:
      - ChatRequests
      summary: Send chat text to the patron
      description: 'Use this API method to send text to a patron in a chat contact.


        v15.0 NOTE: adds new request parameter for “chatTarget” and supports “mediaType” 7 for SMS.'
      operationId: post-agent-sessions-id-interactions-id-send-chat-text
      parameters:
      - name: sessionId
        in: path
        required: true
        description: An agent Session Id
        schema:
          type: string
      - name: contactId
        in: path
        required: true
        description: Contact ID of the customer.
        schema:
          type: integer
      - name: chatText
        in: query
        required: true
        description: chat Text
        schema:
          type: string
      - name: chatTarget
        in: query
        required: true
        description: Only accepts “caller from system”, “agent from system”, “both from system”, “caller from agent”, “both from agent”.
        schema:
          type: string
      responses:
        '202':
          description: Accepted
        '400':
          description: <p>Invalid chatTarget - ChatTarget cannot be empty</p><p>Invalid chatTarget-'{0}'</p>
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid agent session Id.</p><p>Invalid Contact Id.</p>
        '409':
          description: Invalid state.
  /agent-sessions/{sessionId}/interactions/{contactId}/transfer-chat-to-agent:
    post:
      tags:
      - ChatRequests
      summary: Transfer chat to an agent
      description: 'You can transfer a chat into an agent''s personal queue, allowing the chat to be routed to a specific agent.


        v15.0 NOTE: adds support for “mediaType” 7 for SMS'
      operationId: post-agent-sessions-id-interactions-id-transfer-chat-to-agent
      parameters:
      - name: sessionId
        in: path
        required: true
        description: An agent Session Id
        schema:
          type: string
      - name: contactId
        in: path
        required: true
        description: Contact ID of the customer.
        schema:
          type: integer
          format: int64
      - name: targetAgentId
        in: query
        required: true
        description: Agent Id to transfer the chat to
        schema:
          type: integer
          format: int32
      responses:
        '202':
          description: Accepted
        '400':
          description: Invalid target Agent Id.
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid agent session.</p><p>Invalid Contact Id.</p>
        '409':
          description: <p>Invalid state.</p><p>Invalid target state.</p>
  /agent-sessions/{sessionId}/interactions/{contactId}/transfer-chat-to-skill:
    post:
      tags:
      - ChatRequests
      summary: Transfer chat to skill
      description: 'You can transfer a chat into a skill queue, allowing the chat to be routed to another available agent with that skill.


        v15.0 NOTE: adds support for “mediaType” 7 for SMS'
      operationId: post-agent-sessions-id-interactions-id-transfer-chat-to-skill
      parameters:
      - name: sessionId
        in: path
        required: true
        description: An agent Session Id
        schema:
          type: string
      - name: contactId
        in: path
        required: true
        description: Contact ID of the customer.
        schema:
          type: integer
          format: int64
      - name: targetSkillId
        in: query
        required: true
        description: Skill Id to transfer the chat to.
        schema:
          type: integer
          format: int32
      responses:
        '202':
          description: Accepted
        '400':
          description: Invalid target Skill Id.
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid agent session.</p><p>Invalid Contact Id.</p>
        '409':
          description: Invalid state.
  /agent-sessions/{sessionId}/interactions/{contactId}/typing:
    post:
      tags:
      - ChatRequests
      summary: Notify Patron Agent is Typing
      description: Use this API method to indicate to a Patron in a chat session that the Agent is typing a response or has entered the response in the session.
      operationId: AgentTyping
      parameters:
      - name: sessionId
        in: path
        required: true
        description: An Agent Session Id
        schema:
          type: string
      - name: contactId
        in: path
        required: true
        description: ID of the Contact
        schema:
          type: integer
      - name: isTyping
        in: query
        description: Indicates the Agent has started typing
        schema:
          type: boolean
        required: false
      - name: isTextEntered
        in: query
        description: Indicates the Agent has entered a response
        schema:
          type: boolean
        required: false
      responses:
        '202':
          description: Accepted
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid agent session Id.</p><p>Invalid Contact Id.</p>
        '409':
          description: <p>'Show Agent Typing Indicator' is disabled for the skill.</p><p>Invalid state.</p>
  /contacts/chats:
    post:
      tags:
      - ChatRequests
      summary: Starts a Chat Session
      description: 'This method should be used to request a chat session on behalf of a Patron. A contact will be created and queued to the Skill associated with the Point Of Contact identified by Point Of Contact.


        v15.0 NOTE: Method support creation of SMS contacts.'
      operationId: post-contacts-chats
      requestBody:
        description: Request payload for chat transcript
        content:
          application/json:
            schema:
              required:
              - mediaType
              - pointOfContact
              type: object
              properties:
                pointOfContact:
                  type: string
                  description: A chat point of context usually in the form of a GUID
                fromAddress:
                  type: string
                  description: A string indicating the party that initiated the chat
                chatRoomId:
                  type: integer
                  description: Optional chat room ID of an existing chat session to join
                mediaType:
                  type: integer
                  description: A number indicating the media by which the chat was initiated, 3 = Chat, 7 = SMS
                parameters:
                  type: array
                  items:
                    type: string
                    description: An optional list of parameter values to be passed to the POC script
        required: false
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                type: object
                properties:
                  chatSessionId:
                    type: string
                  contactId:
                    type: integer
        '400':
          description: Invalid Point of Contact Invalid Chat Room
        '401':
          description: Unauthorized
      x-codegen-request-body-name: requestPayload
  /contacts/chats/{chatSession}:
    get:
      tags:
      - ChatRequests
      summary: Gets any inbound chat text from an active chat session
      description: Returns the chat messages associated with an active chat session as well as returns the new "chatSession" value that should be passed into subsequent calls. If the original "chatSession" value is used, the method will return all chat messages, not just the ones since the last request.
      operationId: getChatText
      parameters:
      - name: chatSession
        in: path
        description: A reference to a chat session previously generated from StartChat
        required: true
        schema:
          type: string
      - name: timeout
        in: query
        description: must be between 0 and 60 seconds
        required: true
        schema:
          maximum: 60
          minimum: 0
          type: integer
          format: int32
      responses:
        '200':
          description: <p>New Messages</p><p>Message Missed</p>
          content:
            application/json:
              schema:
                title: ChatMessages
                type: object
                properties:
                  chatSession:
                    type: string
                    description: ''
                  messages:
                    type: array
                    description: ''
                    items:
                      title: singleReturnMessage
                      type: object
                      properties:
                        Label:
                          type: string
                          description: ''
                        PartyTypeId:
                          type: integer
                          description: ''
                        PartyTypeValue:
                          type: string
                          description: ''
                        Text:
                          type: string
                          description: Content of the message text
                        Timestamp:
                          type: string
                          description: Time that message text was sent
                          format: date-time
                      description: ''
                description: ''
        '304':
          description: No Messages
        '400':
          description: Invalid Timeout. Value must be between 0-60.
        '401':
          description: Unauthorized
        '404':
          description: <p>Session Ended</p><p>Invalid Chat Session</p>
    delete:
      tags:
      - ChatRequests
      summary: Ends an active Chat Session
      description: Ends the chat identified by {chatSession}.
      operationId: endChat
      parameters:
      - name: chatSession
        in: path
        description: Session ID that should be used in calls to the SendText, GetText, and EndChat methods
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                title: endChatObject
                type: object
                properties:
                  errorDescription:
                    type: string
                    description: If there is an error, the response body will contain a detailed description
                description: ''
        '401':
          description: Unauthorized
        '404':
          description: Invalid Chat Session
  /contacts/chats/{chatSession}/send-text:
    post:
      tags:
      - ChatRequests
      summary: Sends a text to members of the chat session
      operationId: post-contacts-chats-id-send-text
      description: Posts the string provided in "message" to the chat session identified by "chatSession". Text used to label the message when viewed by the recipient. If this is omitted, the label in the chat session message events will default to whatever was set using a "SetLabel" action inside the studio scripting.
      parameters:
      - name: chatSession
        description: A chat session ID previously obtained from StartChat
        required: true
        in: path
        schema:
          type: string
      requestBody:
        description: Send Text
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sendText'
      responses:
        '202':
          description: Accepted
        '400':
          description: <p><p><p>Invalid Chat Room</p><p>No Message Provided</p></p><p> Invalid chatTarget - cannot be empty</p></p><p>Invalid ChatTarget-'{0}'</p>
        '404':
          description: <p>Invalid Chat Session</p><p>Session Ended</p>
  /contacts/chats/{chatSession}/typing:
    post:
      tags:
      - ChatRequests
      summary: Notify Agent Patron is Typing
      description: Use this API method to indicate to an Agent in a chat session that the Patron is typing a response or has entered the response in the session.
      operationId: PatronTyping
      parameters:
      - name: chatSession
        in: path
        description: A chat session ID obtained when chat is started
        required: true
        schema:
          type: string
      - name: isTyping
        in: query
        description: Indicates the Patron has started typing
        schema:
          type: boolean
      - name: isTextEntered
        in: query
        description: Indicates the Patron has entered a response
        schema:
          type: boolean
      - name: label
        in: query
        description: Label that is associated with the customer.  Should be the same as the label used in the send-text method
        schema:
          type: string
      responses:
        '202':
          description: Accepted
        '404':
          description: Invalid chatSession Id.
  /contacts/chats/{chatSession}/typing-preview:
    post:
      tags:
      - ChatRequests
      summary: Sends Agent a Chat Preview
      description: This method sends the text typed into the chat interface as the Patron is typing it and before they have hit the enter key. This functionality must be enabled on the Chat Skill as defined in Central.
      operationId: PatronTypingPreview
      parameters:
      - name: chatSession
        in: path
        description: A chat session ID obtained when chat is started
        required: true
        schema:
          type: string
      - name: previewText
        in: query
        description: Text that has been entered by the Patron in the chat interface
        schema:
          type: string
      - name: label
        in: query
        description: Label that is associated with the preview.  Should be the same as the label used in the send-text method
        schema:
          type: string
      responses:
        '200':
          description: No Party Listening
        '202':
          description: Accepted
        '400':
          description: Invalid Chat Room
        '403':
          description: Security privileges prevent access to data
        '404':
          description: <p>Invalid Chat Session</p><p>Session Ended</p>
        '409':
          description: '''Show Patron Typing Preview'' is disabled for the skill'
  /contacts/chats/send-email:
    post:
      tags:
      - ChatRequests
      summary: Sends chat transcript via email
      description: This method sends the chat transcript to an email address.
      operationId: post-contacts-chats-send-email
      requestBody:
        description: Request payload for chat transcript
        content:
          application/json:
            schema:
              required:
              - emailBody
              - fromAddress
              - toAddress
              type: object
              properties:
                toAddress:
                  type: string
                  description: Address the email was sent to
                fromAddress:
                  type: string
                  description: Address the email was sent from
                emailBody:
                  type: string
                  description: Body of the email
        required: true
      responses:
        '200':
          description: Success
        '400':
          description: Error in parsing Message
        '401':
          description: Unauthorized
        '404':
          description: Invalid Email Address
      x-codegen-request-body-name: requestPayload
  /points-of-contact/{pointsOfContactId}/chat-profile:
    get:
      tags:
      - ChatRequests
      summary: Return Chat Profile config
      description: This method returns the configuration for a chat profile. "pointOfContactId" accepts Point of Contact address from the Point of Contact list page in Central or the "contactAddress" using the GET v1.0/points-of-contact API. It also only returns chat profiles with interfaceType "V2(HTML5)". Chat profiles with "V1 (ASPX)" value will return an invalid profile.
      operationId: getPointChatProfile
      parameters:
      - name: pointsOfContactId
        in: path
        description: A chat point of contact usually in the form of a GUID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  chatProfile:
                    type: object
                    properties:
                      chatProfileId:
                        type: integer
                      chatProfileName:
                        type: string
                      chatInterfaceTypeId:
                        type: integer
                      'topBarColor ':
                        type: string
                        description: Color parameter for Top Bar visual element in v2 Chat UI
                      'topBarTextColor ':
                        type: string
                        description: Color parameter for Text in Top Bar visual element in v2 Chat UI
                      'agentChatBubbleColor ':
                        type: string
                        description: Color parameter for Agent Chat Bubble visual element in v2 Chat UI
                      'agentChatBubbleTextColor ':
                        type: string
                        description: Color parameter for Text in Agent Chat Bubble visual element in v2 Chat UI
                      chatAppearance:
                        type: object
                        properties:
                          primaryColor:
                            type: string
                          primaryTextColor:
                            type: string
                          agentColor:
                            type: string
                          agentInitialColor:
                            type: string
                          font:
                            type: string
                          chatButtonPosition:
                            type: string
                      preChatFormEnabled:
                        type: boolean
                      preChatWelcomeMessage:
                        type: string
                      preChatFields:
                        type: array
                        items:
                          type: object
                          properties:
                            fieldType:
                              type: string
                            fieldLabel:
                              type: string
                            fieldIsRequired:
                              type: boolean
                            fieldOptions:
                              type: array
                              items:
                                type: object
                                properties:
                                  label:
                                    type: string
                      waitingEnabled:
                        type: boolean
                      waitingMessage:
                        type: string
                      waitingBackgroundColor:
                        type: string
                      waitingTextColor:
                        type: string
                      waitingLogo:
                        type: string
                      heroImage:
                        type: string
                      legacyAppearance:
                        type: array
                        items:
                          type: object
                          properties:
                            logoImage:
                              type: string
                            chatHeaderBackground:
                              type: string
                            chatStatusBackground:
                              type: string
                            chatBackground:
                              type: string
                            chatFooterBackground:
                              type: string
                            font:
                              type: string
                            chatBorderStyle:
                              type: string
                            chatBorderColor:
                              type: string
                            primaryButtonBackground:
                              type: string
                            isBackgroundGradient:
                              type: string
                            fontSizeSmall:
                              type: string
                            fontSizeRegular:
                              type: string
                            fontSizeLarge:
                              type: string
                            systemMessageColor:
                              type: string
                            agentMessageBackground:
                              type: string
                            agentMessageColor:
                              type: string
                            customerMessageBackground:
                              type: string
                            customerMessageColor:
                              type: string
                            chatStatusColorConnected:
                              type: string
                            chatStatusColorWaiting:
                              type: string
                            chatStatusColorQnA:
                              type: string
                            chatStatusColorEnd:
                              type: string
        '400':
          description: Invalid pointOfContactId
        '401':
          description: Unauthorized
        '404':
          description: <p>Invalid Chat Session</p><p>Session Ended</p>
components:
  parameters:
    contactId:
      name: contactId
      in: path
      required: true
      description: Contact Id
      schema:
        type: integer
    sessionId:
      name: sessionId
      in: path
      required: true
      description: Agent Session Id
      schema:
        type: string
  schemas:
    sendText:
      title: ' '
      required:
      - label
      - message
      type: object
      properties:
        label:
          type: string
          description: Text used to label the message when viewed by the recipient
        message:
          type: string
          description: The literal text to send to the recipient(s)
        chatTarget:
          type: string
          description: Update the target with possible values <br /> <ul><li><b>CallerFromSystem:</b> A system-generated message is sent to the chat contact only. The contact sees that the system originated the message. This option would be appropriate for a message such as 'An agent will be with you shortly'.</li><li><b>AgentFromSystem:</b> A system-generated message is sent to the agent only. The agent sees that the system originated the message.</li><li><b>BothFromSystem:</b> A system-generated message is sent to both the agent and the chat contact. Both parties see that the system originated the message.</li></ul>
x-refined-from:
- nice-chatrequests.json
- nice-patron-chatrequests.json
- nice-chatrequests-openapi.yml
- nice-patron-chatrequests-openapi.yml