get https://api.talkdeskapp.com/data/reports//jobs/
Get job report execution details
Possible Report Statuses
- CREATED: the report job is enqueued for processing.
- PROCESSING: the report job is being processed.
- DONE: the report job is completed (its file can be accessed).
- FAILED: report job failed due to an error (its file cannot be accessed).
- DELETED: the report job has been deleted (its file cannot be accessed).
Scope
data-reports:read
Body Response - Schema
200 (report job execution result)
Parameter | Type | Description | Required |
---|---|---|---|
job | object | "job" subdivides into: 1 - "id" (string) - the job ID 2 - "name" (string) - report's name 3 - "timezone" (string) - timezone in IANA format which the report timespan (from and to) will be applied. 4 - "status" (string) - Report status indicating the workflow progress. Allowed values: "created", "processing", "uploading", "done", "failed", "canceled", "deleted" 5 - "format" (string) - format in which the report file will be created. Allowed values: "csv", "json", "json_bulk" 6 - "timespan" (object) - time range to filter for the report content. 6.1 - "from" (string ) - start datetime filter for the records to be retrieved from the report. 6.2 - "to" (string ) - end datetime filter for the records to be retrieved from the report. | no |
_links | object | "_links" subdivides into: 1 - "self" (object) 1.1 - "href" (string) - default: http://api-docs.talkdesk.org/data/reports/:type/jobs/:id 2 - "files" (object) 2.1 - "href" (string) - default: http://api-docs.talkdesk.org/data/reports/:type/files/:id | no |
300 (report job execution result location)
Headers
Parameter | Type | Description | Required |
---|---|---|---|
Location | string | The job results location. Default: /data/reports/{type}/files/{id} | no |
Body
Parameter | Type | Description | Required |
---|---|---|---|
job | object | "job" subdivides into: 1 - "id" (string) - the job ID. 2 - "name" (string) - report's name. 3 - "name" (string) - report's name. 4 - "timezone" (string) - timezone in IANA format which the report timespan (from and to) will be applied. 5 - "status" (string) - report status indicating the workflow progress. Allowed values: "created", "processing", "uploading", "done", "failed", "canceled", "deleted" 5 - "format" (string) - format in which the report file will be created. Allowed values: "csv", "json", "json_bulk" 6 - "timespan" (object) - time range to filter for the report content. 6.1 - "from" (string ) - start datetime filter for the records to be retrieved from the report. 6.2 - "to" (string ) - end datetime filter for the records to be retrieved from the report. | no |
_links | "_links" subdivides into: 1 - "self" (object) 1.1 - "href" (string) - default: http://api-docs.talkdesk.org/data/reports/:type/jobs/:id 2 - "files" (object) 2.1 - "href" (string) - default: http://api-docs.talkdesk.org/data/reports/:type/files/:id | no |
400 (report type is invalid), 401 (unauthorized access), 403 (forbidden access), 404 (report job not found)
Parameter | Type | Description | Required |
---|---|---|---|
code | string | n/a | yes |
message | string | n/a | yes |
description | string | n/a | no |
fields | array[object] | "fields" subdivides into: "name" (string) "description" (string) | yes (name and description) |
Troubleshooting
If you have any questions regarding the usage of this API, or if you’re having any technical issues, please open a ticket using this form.