NiCE Media Download Service API

: Operations for submitting and tracking bulk media download requests

GitHub OpenAPI

Operations 3

POST /media-download/v1/contacts New in 26.3: Create bulk download request for CONTACT media files #
POST /media-download/v1/segments New in 26.3: Create bulk download request for SEGMENT media files #
GET /media-download/v1/status/{requestId} New in 26.3: Get download request status #

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-media-download-service-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-media-download-service-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nice Media Download Service API
  version: 1.0.0
  contact:
    name: MCR Media Download Team
  description: 'Operations tagged Media Download Service across 2 of this provider''s published API definitions: nice-mediaplayback-mediadownload.json, nice-mediaplayback-mediadownload-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Media Download Service
  description: ': Operations for submitting and tracking bulk media download requests'
paths:
  /media-download/v1/contacts:
    post:
      tags:
      - Media Download Service
      summary: 'New in 26.3: Create bulk download request for CONTACT media files'
      description: Submit an asynchronous request to download media files (voice or screen) for one or more contacts. Returns a `requestId` which can be used to poll for status via `GET /status/{requestId}`. A maximum of **100 contact IDs** may be submitted per request.
      operationId: createContactMediaRequest
      parameters:
      - $ref: '#/components/parameters/MediaTypeParam'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MediaDownloadRequest'
            example:
              entityIds:
              - contact-uuid-001
              - contact-uuid-002
      responses:
        '202':
          description: Request accepted and queued for processing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaDownloadRequestIdResponse'
              example:
                requestId: 550e8400-e29b-41d4-a716-446655440000
        '400':
          description: Bad Request — invalid input or unsupported media-type
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidMediaType:
                  summary: Unsupported media type
                  value:
                    code: INVALID_REQUEST
                    message: 'Invalid media-type value: UNKNOWN'
                invalidInput:
                  summary: Empty entity list
                  value:
                    code: INVALID_REQUEST
                    message: entityIds must not be empty
        '403':
          description: Forbidden — insufficient permissions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: FORBIDDEN
                message: Access denied
        '429':
          description: Too Many Requests — rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: INVALID_REQUEST
                message: Too many requests
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INTERNAL_ERROR
                  message:
                    type: string
                    example: An unexpected error occurred. Please contact support.
        '503':
          description: Service Unavailable — Internal Failure
          content:
            application/json:
              examples:
                persistenceFailure:
                  summary: DynamoDB persistence failure
                  value:
                    code: INTERNAL_FAILURE
                    message: An unexpected error occurred. Please try again later.
  /media-download/v1/segments:
    post:
      tags:
      - Media Download Service
      summary: 'New in 26.3: Create bulk download request for SEGMENT media files'
      description: Submit an asynchronous request to download media files (voice or screen) for one or more segments. Returns a `requestId` which can be used to poll for status via `GET /status/{requestId}`. A maximum of **100 segment IDs** may be submitted per request.
      operationId: createSegmentMediaRequest
      parameters:
      - $ref: '#/components/parameters/MediaTypeParam'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MediaDownloadRequest'
            example:
              entityIds:
              - segment-uuid-001
              - segment-uuid-002
      responses:
        '202':
          description: Request accepted and queued for processing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaDownloadRequestIdResponse'
              example:
                requestId: 660e9500-f30c-52e5-b827-557766551111
        '400':
          description: Bad Request — invalid input or unsupported media-type
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden — insufficient permissions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: FORBIDDEN
                message: Access denied
        '429':
          description: Too Many Requests — rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: INVALID_REQUEST
                message: Too many requests
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INTERNAL_ERROR
                  message:
                    type: string
                    example: An unexpected error occurred. Please contact support.
        '503':
          description: Service Unavailable — Internal Failure
          content:
            application/json:
              examples:
                persistenceFailure:
                  summary: DynamoDB persistence failure
                  value:
                    code: INTERNAL_FAILURE
                    message: An unexpected error occurred. Please try again later.
  /media-download/v1/status/{requestId}:
    get:
      tags:
      - Media Download Service
      summary: 'New in 26.3: Get download request status'
      description: Retrieve the current processing status of a previously submitted bulk download request. When the status is `COMPLETED`, the `downloadLocation` field contains the URL to the media archive.
      operationId: getRequestStatus
      parameters:
      - name: requestId
        in: path
        required: true
        description: The unique identifier of the download request (UUID returned from POST)
        schema:
          type: string
          format: uuid
        example: 550e8400-e29b-41d4-a716-446655440000
      responses:
        '200':
          description: Successfully retrieved request status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaDownloadResponse'
              examples:
                inProgress:
                  summary: Request still processing
                  value:
                    requestId: 550e8400-e29b-41d4-a716-446655440000
                    status: IN_PROGRESS
                    createdAt: '2026-04-20T10:00:00'
                completed:
                  summary: Request fully completed
                  value:
                    requestId: 550e8400-e29b-41d4-a716-446655440000
                    status: COMPLETED
                    entities:
                    - entityId: contact-uuid-001
                      status: COMPLETED
                      failureReason: null
                    - entityId: contact-uuid-002
                      status: COMPLETED
                      failureReason: null
                    downloadLocation: https://s3.amazonaws.com/bucket/output/550e8400.zip
                    createdAt: '2026-04-20T10:00:00'
                    updatedAt: '2026-04-20T10:05:00'
                partialFailure:
                  summary: Partial failure
                  value:
                    requestId: 550e8400-e29b-41d4-a716-446655440000
                    status: COMPLETED
                    entities:
                    - entityId: contact-uuid-001
                      status: FAILED
                      failureReason: Media file not found in storage
                    - entityId: contact-uuid-002
                      status: COMPLETED
                      failureReason: null
                    downloadLocation: https://s3.amazonaws.com/bucket/output/550e8400.zip
                    createdAt: '2026-04-20T10:00:00'
                    updatedAt: '2026-04-20T10:05:00'
        '404':
          description: Request not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: NOT_FOUND
                message: 'No download request found for id: 550e8400-e29b-41d4-a716-446655440000'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INTERNAL_ERROR
                  message:
                    type: string
                    example: An unexpected error occurred. Please contact support.
