Send your first request
Last updated
Last updated
The Certn Group of companies includes Certn, Credence & InterCheck. For educational purposes, these companies are referred to as “Certn” in this website. For questions about any of the aforementioned companies, contact support@certn.co. ©2023 Certn.
To follow this guide, you need a demo account. Make sure it's fully setup! If not, follow our instructions on how to create a demo account.
To communicate with our API, you'll need to build HTTP requests. You can use the programming language of your choice to achieve this. We provide examples of scripts using Python, but most of the content you'll work with will be in JSON.
You can find the URLs for all our endpoints in the API Reference section of this documentation. Knowing how to use them can be helpful, so we'll show you how they're created.
In this example, you'll be making calls to our demo environment, at https://demo-api.certn.co
.
We currently divide our endpoints by industry:
Human resources endpoints start with /hr/v1/
Property management endpoints start with /api/v2/
Later on, you'll request a Softcheck, which is under /applications
. You'll also make it a quickscreen, so you'll be filling all of the information yourself instead of sending it to your applicant. To make it a quick screen, add /quick
to your URL.
Place this together, and you get the URL for your call.
Choose the URL that corresponds to your industry to continue:
To gain access to our API, you need an Authorization header with a valid Bearer token. The token is your API key.
Replace <token>
with your API key in the following header:
Include this header in every call to our API, and keep it secure. It is your access key.
To request a Softcheck, add the request-flag 'request_softcheck': true
to your content.
For your applicant, use our CEO's name, Andrew McLeod.
For the address, use our office location in Victoria, BC.
Fill the SIN/SSN number with a placeholder.
Here is what your full script may look like when using Python:
In the previous example, we saved the results of the call to a new file named softcheckDemo.json
.
With everything set properly and a good internet connection, you should receive a response status of 201 Created
.
201 Created
[...]
"id": "<number>",
[...]
"report_status": "ANALYZING",
[...]
Errors are a relatively common occurrence when working with APIs. It's always good to know how to prevent them and what to do when they arise.
Here are some errors you may encounter when doing this exercise, and how to fix them.
You may receive a 400 Bad Request
when:
Some required fields are missing in your request
"information": {
"addresses": ["This field is required."]
}
Add the missing fields to the body of your request and verify your syntax.
You may receive a 401 Unauthorized
if:
You sent your request without an authorization header
"detail": "Authentication credentials were not provided."
You sent your request with an authorization header, but without an API Key
You provided an incorrect API key in the header of your request
"detail": "Invalid token."
Add your API key in the authorization header, and include it in every call.
You may receive a 403 Forbidden
if:
You sent your request to an endpoint you don't have access to
"detail": "You do not have permission to perform this action."
Use the URL that corresponds to your industry.
Now we're ready to bring it all together. Our /application
endpoint accepts POST requests, so make sure that is what you use. Visit W3Schools for useful guides on HTTP requests.