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: WorkSpan Report View API
description: API for WorkSpan Reports
version: '1.0'
servers:
- url: https://api-sandbox.workspan.com/report/v1
security:
- {}
- apiKeyHeader: []
- apiKeyQuery: []
tags:
- name: View
paths:
/view/{viewId}/data:
post:
operationId: getReportViewData
summary: Get report view data
description: 'Returns report view data (paginated).
Report view data is guaranteed not to change after the view has been created. In case of subsequent report update new report view needs to be created.'
parameters:
- name: viewId
in: path
required: true
schema:
type: integer
description: Format - int64.
- name: Authorization
in: header
required: true
schema:
type: string
description: 'Format: bearer ${token}'
requestBody:
content:
application/json:
examples:
default:
value:
page:
number: 0
size: 100
responses:
'200':
description: OK
content:
application/json:
examples:
default:
value:
version: 5
endOfList: false
results:
- CRM ID: 1234
Country: US
Region: North
- CRM ID: 1564
Country: US
Region: South
'400':
description: Bad Request
'401':
description: Authorization Error
'404':
description: WorkSpan object Not Found
'500':
description: Internal Server Error
tags:
- View
/view/{viewId}:
get:
operationId: getReportViewMetadata
summary: Get report view metadata
description: Returns the report view details (metadata information).
parameters:
- name: viewId
in: path
required: true
schema:
type: integer
description: Format - int64.
- name: Authorization
in: header
required: true
schema:
type: string
description: 'Format: bearer ${token}'
responses:
'200':
description: OK
'400':
description: Bad Request
'404':
description: WorkSpan object Not Found
'500':
description: Internal Server Error
tags:
- View
/view/{viewId}/status:
get:
operationId: checkReportViewStatus
summary: Get report view status
description: 'Returns the status of the report view.
The report view has following lifecycle:
- PENDING - creation of report view is scheduled
- RUNNING - report view is being created
- SUCCESS - report view has been successfully created
- FAILED - report view could not have been created
- DELETED - report view older then 24h have been deleted'
parameters:
- name: viewId
in: path
required: true
schema:
type: integer
description: Format - int64.
- name: Authorization
in: header
required: true
schema:
type: string
description: 'Format: bearer ${token}'
responses:
'200':
description: OK
content:
application/json:
examples:
default:
value:
viewStatus: RUNNING
'400':
description: Bad Request
'401':
description: Authorization Error
'404':
description: WorkSpan object Not Found
'500':
description: Internal Server Error
tags:
- View
/view/{reportId}/prepare_export:
post:
operationId: prepareExport
summary: Prepare report view
description: 'Triggers a background job that will create a report view.
The report view will be created in a single transaction ensuring data consistency while exporting the data.
This approach is good for reports of any size but it is recommended way for exporting bigger reports when data consistency has to be guaranteed.'
parameters:
- name: reportId
in: path
required: true
schema:
type: integer
description: Format - int64.
- name: Authorization
in: header
required: true
schema:
type: string
description: 'Format: bearer ${token}'
requestBody:
content:
application/json: {}
responses:
'200':
description: OK
content:
application/json:
examples:
default:
value:
viewId: 453
'400':
description: Bad Request
'401':
description: Authorization Error
'404':
description: WorkSpan object Not Found
'500':
description: Internal Server Error
tags:
- View
components:
securitySchemes:
apiKeyHeader:
type: apiKey
name: Ocp-Apim-Subscription-Key
in: header
apiKeyQuery:
type: apiKey
name: subscription-key
in: query
x-harvest:
source: https://developer.workspan.com/developer/apis/workspan-report-api?export=true&format=openapi+json&api-version=2022-04-01-preview
operations_source: https://developer.workspan.com/developer/apis/workspan-report-api/operations?api-version=2022-04-01-preview
harvested: '2026-07-21'
note: Assembled from WorkSpan's Azure APIM developer portal data API (export skeleton + published operations/schemas).