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.
openapi: 3.2.0
info:
title: Nice Extracting Data API
version: v1
description: 'Operations tagged ExtractingData across 2 of this provider''s published API definitions: nice-dataextraction-dataextraction.json, nice-dataextraction-dataextraction-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: ExtractingData
description: ': The Data Extraction API let you extract data from CXone.'
paths:
/data-extraction/v1/jobs:
get:
tags:
- ExtractingData
summary: Gets status for all jobs
description: View a list of all job statuses per tenant. Possible statuses are Running, Succeeded, Failed, Cancelled, and Expired.
operationId: getAllJobs
responses:
'200':
description: Success. Retrieved status for all jobs.
content:
application/json:
schema:
$ref: '#/components/schemas/jobsResponse'
'401':
description: Unauthorized. Invalid credentials.
'403':
description: Forbidden. User does not have permission to view job status.
'500':
description: Internal Server Error
post:
tags:
- ExtractingData
summary: Prepares requested data for extraction
description: After a request to extract data is made, the data is gathered and prepared for extraction. The data is available in S3 as a csv file for 24 hours. When done, a job ID is returned.
operationId: extractData
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/exportRequest'
required: true
responses:
'202':
description: Success. Successfully exported asynchronous job.
content:
application/json:
schema:
type: string
'400':
description: Invalid request. Incorrect date filters, etc.
'401':
description: Unauthorized. Invalid credentials.
'403':
description: Forbidden. User does not have permission to view job status.
'404':
description: Not Found. Missing entity or invalid version.
'500':
description: Internal Server Error
/data-extraction/v1/jobs/{jobId}:
get:
tags:
- ExtractingData
summary: Gets a specific job status
description: View the status for a specific job per its job Id. If a job was successful, a url to access the extracted data is returned and is accessible for 30 seconds (not including the time it takes to download the file). If the job failed, an error message is returned. The link can be used to access the extracted data. Possible job statuses are Running, Succeeded, Failed, Expired, and Cancelled.
operationId: getJobStatus
parameters:
- name: jobId
in: path
description: Unique identifier for the request that was made to extract customer data.
required: true
style: simple
explode: false
schema:
type: string
responses:
'200':
description: Success. Retrieved job status.
content:
application/json:
schema:
$ref: '#/components/schemas/jobResponse'
'401':
description: Unauthorized. Invalid credentials.
'403':
description: Forbidden. User does not have permission to view job status.
'404':
description: Not found. Job not found.
'500':
description: Internal Server Error
components:
schemas:
jobResponse:
type: object
properties:
jobStatus:
$ref: '#/components/schemas/jobStatus'
description: Displays the job status.
jobState:
type: object
properties:
id:
type: string
description: Unique identifier of the job.
format: uuid
status:
type: string
description: The status of the job.
enum:
- RUNNING
- SUCCEEDED
- FAILED
- CANCELLED
- EXPIRED
description: Status and ID of the job.
exportRequest:
type: object
properties:
entityName:
type: string
description: Name of entity to extract.
version:
type: string
description: Version of entity to extract.
startDate:
type: string
description: 'Date, in UTC, from which to start extracting data. The date format is <YYYY-MM-DD>. For example, to extract data from May 22nd, 2019, enter the date: 2019-05-22.'
format: date
endDate:
type: string
description: ' Date, in UTC, from which to stop extracting data. The date format is <YYYY-MM-DD>. For example, to extract data until May 29th, 2019, enter the date: 2019-05-29.'
format: date
description: Parameters that need to be provided in order to extract data.
jobResult:
type: object
properties:
url:
type: string
description: A url to access the extracted data is returned when a job for extracting data is successful.
example: https://s3.example.amazonaws.com/results-bucket/data-extraction/{details}
errorMessage:
type: string
description: Error message displayed when a request for extracting data fails.
description: Job result. If successful, contains the url, if failed, an error message is displayed.
jobsResponse:
type: object
properties:
jobs:
type: array
description: List of statuses for all jobs.
items:
$ref: '#/components/schemas/jobState'
description: Displays statuses for all jobs.
jobStatus:
type: object
properties:
id:
type: string
description: Unique identifier of the job.
format: uuid
status:
type: string
description: Job status that can be returned.
example: SUCCEEDED
enum:
- RUNNING
- SUCCEEDED
- FAILED
- CANCELLED
- EXPIRED
result:
$ref: '#/components/schemas/jobResult'
description: Job Status, includes job ID and job status.
x-refined-from:
- nice-dataextraction-dataextraction.json
- nice-dataextraction-dataextraction-openapi.yml