This endpoint retrieves detailed information about a job by its ID, including its status, progress, and associated check results.

API Endpoint


GET https://api.parcha.ai/getJobById

Query Parameters

job_id
string
required

The unique identifier of the job to retrieve.

include_check_result_ids
boolean
default: "false"

If true, includes only the IDs of check results. Cannot be used with include_check_results.

include_check_results
boolean
default: "false"

If true, includes full check result objects. Cannot be used with include_check_result_ids.

include_status_messages
boolean
default: "false"

If true, includes status messages associated with the job.

Response

id
string

The unique identifier for the job.

agent_id
string

The ID of the agent that executed the job.

owner_id
string

The email address of the job owner.

status
string

The current status of the job (e.g., PENDING, RUNNING, COMPLETED).

started_at
string

The timestamp when the job started.

completed_at
string

The timestamp when the job completed.

recommendation
string

The recommendation based on the job results.

input_payload
object

The input data provided for the job.

status_messages
array

An array of status messages associated with the job.

check_results
array

An array of check results from the job execution.

Usage Examples

Example Response

{
    "created_at": "2024-09-06T03:06:57.213129",
    "id": "50432480-5ab8-433c-b7be-a0e40408029a",
    "agent_id": "public-bdd",
    "descope_user_id": "U2U2iomFdkpU6FcNgU8wmEtkvnde",
    "started_at": "2024-09-06T03:06:57.645676",
    "progress": null,
    "queued_at": null,
    "tenant_id": "T2QyrSQP8m6UOfLLqTux2q0Gj5AW",
    "updated_at": "2024-09-06T03:06:57.213133",
    "celery_task_id": null,
    "owner_id": "miguel@parcha.ai",
    "status": "complete",
    "completed_at": "2024-09-06T03:13:07.371114",
    "recommendation": "Review",
    "input_payload": {
        "id": "parcha-5f7008a3",
        "self_attested_data": {
            "type": "SelfAttestedData",
            "website": "https://parcha.ai"
        },
        "research_data": {
            "type": "WebResearchDataCheck",
            "data": {
                "type": "WebResearchData",
                "is_valid_url": false,
                "is_filtered": false
            }
        },
        "self_attested_address_check": {
            "type": "SelfAttestedAddressCheck",
            "result": {
                "type": "SelfAttestedAddressCheckResult",
                "operating_address_verified": false,
                "operating_address_is_business": false,
                "operating_address_is_pobox": false,
                "operating_address_is_residential": false
            }
        },
        "web_presence_check": {
            "type": "WebPresenceCheck",
            "data": {
                "type": "WebPresenceCheckData",
                "only_used_search_results": false,
                "only_used_self_attested_websites": false,
                "only_used_extended_search_results": false
            }
        },
        "mcc_code_check": {
            "type": "MCCCodeCheck",
            "result": {
                "type": "MCCCodeCheckResult",
                "mcc_code_description": "No description found."
            }
        }
    },
    "status_messages": [],
    "check_results": [
        {
            "job_id": "50432480-5ab8-433c-b7be-a0e40408029a",
            "command_desc": "Tool to determine if the web presence data loader succeeded.",
            "step_number": null,
            "updated_at": "2024-09-06T03:08:57.865904",
            "result_type": "CommandResult",
            "status": "complete",
            "created_at": "2024-09-06T03:06:58.149768",
            "input_data": {
                "business_name": "Parcha",
                "business_description": null
            },
            "verification_data": {
                "type": "WebPresenceCheckData",
                "self_attested_webpages": [
                    // ... (webpage data omitted for brevity)
                ]
            },
            // ... (other check results omitted for brevity)
        }
    ]
}

Notes

The include_check_result_ids and include_check_results parameters are mutually exclusive. Using both will result in a 400 Bad Request error.

Access to job details is restricted. The API will return a 401 Unauthorized error if the user doesn’t have access to the specified agent.

If the job is not found, a 404 Not Found error will be returned.

This endpoint provides a comprehensive view of a job’s status and results, allowing for detailed tracking and analysis of the KYB/KYC process.

Error Responses

400 Bad Request
object
error
string

”Cannot include both check result ids and check results in the response"

401 Unauthorized
object
error
string

"Unauthorized"

404 Not Found
object
error
string

"Job not found”