NiCE Contacts API

: General Contact Management

GitHub OpenAPI

Operations 16

GET /contacts/{contactId}/chat-transcript Returns active Chat or SMS transcript #
GET /contacts/{contactId}/disposition Returns disposition details for that particular digital/ACD contact id #
GET /contacts/{contactId}/historical-chat-transcript Returns historical chat transcript #
GET /contacts/{contactId}/email-transcript Returns an Email Transcript #
GET /contacts/{contactId}/files Returns a Contacts Files #
POST /contacts/{contactId}/end Force a contact to be disconnected and to end #
POST /contacts/{contactId}/monitor Starts monitoring a phone call #
POST /contacts/{contactId}/record Allows to begin the recording of an active phone call #
POST /contacts/{contactId}/set-disposition Set Disposition For Contact #
POST /contacts/{contactId}/tags Assigns Tags to a Contact #
GET /contact-state-descriptions Returns a list of contact states #
GET /contact-state-descriptions/{contactStateId} Returns a single contact state #
PUT /persistent-contacts/{contactId} Update Persistent Contact #
POST /interactions/{contactId}/signal Create a Signal for a Contact #
GET /contacts/{contactId}/sms-historical-transcript Returns SMS transcript #
GET /contacts/sms-historical-contacts Returns past SMS contacts #

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-contacts-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-contacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nice Contacts API
  version: v1
  description: 'Operations tagged Contacts across 2 of this provider''s published API definitions: nice-admin-contacts.json, nice-admin-contacts-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Contacts
  description: ': General Contact Management'
