Skip to main content

Last 15 Job Execution Status

Get Job execution status for last 15 job executions. Within each execution, you can see the PDF, Email and job status.

Endpoint#

URL: https://portal.bihelper.tech/api/user-jobs/user-job-executions/{job_id}Method: GET

Headers#

KeyValueDescription
AuthorizationBearer Auth_TokenAuth token
Content-Typeapplication/json
User-Agentcurl/7.68.0Set user agent header

Curl Request#

curl --location --request GET 'https://portal.bihelper.tech/api/user-jobs/user-job-executions/443' \--header 'Authorization: Bearer AuthToken' \--header 'User-Agent: curl/7.68.0' 

Response#

Sample response:

{  "jobId": 443,  "jobExecutions": [    {      "jobExecutionId": 1592967983269,      "jobStatus": "RUNNING",      "pdfStatus": "NOT_STARTED",      "isEmailEnabled": true,      "emailStatus": null,      "pdfFiles": [        {          "to_email": [            "ishan@bihelper.tech"          ],          "cc_email": [],          "bcc_email": [],          "file_location": "bihelper.tech/API Demo Job/2020-06-24/1592967983269/Retail Sales Report 2020-05, Andrew Ma.pdf",          "file_name": "Retail Sales Report 2020-05, Andrew Ma.pdf",          "filters": [            {              "filter_name": "Date<>Dates Master/Date",              "filter_value": "2020-05-01T00:00:00::2020-06-01T00:00:00"            },            {              "filter_name": "District Manager <> Store/DM",              "filter_value": "Andrew Ma"            }          ],          "status": "In Queue",          "send_emails": true,          "email_status": "In Queue"        },        {          "to_email": [            "ishan@bihelper.tech"          ],          "cc_email": [],          "bcc_email": [],          "file_location": "bihelper.tech/API Demo Job/2020-06-24/1592967983269/Retail Sales Report 2020-05, Allan Guinot.pdf",          "file_name": "Retail Sales Report 2020-05, Allan Guinot.pdf",          "filters": [            {              "filter_name": "Date<>Dates Master/Date",              "filter_value": "2020-05-01T00:00:00::2020-06-01T00:00:00"            },            {              "filter_name": "District Manager <> Store/DM",              "filter_value": "Allan Guinot"            }          ],          "status": "In Queue",          "send_emails": true,          "email_status": "In Queue"        }      ]    }  ]}