Tests
Browse your organization's written tests and those of the Evalyo library, then assign them to candidates. Voice tests are not exposed by this API.
Required scope:
tests:read to read, tests:write to assign.List tests
GET
/api/v1/testsReturns your organization's written tests and the published tests of the Evalyo library (isLibrary: true), newest first. Archived tests are not listed.
Query Parameters
| Paramètre | Type | Requis | Description |
|---|---|---|---|
page | integer | Non | Page number (default: 1). |
pageSize | integer | Non | Results per page (default: 20, max: 100). |
type | string | Non | Filter by type: KNOWLEDGE | TECHNICAL | PERSONALITY | LOGIC | SOFT_SKILLS | MANAGEMENT | MOTIVATION. |
difficulty | string | Non | Filter by difficulty: BEGINNER | INTERMEDIATE | ADVANCED | EXPERT. |
isPublished | boolean | Non | Filter by publication status (default: true). With false, only your organization's drafts are returned. |
Request
200 Response
Get a test
GET
/api/v1/tests/:idReturns the details of a test from your organization (archived included) or from the Evalyo library.
Path Parameters
| Paramètre | Type | Requis | Description |
|---|---|---|---|
id | string | Oui | Unique identifier of the test. |
Request
200 Response
Assign a test
POST
/api/v1/tests/:id/assignCreates a test session for a candidate of your organization and returns the testUrl link to take it. The test must be published and not archived.
Path Parameters
| Paramètre | Type | Requis | Description |
|---|---|---|---|
id | string | Oui | Identifier of the test to assign. |
Body Parameters
| Paramètre | Type | Requis | Description |
|---|---|---|---|
candidateId | string | Oui | Identifier of the candidate (the id field returned by /api/v1/candidates). The candidate must belong to your organization. |
stageId | string | Non | Stage of one of your organization's hiring processes to attach the session to. |
sendInvite | boolean | Non | Email the invitation to the candidate (default: true). The inviteSent field of the response tells whether the email went out. |
Request
201 Response
Send the candidate the
testUrl link: it opens the test's welcome screen without starting the timer. The token field identifies the session and is not a link.Errors
400 VALIDATION_ERRORInvalid request body (missing candidateId, non-boolean sendInvite...).400 TEST_NOT_PUBLISHEDThe test is a draft: publish it before assigning it.404 TEST_NOT_FOUNDTest not found, archived, voice-based or outside your organization.404 CANDIDATE_NOT_FOUNDThe candidate does not belong to your organization.404 STAGE_NOT_FOUNDThe stage does not belong to any of your organization's hiring processes.409 TEST_ALREADY_ASSIGNEDAn unfinished session already exists for this test, candidate and stage. The response includes its sessionId and testUrl.429 TESTS_LIMIT_REACHEDYour plan's test quota is reached (TRIAL_EXPIRED when the trial is over, 402 CREDITS_INSUFFICIENT when credits are insufficient).