NiCE Work Items API

: Work Items Contact Management

GitHub OpenAPI

Operations 5

POST /agent-sessions/{sessionId}/interactions/{contactId}/accept Accept a work item #
POST /agent-sessions/{sessionId}/interactions/{contactId}/reject Reject a work item #
POST /agent-sessions/{sessionId}/interactions/{contactId}/hold Hold a work item #
POST /agent-sessions/{sessionId}/interactions/{contactId}/resume Resume a work item #
POST /agent-sessions/{sessionId}/interactions/{contactId}/end End a work item #

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-work-items-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-work-items-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Agent Work Items API
  description: Agent API - Work Items endpoints
  version: v1
tags:
- name: Work Items
  description: ': Work Items Contact Management'
paths:
  /agent-sessions/{sessionId}/interactions/{contactId}/accept:
    post:
      tags:
      - Work Items
      summary: Accept a work item
      description: 'The inContact platform supports multiple contact "channels" (also known as "media types"). Agents can receive phone calls, chat requests, emails, voice mails, and "work items".


        When a work item contact is routed to an agent, an inbound "work item contact event" will be delivered to the agent session. The platform must be notified that the agent has "accepted" the work item in order for the contact to be considered "active". This can be done by prompting the agent to accept or reject the work item, or by having software automatically accept or reject a work item based on business logic.


        When software that is connected to an agent session receives an inbound "work item contact" event, the platform begins a timer of 45 seconds. The software must reply with an "accept" API call within that time period, or the platform will set the agent''s status to "Unavailable – Refused", and re-queue the work item for delivery to another available agent. Any agent software connected to the agent session will receive a "disconnected" work item contact event for the contact, as well as an agent state change event indicating that the agent is now "Unavailable – Refused".


        You can also manually reject a work item before the timeout period by calling the "reject" API call.


        You would typically display information about the work item to the agent, with a prompt to "accept" or "reject" the work item, and make the appropriate API call based on agent response.'
      operationId: acceptWorkItem
      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}/reject:
    post:
      tags:
      - Work Items
      summary: Reject a work item
      description: 'The inContact platform supports multiple contact "channels" (also known as "media types"). Agents can receive phone calls, chat requests, emails, voice mails, and "work items".


        When a work item contact is routed to an agent, an inbound "work item contact event" will be delivered to the agent session. The platform must be notified that the agent either accepts or rejects the work item (the platform will assume the agent has rejected the work item if it is not accepted within 45 seconds).


        When a work item is rejected (whether manually or automatically), the agent''s state will be changed to "Unavailable – Refused".'
      operationId: rejectWorkItem
      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}/hold:
    post:
      tags:
      - Work Items
      summary: Hold a work item
      description: An active work item can be placed on "hold" in order to allow the agent to place an outbound phone call. Holding and resuming a work item is similar to holding and resuming a phone call. The work item is in a "holding" state so that the agent can place an outbound phone call in support of the work item (for instance, if the agent is working on a CRM trouble ticket that was routed to them, they may need to place an outbound phone call to the patron, or to another agent, etc.)
      operationId: holdAWorkItem
      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 put the contact on hold at this time.
  /agent-sessions/{sessionId}/interactions/{contactId}/resume:
    post:
      tags:
      - Work Items
      summary: Resume a work item
      description: If a work item is placed on hold, the agent may resume it. Note that if the agent application places a phone call while a work item is on hold, the work item will automatically resume when the phone call ends.
      operationId: resumeAWorkItem
      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 resume the contact at this time.
  /agent-sessions/{sessionId}/interactions/{contactId}/end:
    post:
      tags:
      - Work Items
      summary: End a work item
      description: 'There are two patterns for ending a work item:


        Agent-initiated


        From an IVR script (or other external API call)


        Agents can choose to end a work item when they are done working on it. This will cause the agent to move to their "next" state.'
      operationId: endAWorkItem
      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.
components:
  parameters:
    contactId:
      name: contactId
      in: path
      required: true
      description: Contact Id
      schema:
        type: integer
        format: int64
    sessionId:
      name: sessionId
      in: path
      required: true
      description: Agent Session Id
      schema:
        type: string
x-source: https://developer.niceincontact.com/content/apis/agent/workitems-api-docs