paths:
  /contacts/{contactId}/chat-transcript:
    get:
      tags:
      - Contacts
      summary: Returns active Chat or SMS transcript
      description: This method returns the transcript of an active Chat or SMS contact identified by contactId. This method will only return the chat transcript for up to 48 hours. After 48 hours the chat transcript will be available using the GET /contacts/{contactId}/historical-chat-transcript method.
      operationId: ChatTranscript
      parameters:
      - $ref: '#/components/parameters/contactId'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getChatTranscriptResponse'
        '401':
          description: Unauthorized
        '404':
          description: Invalid Contact Id
  /contacts/{contactId}/disposition:
    get:
      tags:
      - Contacts
      summary: Returns disposition details for that particular digital/ACD contact id
      description: 'The Disposition details API endpoint is designed to facilitate the retrieval of disposition details associated with a specific ACD or digital contact ID. Disposition details are pivotal in understanding the outcome or status of digital interactions, thereby aiding in analyzing customer engagements and shaping future strategies.

        A unique identifier assigned to each interaction, facilitating precise retrieval of disposition details pertaining to the designated ACD or Digital contact.


        Upon successful invocation, the method returns a structured JSON object encapsulating essential disposition details relevant to the specified ACD or Digital contact ID.'
      operationId: get-contacts-id-disposition
      parameters:
      - name: contactId
        in: path
        required: true
        description: Digital/ACD contact Id
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  dispositionId:
                    type: integer
                    description: Id of the disposition
                  dispositionName:
                    type: string
                    description: Name of the disposition
                  dispositionByAgendId:
                    type: integer
                    description: Id of the AgendId for disposition
                  notes:
                    type: string
                    description: Notes of the reason for disposition
                  lastUpdated:
                    type: string
                    format: datetime
                    description: Last updated datetime stamp for a disposition
        '401':
          description: Unauthorized
        '404':
          description: Data Not Found
        '400':
          description: Invalid parameter
  /contacts/{contactId}/historical-chat-transcript:
    get:
      tags:
      - Contacts
      summary: Returns historical chat transcript
      description: This method returns a historical chat transcript by ContactId.
      operationId: getHistoricalChatTranscript
      parameters:
      - $ref: '#/components/parameters/contactId'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  transcript:
                    type: object
                    properties:
                      cloudState:
                        type: string
                      transcript:
                        type: array
                        items:
                          type: object
                          properties:
                            text:
                              type: string
                            timestamp:
                              type: string
                              format: date-time
                            partyType:
                              type: string
                            label:
                              type: string
                            roomId:
                              type: integer
        '401':
          description: Unauthorized
        '404':
          description: Invalid Contact Id
  /contacts/{contactId}/email-transcript:
    get:
      tags:
      - Contacts
      summary: Returns an Email Transcript
      description: This method returns the transcript of the Email contact identified by contactId.
      operationId: EmailTranscript
      parameters:
      - $ref: '#/components/parameters/contactId'
      - name: includeAttachments
        in: query
        description: Indicates if the attachments should be included
        schema:
          type: boolean
        required: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getEmailTranscriptResponse'
        '204':
          description: No email transcript available
        '400':
          description: Invalid includeAttachments - {0}
        '404':
          description: Invalid contactId - '{0}'
  /contacts/{contactId}/files:
    get:
      tags:
      - Contacts
      summary: Returns a Contacts Files
      description: This method returns the files associates with the Contact identified by "contactId".
      operationId: ContactFiles
      parameters:
      - name: contactId
        in: path
        required: true
        description: ID of the Contact
        schema:
          type: integer
      - name: fields
        in: query
        description: Comma separated list of elements to return in response
        schema:
          type: string
        required: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                title: Files
                description: Collection of Contact Files
                properties:
                  files:
                    type: array
                    items:
                      title: files
                      description: Files
                      properties:
                        isDeleted:
                          type: boolean
                          description: Indicates if file has been deleted from the file system
                        businessUnitId:
                          type: integer
                          description: ID of the Business Unit
                        fileName:
                          type: string
                          description: Name of the file
                        fullFileName:
                          type: string
                          description: Full path to file
                        weblink:
                          type: boolean
                          description: Indicates if the file is a weblink for example an Agent indicator
                        contactId:
                          type: integer
                          description: ID of the Contact
                        createDate:
                          type: string
                          format: date-time
                          description: Date the file was created
                        modifiedDate:
                          type: string
                          format: date-time
                          description: Date the file was modified
                        accessDate:
                          type: string
                          format: date-time
                          description: Date the file was last accessed
                        authorId:
                          type: integer
                          description: ID of the User that created the file
                        modifiedId:
                          type: integer
                          description: ID of the User that modified the file
                        size:
                          type: integer
                          description: Size of the file in bytes
                        physicalBytes:
                          type: integer
                          description: Size of the file in bytes including header info
                        deleteDate:
                          type: string
                          format: date-time
                          description: Date the file was deleted
                        purposeId:
                          type: integer
                          description: ID of the type of file
                        purposeName:
                          type: integer
                          description: Name of the type of file
                        mailStatusId:
                          type: integer
                          description: ID of the email contact status
                        mailStatusName:
                          type: string
                          description: Name of the email contact status
                      required:
                      - isDeleted
                      - businessUnitId
                      - fileName
                      - fullFileName
                      - weblink
                      - contactId
                      - createDate
                      - modifiedDate
                      - accessDate
                      - authorId
                      - modifiedId
                      - size
                      - physicalBytes
                      - deleteDate
                      - purposeId
                      - purposeName
                      - mailStatusId
                      - mailStatusName
        '204':
          description: <p>No files associates with contactId - {parameter value}</p><p>File access for contactId '{parameter value}' pending</p>
        '400':
          description: <p>Invalid fields list {parameter value}</p><p>Invalid {parameter name} - '{parameter value}'</p>
  /contacts/{contactId}/end:
    post:
      tags:
      - Contacts
      summary: Force a contact to be disconnected and to end
      description: 'Can be useful for ending "stuck" contacts (where both parties have ended their respective legs, but the contact still shows as "active" on the platform).


        WARNING: This will end the contact and disconnect all parties (for phone contacts) without regard to the state of the contact. Use with caution!'
      operationId: endAContact
      parameters:
      - $ref: '#/components/parameters/contactId'
      responses:
        '202':
          description: Accepted
        '401':
          description: Unauthorized
        '403':
          description: Insufficient permissions
        '404':
          description: Invalid Contact Id
        '405':
          description: 'Method Not Allowed: must use POST'
        '409':
          description: 'Conflict: The contact is already ended'
        '500':
          description: 'Internal Server Error: contact tech support'
  /contacts/{contactId}/monitor:
    post:
      tags:
      - Contacts
      summary: Starts monitoring a phone call
      description: 'The inContact platform will call the phone number you specify, and begin streaming the voice interaction to that phone. Monitoring is a one-way action: you can hear the conversation, but you can not participate in it.'
      operationId: monitorAContactCall
      parameters:
      - $ref: '#/components/parameters/contactId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postContactMonitorRequest'
        description: Content Body
      responses:
        '202':
          description: Accepted
        '400':
          description: <p>Number Length Exceeded</p><p>Invalid Phone Number</p>
        '401':
          description: Unauthorized
        '403':
          description: Insufficient permissions
        '404':
          description: Invalid Contact Id
        '405':
          description: 'Method Not Allowed: must use POST'
        '409':
          description: 'Conflict: If contact is ended, or is not a phone contact'
        '500':
          description: 'Internal Server Error: contact tech support'
  /contacts/{contactId}/record:
    post:
      tags:
      - Contacts
      summary: Allows to begin the recording of an active phone call
      description: Once you begin recording a call, there is no way to stop the recording until the call is ended.
      operationId: recordAContact
      parameters:
      - $ref: '#/components/parameters/contactId'
      responses:
        '202':
          description: Accepted
        '401':
          description: Unauthorized
        '403':
          description: Insufficient permissions.<p>Invalid Security User.</p>
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: access_denied
                  error_description:
                    type: string
                    description: Forbidden
        '404':
          description: Invalid Contact Id
        '405':
          description: 'Method Not Allowed: must use POST'
        '409':
          description: 'Conflict: If contact is ended, or is not a phone contact'
        '500':
          description: 'Internal Server Error: contact tech support'
  /contacts/{contactId}/set-disposition:
    post:
      tags:
      - Contacts
      summary: Set Disposition For Contact
      description: Sets the disposition for an active outbound dialer contact. This is only available for outbound dialer. This will then suppress the agent disposition experience in MAX.
      operationId: post-contacts-id-set-disposition
      parameters:
      - name: contactId
        in: query
        required: true
        description: Contact Id
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                dispositionInfo:
                  type: object
                  properties:
                    skill:
                      type: string
                      description: Id of the Skill
                    dispositionCode:
                      type: string
                      description: Id of the disposition
                    callbackNumber:
                      type: string
                      description: Phone Number to callback the contact
                    callbackTime:
                      type: string
                      description: Time to callback the contact
                    commitmentAmount:
                      type: string
                      description: Commitment Amount in decimal
                    notes:
                      type: string
                      description: Notes of the reason for disposition
                  required:
                  - skill
                  - dispositionCode
        required: true
      responses:
        '200':
          description: Success
        '400':
          description: <p>Skill Not Running<p>Skill Not Configured For Dispositioning Via Script</p><p>Unable To Determine BusNo</p><p>SpecifiedDisposition Has No Classification</p><p>Invalid Contact ID</p><p>Invalid Skill</p><p>Invalid Disposition Code</p><p>Invalid Commitment Amount</p><p>Invalid Callback Time</p>
        '401':
          description: Invalid Security User
  /contacts/{contactId}/tags:
    post:
      tags:
      - Contacts
      summary: Assigns Tags to a Contact
      description: This method assigns Tags to the contact identified by contactId.
      operationId: AssignTagsContact
      parameters:
      - $ref: '#/components/parameters/contactId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postContactTagsRequest'
        description: Content Body
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/postContactTagsResponse'
        '400':
          description: Invalid tags - cannot be null or empty
        '404':
          description: Invalid contactId - {0}
  /contact-state-descriptions:
    get:
      tags:
      - Contacts
      summary: Returns a list of contact states
      description: Can be useful in presenting categories of contact states in a report or dashboard.
      operationId: getContactStateDescriptions
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getContactStateDescriptions'
        '401':
          description: 'Unauthorized: token is expired'
        '403':
          description: 'Insufficient Privileges: security profile prevents access'
        '404':
          description: 'Not Found: invalid contact state ID'
        '405':
          description: 'Method Not Allowed: must use GET'
        '500':
          description: 'Internal Server Error: contact tech support'
  /contact-state-descriptions/{contactStateId}:
    get:
      tags:
      - Contacts
      summary: Returns a single contact state
      description: Can be useful in presenting categories of contact states in a report or dashboard.
      operationId: getContactStateById
      parameters:
      - name: contactStateId
        in: path
        required: true
        description: Contact State Id
        schema:
          type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getContactStateDescriptions'
        '401':
          description: 'Unauthorized: token is expired'
        '403':
          description: 'Insufficient Privileges: security profile prevents access'
        '404':
          description: Invalid Contact State Id
        '405':
          description: 'Method Not Allowed: must use GET'
        '500':
          description: 'Internal Server Error: contact tech support'
  /persistent-contacts/{contactId}:
    put:
      tags:
      - Contacts
      summary: Update Persistent Contact
      description: 'This method is used to update a persistent contact that is in queue.


        NOTE: Persistent contacts are limited to 10 per second.'
      operationId: put-persistent-contacts-id
      parameters:
      - name: contactId
        in: path
        required: true
        description: Contact ID to update
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                persistentContact:
                  type: object
                  properties:
                    skillId:
                      type:
                      - integer
                      - 'null'
                    targetAgentId:
                      type:
                      - integer
                      - 'null'
                    initialPriority:
                      type:
                      - integer
                      - 'null'
                    acceleration:
                      type:
                      - integer
                      - 'null'
                    maxPriority:
                      type:
                      - integer
                      - 'null'
              required:
              - persistentContact
        description: A Dynamic Data object containing the persistent contact information to upate
      responses:
        '200':
          description: Success
        '401':
          description: Invalid Security User
        '404':
          description: <p><p>Invalid Contact ID</p><p>Invalid Contact State</p></p><p>{0}</p>
        '409':
          description: Too many requests
  /interactions/{contactId}/signal:
    post:
      tags:
      - Contacts
      summary: Create a Signal for a Contact
      description: This method can be used to send up to 9 custom data variables into a script environment. This call can be made outside of an Agent Session with only the contactId value needed.
      operationId: SignalAContact
      parameters:
      - $ref: '#/components/parameters/contactId'
      - name: p1
        in: query
        description: Custom data
        schema:
          type: string
        required: false
      - name: p2
        in: query
        description: Custom data
        schema:
          type: string
        required: false
      - name: p3
        in: query
        description: Custom data
        schema:
          type: string
        required: false
      - name: p4
        in: query
        description: Custom data
        schema:
          type: string
        required: false
      - name: p5
        in: query
        description: Custom data
        schema:
          type: string
        required: false
      - name: p6
        in: query
        description: Custom data
        schema:
          type: string
        required: false
      - name: p7
        in: query
        description: Custom data
        schema:
          type: string
        required: false
      - name: p8
        in: query
        description: Custom data
        schema:
          type: string
        required: false
      - name: p9
        in: query
        description: Custom data
        schema:
          type: string
        required: false
      responses:
        '202':
          description: Accepted
        '404':
          description: Invalid Contact Id
        '403':
          description: Insufficient permissions
        '401':
          description: Unauthorized
  /contacts/{contactId}/sms-historical-transcript:
    get:
      tags:
      - Contacts
      summary: Returns SMS transcript
      description: This method will return a sms transcript from storage services by “contactId”. “businessUnitId” is a required parameter added to the request url.
      operationId: Get-contacts-id-sms-historical-transcript
      parameters:
      - $ref: '#/components/parameters/contactId'
      - name: businessUnitId
        in: query
        required: true
        description: ID of the Business Unit
        schema:
          type: integer
      responses:
        '200':
          description: Success
        '401':
          description: Unauthorized
        '404':
          description: Invalid Contact Id or Invalid Business Unit Id
  /contacts/sms-historical-contacts:
    get:
      tags:
      - Contacts
      summary: Returns past SMS contacts
      description: This method will return all past contactIds for a requested “skillId” and “ani” from storage services. “ani”, “skillId”, and “businessUnitId” are required as part of the request url.
      operationId: get-contacts-sms-historical-contacts
      parameters:
      - name: ani
        in: query
        required: true
        description: ani
        schema:
          type: integer
      - name: skillId
        in: query
        required: true
        description: Skill Id
        schema:
          type: integer
      - name: businessUnitId
        in: query
        required: true
        description: ID of the Business Unit
        schema:
          type: integer
      responses:
        '200':
          description: Success
        '401':
          description: Unauthorized
        '404':
          description: Invalid Contact Id or Invalid Business Unit Id
