NiCE Schedules API

: Schedules Information

GitHub OpenAPI

Operations 1

POST /schedules/export Get agent’s schedules from CXone WFM #

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-schedules-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-schedules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nice Schedules API
  version: v1
  description: 'Operations tagged Schedules across 2 of this provider''s published API definitions: nice-wfm-exportschedule.json, nice-wfm-exportschedule-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Schedules
  description: ': Schedules Information'
paths:
  /schedules/export:
    post:
      tags:
      - Schedules
      summary: Get agent’s schedules from CXone WFM
      description: 'Retrieves the agent''s schedule and accompanying activity information from CXone WFM. Provide the start and end dates in ISO-8601 format (YYYY-MM-DD) along with the agent’s user ID. You can find the user ID with the [user search] API (https://developer.niceincontact.com/API/UserHubAPI#/User-Management/getUsersByCriteria). This API returns up to 7 days of data. If you want to get schedule information for more than 7 days at a time, you can export agent schedules via CSV (http://help.nice-incontact.com/content/workforcemanagement/exportschedulesornetstaffing.htm).

        Required: Schedule Manager Permission ; View Access to Agent''s data'
      operationId: exportScheduleAsList
      requestBody:
        description: Provide start date, end date and user id in request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportScheduleRequest'
        required: true
      responses:
        '200':
          description: Request Accepted, Export schedule for given agent was sucessful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportScheduleResponse'
              example:
                agentSchedules:
                - userId: 11ed59af-f334-dc30-b507-0242ac110003
                  shifts:
                  - shiftNotes: null
                    activityIntervals: []
                    baseActivityCode:
                      title: Open (Default)
                      open: true
                      work: true
                      overTime: false
                    start: '2023-06-28T03:00:00Z'
                    end: '2023-06-28T12:00:00Z'
                  activityIntervals: []
                start: '2023-06-28'
                end: '2023-06-28'
        '400':
          description: This error may be the result of one of the following:-<br> Bad Request. <span><p>o  Null input detected. Provide data.</p><p>o  Empty input detected. Provide data.</p><p>o  Difference between start and end date is greater than 7</p><p>o  End date must be after or same as start date</p><p>o Can't retrieve schedule. Wrong userID or you don't have permission to view this agent</p></span>
        '401':
          description: The access token is invalid.
        '403':
          description: User account making the API call does not have the required permission
          content: {}
      x-codegen-request-body-name: body
components:
  schemas:
    ExportScheduleResponse:
      type: object
      properties:
        agentSchedules:
          type: array
          items:
            type: object
            properties:
              userId:
                type: string
                format: uuid
                description: The unique identifier of the user associated with the schedule.
              shifts:
                type: array
                items:
                  type: object
                  properties:
                    shiftNotes:
                      type: string
                      description: Notes or comments associated with the shift.
                    activityIntervals:
                      type: array
                      items: {}
                      description: Activity intervals for the shift.
                    baseActivityCode:
                      type: object
                      properties:
                        title:
                          type: string
                          description: The title of the base activity code.
                        open:
                          type: boolean
                          description: Indicates if the shift is open.
                        work:
                          type: boolean
                          description: Indicates if the shift is work time.
                        overTime:
                          type: boolean
                          description: Indicates if the shift is overtime.
                      description: Base activity code details for the shift.
                    start:
                      type: string
                      format: date-time
                      description: The start date and time of the shift in ISO 8601 format.
                    end:
                      type: string
                      format: date-time
                      description: The end date and time of the shift in ISO 8601 format.
                description: List of shifts for the user.
            description: Agent schedule details for a specific user.
        start:
          type: string
          format: date
          description: The start date of the schedule export (in ISO 8601 format YYYY-MM-DD).
        end:
          type: string
          format: date
          description: The end date of the schedule export (in ISO 8601 format YYYY-MM-DD).
      required:
      - agentSchedules
      - start
      - end
    ExportScheduleRequest:
      type: object
      properties:
        startDate:
          type: string
          format: date
          description: The start date of the schedule export (in ISO 8601 format YYYY-MM-DD).
        endDate:
          type: string
          format: date
          description: The end date of the schedule export (in ISO 8601 format YYYY-MM-DD).
        userID:
          type: string
          description: The user ID associated with the schedule export request.
      required:
      - startDate
      - endDate
      - userID
x-refined-from:
- nice-wfm-exportschedule.json
- nice-wfm-exportschedule-openapi.yml