Skip to content

Assessment API (`/api/v1`)

Synchronous psychometric schema, submit, and results for your organisation.

Use this when your product hosts the Yareta Assessment and you want scores in Yareta (and optionally CRM). This is not GraphQL and not the Zapier key. Keys are issued per organisation and shown once.

Participants can still use invite links in the app with no API. The API is for your UI or ATS.

Base: https://platform.yareta.ai
Auth: x-api-key: <developer key>
Runtime: HTTPS JSON

GET /api/v1/assessment/questions

Returns the current instrument definition (versioned).

Useful fields in the payload:

  • version (currently "1.0")
  • organizationId
  • scaleDescription / scaleOptions — psychometric items are integers 1–6
  • totalQuestions — 140 including demographics and closing
  • categories.demographics — includes required full name (q1) and email (q4)
  • categories.psychometric — q5–q131 (127 items), all required to score
  • categories.closing — q132–q140 optional context

Use this response to render your own UI. Do not hard-code question text; it can be updated.

POST /api/v1/assessment/submit

Submit answers for a participant.

Body (JSON):

FieldRequiredNotes
emailYesValid email; identifies the result
full_nameYesDisplay name
q5 … q131YesIntegers 1–6
benchmark_tag_idNoIndustry benchmark from the tags endpoint
Other q*NoDemographics / closing

On success you receive { success, responseId, scores, benchmarkApplied } (field names as returned). Scoring is synchronous. One stored result per organisation + email (later submits upsert). CRM sync, if configured, runs asynchronously after save.

GET /api/v1/assessment/results

Query parameters (at least one required):

  • email
  • result_id

Returns the stored scored result for your organisation.

GET /api/v1/benchmark-tags

Paginated industry benchmark tags.

  • page, limit (limit capped at 100)

Response includes { success, pagination, count, … }.

Example

Terminal window
curl -sS https://platform.yareta.ai/api/v1/assessment/questions \
-H "x-api-key: $YARETA_KEY"
Terminal window
curl -sS https://platform.yareta.ai/api/v1/assessment/submit \
-H "x-api-key: $YARETA_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "ada@example.com",
"full_name": "Ada Lovelace",
"q5": 5,
"q6": 4
}'

(Include every required psychometric key q5–q131 in production.)

Errors

HTTPerrorTypical cause
401UnauthorizedMissing/invalid key
400Bad RequestInvalid JSON, bad email, missing/invalid answers (missingCount / invalidCount may be present)
500Internal Server ErrorRetry with backoff; contact support if persistent

Webhooks (developer)

You can register HTTPS endpoints to receive assessment-related events (signing secret shown once). Contact Yareta if webhook registration is not visible in your workspace yet.