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/tests

Returns 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ètreTypeRequisDescription
pageintegerNonPage number (default: 1).
pageSizeintegerNonResults per page (default: 20, max: 100).
typestringNonFilter by type: KNOWLEDGE | TECHNICAL | PERSONALITY | LOGIC | SOFT_SKILLS | MANAGEMENT | MOTIVATION.
difficultystringNonFilter by difficulty: BEGINNER | INTERMEDIATE | ADVANCED | EXPERT.
isPublishedbooleanNonFilter by publication status (default: true). With false, only your organization's drafts are returned.
Request
200 Response

Get a test

GET/api/v1/tests/:id

Returns the details of a test from your organization (archived included) or from the Evalyo library.

Path Parameters

ParamètreTypeRequisDescription
idstringOuiUnique identifier of the test.
Request
200 Response

Assign a test

POST/api/v1/tests/:id/assign

Creates 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ètreTypeRequisDescription
idstringOuiIdentifier of the test to assign.

Body Parameters

ParamètreTypeRequisDescription
candidateIdstringOuiIdentifier of the candidate (the id field returned by /api/v1/candidates). The candidate must belong to your organization.
stageIdstringNonStage of one of your organization's hiring processes to attach the session to.
sendInvitebooleanNonEmail 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_ERROR Invalid request body (missing candidateId, non-boolean sendInvite...).
  • 400 TEST_NOT_PUBLISHED The test is a draft: publish it before assigning it.
  • 404 TEST_NOT_FOUND Test not found, archived, voice-based or outside your organization.
  • 404 CANDIDATE_NOT_FOUND The candidate does not belong to your organization.
  • 404 STAGE_NOT_FOUND The stage does not belong to any of your organization's hiring processes.
  • 409 TEST_ALREADY_ASSIGNED An unfinished session already exists for this test, candidate and stage. The response includes its sessionId and testUrl.
  • 429 TESTS_LIMIT_REACHED Your plan's test quota is reached (TRIAL_EXPIRED when the trial is over, 402 CREDITS_INSUFFICIENT when credits are insufficient).