Jobs GraphQL API

The Job API allows you to retrieve job execution information using GraphQL. This enables you to build custom reports and integrations using flexible queries that return only the data you need.

How it Works
 

GraphQL uses a single endpoint where you define exactly which fields you want returned. This means you can request only the data you need, reducing response size and improving performance.

Step 1: Build Your Request
 

  1. Open Postman and create a new GraphQL request
    URL: https://api.robotiq.ai/{tenantName}/job/graph
     
  2. Authorization:
    Bearer Token
     
  3. Query:
    In the query tab you can select you can use the checkboxes to select which fields you want to include in your query - Postman will automatically build the query for you based on your selection


    filter: expand this to select which filters you want to apply
    count: returns the total number of jobs matching your filters
    jobs: expand this to select which job fields you want returned in the response

    Note: List arguments are not currently supported so you should manually write them in the generated query in Query editor. 

    Example:


     

Step 2: Understand the Filters
 

You can filter jobs using the following fields:

FieldTypeDescription
departmentIdsarray of GUIDsFilter by one or more department IDs
processIdsarray of GUIDsFilter by one or more process IDs (this is the version specific identifier, not the top-level process identifier)
stagesarray of process stagesFilter by execution stages
jobStatusesarray of Job statusesFilter by job statuses
startTimeDateTimeOffsetReturn jobs that started at or after this time (UTC)
endTimeDateTimeOffsetReturn jobs that ended at or before this time (UTC)
skipintegerNumber of jobs to skip before returning results (Default: 0)
takeintegerNumber of jobs to return (Default: 100, Maximum: 500)

*To retrieve a specific range of results, use skip to define where to start and take to define how many jobs to return - for example, to get jobs 15 to 30, set skip to 14 and take to 16

Step 3: Validation Rules
 

Stages validation

Supported values:
DEVELOPMENT, TEST, PRODUCTION
*must be in uppercase

jobStatuses

Supported values:
CREATED, QUEUED, RUNNING, FINISHED, CANCELED, ERROR, ABORTED
*must be in uppercase

Date Range Validation

  • EndTime must be greater than or equal to StartTime
  • startTime and endTime must be provided in date and time with timezone offset format, for example "2026-05-01T00:00:00Z"

Step 4: Understanding the Response
 

A successful request returns a JSON object containing job execution data. Each job in the response represents a single job run, including its status, timing and robot information.

Response structure

FieldDescription
countTotal number of jobs matching your filters
jobsList of job details

Job Fields

FieldDescription
processNameName of the process that was executed
processIdName of the process that was executed
departmentNameName of the department the process belongs to
departmentIdUnique identifier of the department
jobNameName of the job
jobStatusCurrent status of the job
canceledDescriptionReason for cancellation, if the job was cancelled
startedAtWhen the job started executing (UTC)
completedAtWhen the job finished executing (UTC)
priorityPriority level assigned to the job
timeoutJob timeout in minutes
scheduleIdIdentifier of the schedule that triggered the job
retryAttemptsNumber of retry attempts configured for the job
jobExecutionTimeoutMaximum allowed execution time for the job
robotNameName of the robot that executed the job
robotIdUnique identifier of the robot
jobInputArgumentsInput arguments passed to the job at execution time
jobOutputArgumentsOutput arguments returned by the job after execution
errorDetailsError information if the job failed
jobStatusLastUpdatedAtTimestamp of the most recent job status update (UTC)




Need Help?

Can't find what you're looking for? Join the Robotiq Community to get help from other users and the Robotiq team.