This tutorial will help you get started with the KarmaCheck API by walking you through a typical workflow for a background check. With this workflow, a background check on a candidate begins running after you order the background check. By the end of this tutorial, you’ll know how to:Documentation Index
Fetch the complete documentation index at: https://developer.karmacheck.com/llms.txt
Use this file to discover all available pages before exploring further.
- Authenticate with KarmaCheck.
- Order a background check report by providing a candidate’s personally identifiable information (PII).
- Get updates about the ordered background check (also known as a case).
Before you begin
-
Ensure that you have the following sandbox credentials to gain access to the KarmaCheck API:
- An API key
- A client access token
- Email notifications to candidates get sent to the KarmaCheck sandbox account instead of the email address that you enter for a candidate. If you want to receive these emails, contact KarmaCheck to set up email forwarding.
Step 1: Authenticate with KarmaCheck
Call the authentication endpoint to retrieve an authentication token. ReplaceAPI_KEY and CLIENT_ACCESS_TOKEN with your credentials:
token field.
Step 2: Order a report
With an authentication token, you can now make API calls to order a background check for a specific group.Step 2a: Get available packages
Call theGET /package/min/list endpoint to get a list of packages available for background checks:
id field. Find the package with the name Advanced Test Package and note its ID.
Step 2b: Get services in the package
Call theGET /package/id/{packageId}/services endpoint to retrieve the list of services included in the Advanced Test Package:
serviceId field. Note the IDs of the services named Federal Criminal Search and Employment Verification — you’ll need these when ordering the background check.
Step 2c: Find jurisdictions
The Advanced Test Package includes the Federal Criminal Search (District) service, so you need to find the correct federal district jurisdictions. Call thePOST /jurisdiction/find/all endpoint:
federal-district as the jurisdiction type — you’ll need these when ordering the background check.
Step 2d: Create a case
Call thePOST /case/create endpoint to order a background check. The request below includes the minimally required data plus jurisdiction and employment order data for the Advanced Test Package:
The
postbackUrl property is for testing purposes only and supports only case status change events. To configure webhooks for your production environment, or to test all available webhook events, you must contact KarmaCheck to subscribe to webhook events.FEDERAL_CRIMINAL_SEARCH_ID and EMPLOYMENT_VERIFICATION_ID with the service IDs retrieved in Step 2b. A successful request returns the ID of the ordered background check in the caseId field. Congratulations! You’ve initiated a background check using the KarmaCheck API.
For a full explanation of the orderData array and all supported types, see Provide order data.
Step 3: (Optional) Receive status updates
If you provided a webhook URL to receive case status updates, a POST request is sent to the webhook endpoint any time the status of the case changes. The following is an example of a webhook payload:GET /case/id/{caseId} endpoint to retrieve the details of your case.