GetJobsByCaseId
This endpoint retrieves all jobs associated with a specific case ID for a given agent.
Endpoint
GET /getJobsByCaseId
Parameters
The unique identifier of the case.
The key of the agent associated with the jobs.
Whether to include detailed check results in the response.
Whether to include status messages in the response.
Response
The response follows the JobsResponse
model, which typically includes:
An array of job objects associated with the case ID.
The total number of jobs associated with the case ID.
Each job object may include:
The unique identifier of the job.
The current status of the job (e.g., “pending”, “completed”, “failed”).
The timestamp when the job was created.
The timestamp when the job was last updated.
The input payload used for the job.
An array of check results, if include_check_results
is true.
Deprecation Note: The status_messages
field will be deprecated in future versions.
An array of status messages, if include_status_messages
is true.
Error Responses
A description of the error that occurred.
Status Code | Description |
---|---|
404 | Case or jobs not found |
403 | Unauthorized access to agent |
500 | Internal server error |
Example Request
Example Response
Notes
- This endpoint requires authentication. Make sure to include your API key in the request headers.
- The user must have access to the specified agent to retrieve the jobs.
- The
include_check_results
andinclude_status_messages
parameters allow you to control the level of detail in the response. Setting these totrue
may increase the response size and processing time. - The structure of check results may vary depending on the type of checks performed in the jobs.