This endpoint starts a KYC (Know Your Customer) agent job with the specified parameters.
API Endpoint
POST https://api.parcha.ai/api/v1/startKYCAgentJob
Request Body
Your KYC agent key from the Parcha dashboard. This is unique to your organization and agent configuration.
Important : You must use your own agent key, not a default or public agent key. Your agent key can be found in the Parcha dashboard under your agent’s settings, or in the “Test API Integration” dialog.
The KYC schema containing the individual’s information. Show KYC Schema Properties
A unique identifier for this KYC case.
Self-attested information about the individual. Standard address format used throughout the schema. Primary street address line
Secondary street address line (optional)
Two-letter ISO country code (e.g., “US”, “GB”)
Standard document format used throughout the schema. URL to access the document. Required if b64_document is not provided.
Name of the file including extension
Type of document source. Currently supported: “file_url”
Base64 encoded document content. Required if url is not provided.
Show Self Attested Data Properties
The individual’s first name
The individual’s middle name
The individual’s last name
The individual’s date of birth in YYYY-MM-DD format
The individual’s address.
Uses the Address Object format defined above.
Array of associated addresses for the individual.
Each item uses the Address Object format defined above.
Two-letter ISO country code of nationality
Two-letter ISO country code of residence
Place of birth (city, country)
proof_of_address_documents
Array of address proof document objects.
Each item uses the Document Object format defined above.
Government ID verification data. Show Government ID Properties
First name as shown on ID
Middle names as shown on ID
Date of birth in YYYY-MM-DD format
Type of ID document (e.g., “Driver’s License”, “Passport”)
Address shown on ID.
Uses the Address Object format defined above.
Country that issued the ID
Name of ID verification vendor
URL to vendor’s verification page
vendor_validated_document
Whether vendor validated the document
vendor_id_verification_data
Vendor-specific verification data
sanctions_watchlist_screening_check
Sanctions and watchlist screening results. Show Screening Properties
Array of sanctions matches
Politically Exposed Person (PEP) screening results. Show PEP Screening Properties
An optional URL to receive webhook notifications about the job status.
An optional Slack webhook URL to receive notifications about the job status.
An optional array of specific check IDs to run. If not provided, all checks will be run.
Optional. A unique identifier (UUID) that you can provide for this job.
If provided, this ID will be used as an idempotency key.
If a job with this ID already exists, the API will return a 409 Conflict error, and you can then use this job_id to retrieve the existing job’s status and results using /getJobById.
If not provided, a new unique ID will be automatically generated for the job.
Response
The status of the job creation request. Will be “ok” if successful.
The unique identifier for the created job.
A message indicating the result of the job creation request.
Details about the created job. The unique identifier of the job.
The current status of the job (e.g., “PENDING”, “RUNNING”, “COMPLETE”, “FAILED”, “RETRIED”).
The timestamp when the job was created.
The timestamp when the job was last updated.
The ID of the agent used for this job.
The input payload provided for the job.
Example Request
curl -X POST 'https://api.parcha.ai/api/v1/startKYCAgentJob' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"agent_key": "kyc-standard-check",
"job_id": "your-custom-job-id-123e4567-e89b-12d3-a456-426614174002",
"kyc_schema": {
"id": "parcha-kyc-demo-001",
"self_attested_data": {
"first_name": "Jane",
"last_name": "Doe"
}
}
}'
Example Response
Successful creation (200 OK):
{
"status" : "ok" ,
"job_id" : "job-67890-fghij" ,
"message" : "The job was successfully added to the queue." ,
"job" : {
"id" : "job-67890-fghij" ,
"status" : "PENDING" ,
"created_at" : "2023-06-15T14:30:00Z" ,
"updated_at" : "2023-06-15T14:30:00Z" ,
"agent_id" : "kyc-standard-check" ,
"input_payload" : {
"agent_key" : "kyc-standard-check" ,
"kyc_schema" : {
"id" : "parcha-kyc-demo-001" ,
"self_attested_data" : {
"first_name" : "Jane" ,
"last_name" : "Doe"
}
},
"webhook_url" : "https://your-webhook.com/kyc-updates"
}
}
}
Conflict (409 Conflict) if job_id already exists:
{
"error" : "Job with the provided ID already exists." ,
"job_id" : "your-custom-job-id-123e4567-e89b-12d3-a456-426614174002"
}
This endpoint initiates a KYC agent job with the provided parameters. The response includes a job ID that can be used to track the progress and retrieve results of the KYC process. API key obtained from your Parcha account settings. Include as Bearer token in the Authorization header.
The unique identifier for the agent
The check IDs to run (runs all checks in agent configuration if not provided)
Available options:
ok,
failed,
mock_success