components:
  schemas:
    MediaDownloadResponse:
      type: object
      properties:
        requestId:
          type: string
          format: uuid
          description: The unique identifier of the download request
        status:
          type: string
          description: Overall status of the download request
          enum:
          - PENDING
          - IN_PROGRESS
          - COMPLETED
          - FAILED
        entities:
          type: array
          description: Per-entity processing results
          items:
            $ref: '#/components/schemas/EntityResult'
        downloadLocation:
          type:
          - string
          - 'null'
          description: S3 URL to the downloaded media archive. Populated only when status is COMPLETED.
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the request was created (ISO 8601)
        updatedAt:
          type: string
          format: date-time
          description: Timestamp of the last status update (ISO 8601)
    MediaDownloadRequestIdResponse:
      type: object
      properties:
        requestId:
          type: string
          format: uuid
          description: Unique identifier assigned to this download request. Use this to poll for status.
      example:
        requestId: 550e8400-e29b-41d4-a716-446655440000
    EntityResult:
      type: object
      properties:
        entityId:
          type: string
          description: The contact or segment ID
        status:
          type: string
          description: Processing status for this specific entity
          enum:
          - PENDING
          - IN_PROGRESS
          - COMPLETED
          - FAILED
        failureReason:
          type:
          - string
          - 'null'
          description: Human-readable failure description. Present only when status is FAILED.
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code
          enum:
          - INVALID_REQUEST
          - NOT_FOUND
          - SQS_PUBLISH_FAILED
          - PERSISTENCE_FAILED
          - INTERNAL_ERROR
        message:
          type: string
          description: Human-readable error description
      example:
        code: INVALID_REQUEST
        message: entityIds must not be empty
    MediaDownloadRequest:
      type: object
      required:
      - entityIds
      properties:
        entityIds:
          type: array
          description: List of contact or segment IDs to include in the download request
          minItems: 1
          items:
            type: string
            description: A unique entity identifier (contact ID or segment ID)
      example:
        entityIds:
        - entity-uuid-001
        - entity-uuid-002
  parameters:
    MediaTypeParam:
      name: media-type
      in: query
      required: true
      description: 'The type of media to download.

        - `VOICE` — audio recordings

        - `SCREEN` — screen recordings'
      schema:
        type: string
        enum:
        - VOICE
        - SCREEN
      example: VOICE
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: CXone bearer token. Used to extract tenantId, userId, and authorization scope.
x-refined-from:
- nice-mediaplayback-mediadownload.json
- nice-mediaplayback-mediadownload-openapi.yml