components:
  schemas:
    getChatTranscriptResponse:
      title: ' '
      type: object
      required:
      - messages
      properties:
        messages:
          type: array
          description: Collection of Chats
          items:
            title: messages
            description: messages
            required:
            - Text
            - TimeStamp
            - PartyType
            - Label
            - RoomId
            properties:
              Text:
                type: string
                description: Text that has to be sent
              TimeStamp:
                type: string
                format: date-time
                description: Timestamp
              PartyType:
                type: string
                description: PartyType
              Label:
                type: string
                description: Label
              RoomId:
                type: integer
                description: RoomId
    getEmailTranscriptResponse:
      title: ' '
      type: object
      required:
      - emails
      properties:
        emails:
          type: array
          description: Collection of Emails
          items:
            title: Email
            description: Email
            required:
            - emailTypeId
            - sentDate
            - fromAddress
            - toAddress
            - ccAddress
            - bccAddress
            - subject
            - bodyHtml
            properties:
              emailTypeId:
                type: integer
                description: ID of the email type such as inbound, reply, forward etc.
              sentDate:
                type: string
                format: date-time
                description: Date the email was sent
              fromAddress:
                type: string
                description: Address the email was sent from
              toAddress:
                type: string
                description: Address the email was sent to
              ccAddress:
                type: string
                description: Address the email was copied to
              bccAddress:
                type: string
                description: Address the email was blind copied to
              subject:
                type: string
                description: Subject of the email
              rawFileName:
                type: string
                description: Location of raw email log file
              bodyHtml:
                type: string
                description: Body of the email
              hasAttachments:
                type: boolean
                description: Indicates if email has attachments
              attachments:
                type: array
                description: Collection of Attachments
                items:
                  title: Attachment
                  description: Attachment
                  required:
                  - attachmentName
                  - attachment
                  properties:
                    attachmentName:
                      type: string
                      description: Attachment Name
                    attachment:
                      type: string
                      description: Attachment Content (Base64 encoded)
    postContactTagsResponse:
      title: ' '
      type: object
      required:
      - resultSet
      properties:
        resultSet:
          items:
            title: ResultSet
            description: Result Set
            required:
            - errorCount
            - tagResults
            properties:
              errorCount:
                type: integer
                description: Number of unsuccessful tag assignments
              tagResults:
                type: array
                description: Collection of Tag Results
                items:
                  title: TagResult
                  description: ''
                  required:
                  - success
                  properties:
                    success:
                      type: boolean
                      description: Tag Assignment Success State
                    tagId:
                      type: integer
                      description: Tag Id. Only returned if assignment was successful
                    error:
                      type: string
                      description: Tag Assignment Error. Only returned if assignment was unsuccessful
    postContactTagsRequest:
      title: ' '
      type: object
      required:
      - tags
      properties:
        tags:
          type: array
          description: Collection of Tags to assign
          items:
            title: Tag
            required:
            - tagId
            properties:
              tagId:
                type: integer
                description: Tag Id to assign to Contact
    postContactMonitorRequest:
      title: ' '
      type: object
      required:
      - phoneNumber
      properties:
        phoneNumber:
          type: number
          description: Phone Number
    getContactStateDescriptions:
      title: ' '
      type: object
      required:
      - contactStateDescriptions
      properties:
        contactStateDescriptions:
          type: array
          description: Collection of Contact States
          items:
            title: ContactState
            description: Contact State
            required:
            - ContactStateCategory
            - ContactStateDescription
            - ContactStateId
            properties:
              ContactStateCategory:
                type: string
                description: Contact State Category
              ContactStateDescription:
                type: string
                description: Contact State Description
              ContactStateId:
                type: integer
                description: Contact State Id
  parameters:
    contactId:
      name: contactId
      in: path
      required: true
      description: Contact Id
      schema:
        type: integer
x-refined-from:
- nice-admin-contacts.json
- nice-admin-contacts-openapi.yml