Video Interview Providers
How it works
The first step is for Workable and the Video Interview Providers to be authenticated. Then the user can select one from the available/configured interviews from the Provider and push a candidate's information over, to create a new interview. When the candidate completes the interview, the Provider should inform Workable about the results.
There are 2 endpoints that should be provided, with ${BASE_URL}
being the root path for both of them:
https://${BASE_URL}/interview-templates
which allows theGET
method and lists the available interview templateshttps://${BASE_URL}/interviews
which allows thePOST
method and creates an invitation for a candidate
Workable provides an endpoint for receiving the results, see creating an interview for more info.
Authentication
1. Workable to Video Interview Provider
Every call from Workable towards the Video Interview Provider is authenticated using an access token contained in the Authentication HTTP Header. e.g. Authorization: Bearer 78e3be68d98268509ea304a506ed6362d
. This token should be provided to the user from the Video Interview Provider and configured in the respective Workable account.
2. Video Interview Provider to Workable
Regarding the requests originating from the Video Interview Provider, an access token will be generated and communicated upon the integration creation. This token should be included in the Authorization Header as well.
The Bearer token is the standard authorization scheme used in OAuth 2
Listing available interview templates
Workable needs access in the available/configured interview templates; an authenticated GET
is triggered towards the Video Interview Provider to fetch them. The endpoint should be formatted as https://${BASE_URL}/interview-templates
and the response should be a JSON document with an array of interview templates. Each interview template is described through identification and name.
Response
{
"interview_templates": [
{
"id": "1",
"name": "Aptitude Interview"
},
{
"id": "2",
"name": "Java Interview"
}
]
}
One interview template per job can be selected. See below where the identification becomes handy.
Creating an interview
Workable provides users with the ability to create an interview for a candidate on demand. If the action is called, Workable will POST
the Video Interview Provider on https://${BASE_URL}/interviews
with a payload that looks as follows:
{
"interview_template_id": "12345",
"job_id": "6789",
"job_title": "Operations Manager",
"callback_url": "https://groove-tech.workable.com/interviews/8823119",
"candidate": {
"first_name": "Lakita",
"last_name": "Marrero",
"phone": "(785)991-6256",
"email": "[email protected]",
},
"preferences": {
"key": "value"
}
}
interview_template_id
: The identification provided in the previous stepjob_id
: (Optional) The job identified in the list jobs stepjob_title
: The job that the candidate applied to. Can be contained in the invitation email.callback_url
: The URL in which the Video Interview Provider should publish the results (see below)candidate
: Candidate info. Can be used in the invitation email.preferences
: This field can be used to pass custom values to the Video Interview Provider
The Video Interview Provider should respond with a
201
status and an identifier for the created interview.{ "interview_id": "2044922" }
Results collection
1. Publishing the Results to Workable
There are 4 statuses for an interview. The initial status is pending
and then the interview can be completed
, rejected
or expired
. The status depends on the actions of the candidate regarding the interview. Whenever the status changes, the Video Interview Provider should publish the new status to Workable using PUT
on the callback_url
provided in the interview creation step.
When the status is completed, the request should include the interview results.
2. Publishing the Results on an API
Another alternative is for Workable to poll the endpoint https://${BASE_URL}/interviews/:id
with the interview identifier returned in the interview creation step. This method however is suboptimal since it requires more than one requests until the results are finally fetched. Moreover, a failsafe mechanism should be created in case the invitation was rejected by the candidate.
In both cases the payload provided by the Video Interview Provider should be as follows:
{
"results_url": "https://acme.com/interviews/2044922",
"status": "completed",
"interview": {
"score": "78",
"grade": "excelled",
"summary": "This candidate is an excellent prospect.",
"details": {
"behavior": {
"Influence": 97,
"conscientiousness": 76
},
"mental_skills": {
"Problem Solving": 82,
"Aptitude": 91
}
},
"duration": "01:01:17"
},
"attachments": [
{
"description": "Interview Report",
"url": "https://acme.com/interviews/2044922/report.pdf"
}
]
}
Mandatory fields
status
: This can take any of the valuescompleted
,declined
orexpired
results_url
: A link to the fully fledged report on the Provider's site (Mandatory only whenstatus
iscompleted
Optional fields
grade
: This is the final conclusion of the interview, it can take any of the valuesfailed
,passed
orexcelled
. This is respectively mapped tono
,yes
anddefinitely yes
in Workable evaluation system.interview
:score
: An overall score, preferably a percentagesummary
: Small description/evaluation of the interviewdetails
: This can be used to provide a deeper analysis on the candidate's results. It's a JSON with a maximum of two levels nested objects and is presented to the user with minimum formatting, so keys should be descriptive and readable. The structure should follow thekey: value
format, no arrays should be included and a first level value may be consisted of more objects itself. Any values holding dates should conform to ISO 8601.duration
: How long did it take the candidate to complete the interview, if available
attachments
: Currently only supporting PDF. A results report of the interview along with a description, if available. The URL should be publicly accessible.
Errors
The endpoints of the Video Interview Provider should handle request errors with a status code followed by a readable message. The description message should be short yet verbose enough to facilitate ease of troubleshooting.
Type | Status | Example messages |
---|---|---|
Authentication | 401 | Missing Token |
Authentication | 401 | Invalid Token |
Invalid Request | 400 | Invalid JSON |
Invalid Request | 400 | Invalid field: name should be a string |
Invalid Request | 422 | Missing field: name should be provided |
Conflict | 409 | Entity is already updated |
A valid response on an Error would be
{ "status": 401, "message": "Invalid Token" }
3. Retrieving a shared link
This is an optional GET
endpoint to be implemented by the Video Interview Provider. This endpoint serves interview links, in case when the system supports sharing public links. The URL should look like https://${BASE_URL}/interviews/:id/shared-link
and the interview-id
should be the one returned from the interview creation call.
Response
{
"url": "https://acme.com/interviews/2044922/link",
"ttl": "120",
"ttl_units": "minutes"
}
url
: A link to the public shared report on the Provider's sitettl
: (Optional) The time this link will be available. If this is not set, the link is assumed to be permanent.ttl_units
: The units used for measuring the TTL. Currently supported values:minutes
,days
andviews
.