Run Check
Execute a specific check for KYB or KYC processes
This endpoint allows you to run a specific check for either Know Your Business (KYB) or Know Your Customer (KYC) processes.
API Endpoint
Request Body
The unique identifier for the agent to be used for the check.
The identifier of the specific check you want to run.
The KYB or KYC schema containing the information for the check.
An optional URL to receive webhook notifications about the check status.
Optional arguments specific to the check being run.
Response
The unique identifier for the created check job.
The current status of the check job (e.g., “PENDING”, “RUNNING”, “COMPLETE”).
The timestamp when the check job was created.
The timestamp when the check job was last updated.
The ID of the agent used for this check.
The input payload provided for the check job.
Example Request
Example Response
This endpoint runs a specific check with the provided parameters. The response includes a check job ID that can be used to track the progress and retrieve results of the check.
Implementation Details
The runCheck
endpoint is implemented in the shared_router.py
file. Here’s a brief overview of the implementation:
- The endpoint uses the
get_check_schema
dependency to parse and validate the incoming request data. - It then calls the
celery_enqueue_run_check
function, which handles the logic for running a single check. - The function checks if the user has access to the requested agent and validates the check configuration.
- If everything is valid, it enqueues the check job using Celery.
- Finally, it returns a JSON response with the check job details.
For more detailed information about the implementation, you can refer to the shared_router.py
file in the Parcha backend codebase.
Available Checks
Here are some of the available checks that can be run using this endpoint:
kyb.web_presence_check
: Verifies the online presence of a business.kyb.business_registration_check
: Checks the registration status of a business.kyc.identity_verification
: Verifies the identity of an individual.kyc.adverse_media_check
: Searches for any negative media coverage related to an individual.
The available checks may vary depending on your subscription level and the specific agent you’re using. Consult the Parcha documentation or contact support for a complete list of checks available to you.
Best Practices
- Choose the right check: Make sure you’re using the appropriate check for your use case (KYB or KYC).
- Provide comprehensive data: The more details you provide in the payload, the more thorough and accurate the check can be.
- Use webhooks: Setting up a
webhook_url
allows you to receive real-time updates about your check progress. - Handle errors gracefully: Be prepared to handle potential errors or edge cases in your application.
- Respect rate limits: Be mindful of any rate limits on the API to ensure smooth operation of your integration.
By following these guidelines, you can effectively use the runCheck
endpoint to perform specific checks as part of your KYB or KYC processes.