Jobs API
The Jobs API is a secure REST API that manage jobs.
Request authorization
For example:
Authorization: Bearer YOUR_SOLVER_API_KEY
Starts a new asynchronous job for a specific Integration Flow. The identifier
is the unique ID of the Integration Flow, and version
is its specific version. This endpoint only accepts rules of type IntegrationFlow
.
The unique identifier of the Integration Flow.
The specific version of the Integration Flow. If not provided, the latest published version is used.
A JSON object containing the input data for the job.
Job started successfully.
Business error.
Unauthorized. Invalid or missing API key.
POST /job/start/{identifier}/{version} HTTP/1.1
Host: api.decisionrules.io
Authorization: Bearer ApiKey
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
{
"jobId": "text",
"status": {
"state": "WAITING",
"code": "JOB_SUCCESS",
"message": "text"
}
}
Attempts to cancel a specific job by its ID. The job must belong to the requesting space.
The ID of the job to cancel.
Job canceled successfully.
Business error.
Unauthorized. Invalid or missing API key.
POST /job/cancel/{jobId} HTTP/1.1
Host: api.decisionrules.io
Authorization: Bearer ApiKey
Accept: */*
{
"jobId": "text",
"correlationId": "text",
"inputData": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"output": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ruleReference": {
"baseId": "text",
"version": 1,
"type": "text"
},
"context": {
"spaceId": "text",
"billingUserId": "text",
"executorUser": {},
"usedApiKeyId": "text"
},
"status": {
"state": "WAITING",
"code": "JOB_SUCCESS",
"message": "text"
},
"createdAt": "2025-09-09T09:53:04.242Z",
"updatedAt": "2025-09-09T09:53:04.242Z",
"claimedAt": "2025-09-09T09:53:04.242Z",
"endedAt": "2025-09-09T09:53:04.242Z",
"apiKey": {
"id": "text",
"name": "text"
}
}
Cancels all jobs that are in a WAITING
state for a specific space.
The ID of the space.
The number of waiting jobs that were canceled.
Business error.
Unauthorized. Invalid or missing API key.
POST /job/cancelAll/space/{spaceId} HTTP/1.1
Host: api.decisionrules.io
Authorization: Bearer ApiKey
Accept: */*
{
"canceledCount": 1
}
Cancels all jobs that are in a WAITING
state for a specific rule identifier and an optional version.
The identifier of the rule.
The version of the rule. If not provided, jobs for all versions of the rule will be considered.
The number of waiting jobs that were canceled for the rule.
Bad request. Rule identifier or version is invalid.
Unauthorized. Invalid or missing API key.
Forbidden. Insufficient permissions to cancel jobs for this rule.
POST /job/cancelAll/rule/{identifier}/{version} HTTP/1.1
Host: api.decisionrules.io
Authorization: Bearer ApiKey
Accept: */*
{
"canceledCount": 1
}
Retrieves detailed information about a specific job, including its status and output. The job must belong to the requesting space.
The ID of the job to retrieve details for.
Job details retrieved successfully.
Business error.
Unauthorized. Invalid or missing API key.
GET /job/{jobId} HTTP/1.1
Host: api.decisionrules.io
Authorization: Bearer ApiKey
Accept: */*
{
"jobId": "text",
"correlationId": "text",
"inputData": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"output": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ruleReference": {
"baseId": "text",
"version": 1,
"type": "text"
},
"context": {
"spaceId": "text",
"billingUserId": "text",
"executorUser": {},
"usedApiKeyId": "text"
},
"status": {
"state": "WAITING",
"code": "JOB_SUCCESS",
"message": "text"
},
"createdAt": "2025-09-09T09:53:04.242Z",
"updatedAt": "2025-09-09T09:53:04.242Z",
"claimedAt": "2025-09-09T09:53:04.242Z",
"endedAt": "2025-09-09T09:53:04.242Z",
"apiKey": {
"id": "text",
"name": "text"
}
}
Last updated
Was this helpful?