Skip to main content
GET
Get jobs by case ID
This endpoint retrieves all jobs associated with a specific case ID for a given agent.

Endpoint

GET /getJobsByCaseId

Parameters

string
required
The unique identifier of the case.
string
required
The key of the agent associated with the jobs.
boolean
default:"false"
Whether to include detailed check results in the response.
boolean
default:"false"
Whether to include status messages in the response.

Response

The response follows the JobsResponse model, which typically includes:
array
An array of job objects associated with the case ID.
int
The total number of jobs associated with the case ID.
Each job object may include:
string
The unique identifier of the job.
string
The current status of the job (e.g., “pending”, “completed”, “failed”).
string
The timestamp when the job was created.
string
The timestamp when the job was last updated.
object
The input payload used for the job.
array
An array of check results, if include_check_results is true.
Deprecation Note: The status_messages field will be deprecated in future versions.
array
An array of status messages, if include_status_messages is true.

Error Responses

string
A description of the error that occurred.

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 and include_status_messages parameters allow you to control the level of detail in the response. Setting these to true 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.

Authorizations

Authorization
string
header
required

API key obtained from your Parcha account settings. Include as Bearer token in the Authorization header.

Query Parameters

case_id
string
required
agent_key
string
required
include_check_results
boolean
include_status_messages
boolean

Response

Jobs retrieved successfully

jobs
object[]
count
integer