Rule Testing API

The Rule Testing API is a secure REST API that manage test runs.

Request authorization

circle-info

To authenticate your requests, you must use a Bearer token with a valid Solver API key.

For example:

Authorization: Bearer YOUR_SOLVER_API_KEY

Start a Test Run

post

Starts a new test run job for the specified test suites or individual tests. You must provide either an array of testSuiteIds, an array of testIds, or both.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
x-correlation-idstringOptional

A custom correlation ID to track the job execution. If not provided, a GUID will be automatically generated.

Body
testSuiteIdsstring[]Optional

A list of Test Suite IDs to be executed.

testIdsstring[]Optional

A list of individual Test IDs to be executed.

Responses
chevron-right
200

The test run job has been successfully created and queued.

application/json
testRunIdstringOptional

The ID of the newly created test run job.

statusstring · enumOptional

Initial status of the test run job (e.g., WAITING).

Possible values:
post
/start

Get Test Run Job

get

Retrieves test run job details for a specific test run, including its overall execution state and timing context. The job must belong to the requesting space.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
testRunIdstringRequired

The ID of the test run job to retrieve details for.

Responses
chevron-right
200

Job details retrieved successfully.

application/json
jobIdstringOptional
correlationIdstringOptional
createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
claimedAtstring · date-timeOptional
endedAtstring · date-time · nullableOptional
get
/{testRunId}

Get Test Run Results Detail

get

Retrieves detailed information about a specific test run execution, including the evaluation status of individual tests and test suites.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
testRunIdstringRequired

The Test Run ID to retrieve results for.

Responses
chevron-right
200

Test run details retrieved successfully. Returns an array of evaluated rules, grouped by test suites and their nested test executions.

application/json
baseIdstringOptional
baseTypestring · enumOptionalPossible values:
statusstring · enumOptionalPossible values:
ruleNamestringOptional
ruleAliasstringOptional
ruleVersionnumberOptional
get
/detail/{testRunId}

Last updated

Was this helpful?