Cavenue

Cavenue API reference

Başvuru kılavuzu, belgelediği kod gibi İngilizcedir.

Everything your systems need to work with Cavenue: authentication, the endpoints with examples, errors, limits, and signed webhooks.

https://cavenue.co/api/v1openapi.jsonAPI anahtarı alın
On this page
  1. Overview
  2. Quickstart
  3. Authentication
  4. Errors
  5. Pagination
  6. Rate limits
  7. Idempotency
  8. People decide
  9. Endpoints
  10. Webhooks

Overview

The Cavenue API is a JSON REST API at https://cavenue.co/api/v1. It lets your systems create and update jobs, add candidates to them, move applications through your pipeline, invite candidates to AI interviews and read their status, score, recommendation and report. Webhooks tell your systems when something happens, so you don't have to poll.

Version 1 only grows: new endpoints, new optional fields and new event types may appear, so ignore fields you don't know. Anything that would break an integration comes as /api/v2, announced in advance.

Quickstart

  1. An admin or owner of your company opens Settings → API in Cavenue and creates a key. It is shown once: store it in your system's secrets.
  2. Call the API with it. GET /me answers with the key and your company:
bash
export CAVENUE_API_KEY="cav_live_…"   # Settings → API

curl https://cavenue.co/api/v1/me \
  -H "Authorization: Bearer $CAVENUE_API_KEY"

The usual flow for an ATS: add the candidate, invite them, then read the result (or wait for the interview.evaluated webhook).

bash
# 1. Add a candidate to a job
curl https://cavenue.co/api/v1/applications \
  -H "Authorization: Bearer $CAVENUE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"job_id":"<job id>","candidate":{"full_name":"Maya Fischer","email":"maya.fischer@example.com"}}'

# 2. Invite them to the AI interview (Cavenue emails the link)
curl -X POST https://cavenue.co/api/v1/applications/<application id>/interviews \
  -H "Authorization: Bearer $CAVENUE_API_KEY"

# 3. Later: the score and report (or listen for interview.evaluated)
curl https://cavenue.co/api/v1/interviews/<interview id> \
  -H "Authorization: Bearer $CAVENUE_API_KEY"

Authentication

Send the key in the Authorization header of every request: Authorization: Bearer cav_live_…. Keys start with cav_live_ and belong to one company: everything a key reads or changes is that company's, and a key never sees another company's data. Cavenue stores only a hash of each key, so a lost key can't be shown again: revoke it and create a new one.

A key has read and write access (everything below) or read only access (GET requests; anything else answers 403 insufficient_scope). Use read-only keys for careers sites and reporting. Keep keys on your servers: the API doesn't answer browsers on other sites (no CORS), so a key can't work from a web page.

Settings → API shows each key's last use. Creating and revoking keys is recorded in the company's activity log there.

Errors

Errors use HTTP status codes and one JSON shape. code is stable and meant for your program; message is for people reading logs. Every answer carries an X-Request-Id header (also request_id in errors): quote it when you contact support.

422 Unprocessable Content
{
  "error": {
    "type": "invalid_request_error",
    "code": "validation_failed",
    "message": "Invalid request body: candidate.email — Invalid email address",
    "param": "candidate.email",
    "details": [
      {
        "param": "candidate.email",
        "message": "Invalid email address"
      }
    ],
    "request_id": "req_5f0c9a7d1e2b3c4d5e6f7a8b"
  }
}
StatuscodeWhat to do
400invalid_json · invalid_cursor · invalid_limit · invalid_parameter · invalid_idempotency_keyFix the request; retrying the same one won't help.
401invalid_api_keyNo key, or an invalid or revoked one.
402plan_job_limit · plan_neededYour plan doesn't allow it. An owner can upgrade in Settings → Billing.
403insufficient_scopeA read-only key tried to change something.
404not_foundNo such endpoint, or no such object in your company (ids of other companies look the same as ids that don't exist).
409application_exists · application_closed · interview_in_progress · interview_not_open · idempotency_in_progressIt conflicts with the current state.
413 / 415body_too_large · unsupported_media_typeSend JSON up to 1 MB with Content-Type: application/json.
422validation_failed · interview_round_invalid · idempotency_key_reusedThe body didn't pass validation; details names each field.
429rate_limitedWait Retry-After seconds.
500internal_errorOur side failed and the team was told. Retry with backoff (with the same Idempotency-Key for POST).

Pagination

List endpoints answer newest first, 25 items per page by default (?limit= up to 100). When has_more is true, pass next_cursor as ?cursor= for the next page. Cursors are opaque and stable: new items never shift the pages you are reading.

GET /api/v1/applications?job_id=…&limit=50
{
  "object": "list",
  "data": [
    "…"
  ],
  "has_more": true,
  "next_cursor": "WyIyMDI2LTExLTIzVDA5OjEyOjQ0LjUxMloiLCIzZjFjMmE5ZSJd"
}

Rate limits

Each key may send 120 requests a minute. Every answer says where you stand with X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds). Past the limit the API answers 429 rate_limited with Retry-After in seconds. Repeated requests with invalid keys from one address are slowed down too. Need more? Write to support.

Idempotency

Networks fail. To retry a POST safely, send an Idempotency-Key header with a value unique to that action (a UUID works). Cavenue keeps the first answer for 24 hours: a retry with the same key and the same body gets that answer again, marked Idempotent-Replayed: true, and nothing is done twice.

The same key with a different body answers 422 idempotency_key_reused; a retry while the first request is still running answers 409 idempotency_in_progress. Answers of 500 and up aren't kept, so retrying after our failure works.

People decide

Cavenue's AI scores and recommends; it never rejects a candidate on its own. Moving, rejecting and hiring through the API should reflect a decision a person on your team made: pass performed_by (for example their email) and it is shown in the candidate's timeline next to the key's name. Don't reject candidates automatically on a score. When you add candidates, make sure you may share their data with Cavenue; candidates read Cavenue's notice and agree before any AI interview.

Endpoints

The API key and its company

GET/api/v1/me

Errors: 401, 429

Request
curl "https://cavenue.co/api/v1/me" \
  -H "Authorization: Bearer $CAVENUE_API_KEY"
Response
{
  "object": "api_key",
  "id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
  "name": "Greenhouse sync",
  "prefix": "cav_live_8hKq2TzP",
  "scope": "write",
  "organization": {
    "object": "organization",
    "id": "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
    "name": "Acme",
    "slug": "acme"
  }
}

List jobs

GET/api/v1/jobs

Parameters

NameInDescription
statusquery"draft" | "open" | "paused" | "closed"Only jobs with this status.
limitqueryintegerHow many items per page.
cursorquerystringnext_cursor from the previous page.

Errors: 400, 401, 429

Request
curl "https://cavenue.co/api/v1/jobs" \
  -H "Authorization: Bearer $CAVENUE_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "job",
      "id": "3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10",
      "title": "Senior Backend Engineer",
      "slug": "senior-backend-engineer",
      "department": "Engineering",
      "location": "Berlin",
      "workplace": "hybrid",
      "employment_type": "full_time",
      "description": "You will design and run the services behind our product…",
      "language": "en",
      "status": "open",
      "is_public": true,
      "auto_invite": false,
      "requirements": {
        "must": [
          "5+ years with Go or Java",
          "Production PostgreSQL"
        ],
        "nice": [
          "Kubernetes"
        ]
      },
      "interview_plan": {
        "language": "candidate",
        "deadline_days": 7,
        "rounds": [
          {
            "round": 1,
            "type": "technical",
            "mode": "voice",
            "minutes": 20,
            "questions": []
          }
        ]
      },
      "careers_url": "https://cavenue.co/careers/acme/senior-backend-engineer",
      "created_at": "2026-11-23T09:12:44.512Z",
      "updated_at": "2026-11-23T09:12:44.512Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Create a job

POST/api/v1/jobs

Starts as a draft unless you send status. Without interview_plan, the job gets one 15-minute HR round by voice in the candidate's language.

Body (JSON)

FieldDescription
title*string2 to 160 characters. Up to 160 characters.
descriptionstringThe job description shown on the careers page and used by the AI interviewer. Up to 30000 characters.
departmentstringUp to 120 characters.
locationstringUp to 160 characters.
workplace"onsite" | "hybrid" | "remote"
employment_type"full_time" | "part_time" | "contract" | "temporary" | "internship" | "freelance"
language"tr" | "en" | "hi" | "es" | "ur" | "id" | "ar" | "de" | "fr" | "pt"The job's language. Defaults to the company's language.
status"draft" | "open" | "paused" | "closed"Opening a job counts against your plan's open jobs (402 plan_job_limit when it doesn't fit).
is_publicbooleanListed on your careers page while open.
auto_invitebooleanInvite every applicant from the careers page to the AI interview automatically.
requirementsobjectReplaces the lists given. Used by CV screening and the interview.
requirements.muststring[]
requirements.nicestring[]
interview_planobjectCompetencies per round come from the round type's defaults; edit them in Cavenue.
interview_plan.language"candidate" | "tr" | "en" | "hi" | "es" | "ur" | "id" | "ar" | "de" | "fr" | "pt"candidate: the candidate picks the language.
interview_plan.deadline_daysintegerHow long an invitation link stays valid. 1–60.
interview_plan.roundsobject[]
interview_plan.rounds[].type*"hr" | "technical" | "manager" | "custom"
interview_plan.rounds[].mode"voice" | "written"
interview_plan.rounds[].minutesinteger10–40.
interview_plan.rounds[].questionsobject[]

Errors: 400, 401, 402, 403, 409, 422, 429

Request
curl -X POST "https://cavenue.co/api/v1/jobs" \
  -H "Authorization: Bearer $CAVENUE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"title":"Senior Backend Engineer","department":"Engineering","location":"Berlin","workplace":"hybrid","employment_type":"full_time","description":"You will design and run the services behind our product…","requirements":{"must":["5+ years with Go or Java","Production PostgreSQL"],"nice":["Kubernetes"]},"interview_plan":{"rounds":[{"type":"technical","mode":"voice","minutes":20}]},"status":"open","is_public":true}'
Response
{
  "object": "job",
  "id": "3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10",
  "title": "Senior Backend Engineer",
  "slug": "senior-backend-engineer",
  "department": "Engineering",
  "location": "Berlin",
  "workplace": "hybrid",
  "employment_type": "full_time",
  "description": "You will design and run the services behind our product…",
  "language": "en",
  "status": "open",
  "is_public": true,
  "auto_invite": false,
  "requirements": {
    "must": [
      "5+ years with Go or Java",
      "Production PostgreSQL"
    ],
    "nice": [
      "Kubernetes"
    ]
  },
  "interview_plan": {
    "language": "candidate",
    "deadline_days": 7,
    "rounds": [
      {
        "round": 1,
        "type": "technical",
        "mode": "voice",
        "minutes": 20,
        "questions": []
      }
    ]
  },
  "careers_url": "https://cavenue.co/careers/acme/senior-backend-engineer",
  "created_at": "2026-11-23T09:12:44.512Z",
  "updated_at": "2026-11-23T09:12:44.512Z"
}

Get a job

GET/api/v1/jobs/{job_id}

Parameters

NameInDescription
job_id*pathstringThe job's id.

Errors: 401, 404, 429

Request
curl "https://cavenue.co/api/v1/jobs/<job_id>" \
  -H "Authorization: Bearer $CAVENUE_API_KEY"
Response
{
  "object": "job",
  "id": "3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10",
  "title": "Senior Backend Engineer",
  "slug": "senior-backend-engineer",
  "department": "Engineering",
  "location": "Berlin",
  "workplace": "hybrid",
  "employment_type": "full_time",
  "description": "You will design and run the services behind our product…",
  "language": "en",
  "status": "open",
  "is_public": true,
  "auto_invite": false,
  "requirements": {
    "must": [
      "5+ years with Go or Java",
      "Production PostgreSQL"
    ],
    "nice": [
      "Kubernetes"
    ]
  },
  "interview_plan": {
    "language": "candidate",
    "deadline_days": 7,
    "rounds": [
      {
        "round": 1,
        "type": "technical",
        "mode": "voice",
        "minutes": 20,
        "questions": []
      }
    ]
  },
  "careers_url": "https://cavenue.co/careers/acme/senior-backend-engineer",
  "created_at": "2026-11-23T09:12:44.512Z",
  "updated_at": "2026-11-23T09:12:44.512Z"
}

Update a job

PATCH/api/v1/jobs/{job_id}

Send only the fields to change.

Parameters

NameInDescription
job_id*pathstringThe job's id.

Body (JSON)

FieldDescription
titlestring2 to 160 characters. Up to 160 characters.
descriptionstringThe job description shown on the careers page and used by the AI interviewer. Up to 30000 characters.
departmentstringUp to 120 characters.
locationstringUp to 160 characters.
workplace"onsite" | "hybrid" | "remote"
employment_type"full_time" | "part_time" | "contract" | "temporary" | "internship" | "freelance"
language"tr" | "en" | "hi" | "es" | "ur" | "id" | "ar" | "de" | "fr" | "pt"The job's language. Defaults to the company's language.
status"draft" | "open" | "paused" | "closed"Opening a job counts against your plan's open jobs (402 plan_job_limit when it doesn't fit).
is_publicbooleanListed on your careers page while open.
auto_invitebooleanInvite every applicant from the careers page to the AI interview automatically.
requirementsobjectReplaces the lists given. Used by CV screening and the interview.
requirements.muststring[]
requirements.nicestring[]
interview_planobjectCompetencies per round come from the round type's defaults; edit them in Cavenue.
interview_plan.language"candidate" | "tr" | "en" | "hi" | "es" | "ur" | "id" | "ar" | "de" | "fr" | "pt"candidate: the candidate picks the language.
interview_plan.deadline_daysintegerHow long an invitation link stays valid. 1–60.
interview_plan.roundsobject[]
interview_plan.rounds[].type*"hr" | "technical" | "manager" | "custom"
interview_plan.rounds[].mode"voice" | "written"
interview_plan.rounds[].minutesinteger10–40.
interview_plan.rounds[].questionsobject[]

Errors: 400, 401, 402, 403, 404, 422, 429

Request
curl -X PATCH "https://cavenue.co/api/v1/jobs/<job_id>" \
  -H "Authorization: Bearer $CAVENUE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location":"Remote (EU)","workplace":"remote"}'
Response
{
  "object": "job",
  "id": "3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10",
  "title": "Senior Backend Engineer",
  "slug": "senior-backend-engineer",
  "department": "Engineering",
  "location": "Berlin",
  "workplace": "hybrid",
  "employment_type": "full_time",
  "description": "You will design and run the services behind our product…",
  "language": "en",
  "status": "open",
  "is_public": true,
  "auto_invite": false,
  "requirements": {
    "must": [
      "5+ years with Go or Java",
      "Production PostgreSQL"
    ],
    "nice": [
      "Kubernetes"
    ]
  },
  "interview_plan": {
    "language": "candidate",
    "deadline_days": 7,
    "rounds": [
      {
        "round": 1,
        "type": "technical",
        "mode": "voice",
        "minutes": 20,
        "questions": []
      }
    ]
  },
  "careers_url": "https://cavenue.co/careers/acme/senior-backend-engineer",
  "created_at": "2026-11-23T09:12:44.512Z",
  "updated_at": "2026-11-23T09:12:44.512Z"
}

Close a job

POST/api/v1/jobs/{job_id}/close

It leaves your careers page and stops taking applications. Safe to call again.

Parameters

NameInDescription
job_id*pathstringThe job's id.

Errors: 401, 403, 404, 429

Request
curl -X POST "https://cavenue.co/api/v1/jobs/<job_id>/close" \
  -H "Authorization: Bearer $CAVENUE_API_KEY"
Response
{
  "object": "job",
  "id": "3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10",
  "title": "Senior Backend Engineer",
  "slug": "senior-backend-engineer",
  "department": "Engineering",
  "location": "Berlin",
  "workplace": "hybrid",
  "employment_type": "full_time",
  "description": "You will design and run the services behind our product…",
  "language": "en",
  "status": "open",
  "is_public": true,
  "auto_invite": false,
  "requirements": {
    "must": [
      "5+ years with Go or Java",
      "Production PostgreSQL"
    ],
    "nice": [
      "Kubernetes"
    ]
  },
  "interview_plan": {
    "language": "candidate",
    "deadline_days": 7,
    "rounds": [
      {
        "round": 1,
        "type": "technical",
        "mode": "voice",
        "minutes": 20,
        "questions": []
      }
    ]
  },
  "careers_url": "https://cavenue.co/careers/acme/senior-backend-engineer",
  "created_at": "2026-11-23T09:12:44.512Z",
  "updated_at": "2026-11-23T09:12:44.512Z"
}

List candidates

GET/api/v1/candidates

Parameters

NameInDescription
emailquerystringFind a candidate by email address (case-insensitive).
limitqueryintegerHow many items per page.
cursorquerystringnext_cursor from the previous page.

Errors: 400, 401, 429

Request
curl "https://cavenue.co/api/v1/candidates" \
  -H "Authorization: Bearer $CAVENUE_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "candidate",
      "id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
      "full_name": "Maya Fischer",
      "email": "maya.fischer@example.com",
      "phone": "+49 30 1234567",
      "location": null,
      "links": [],
      "source": "greenhouse",
      "application_ids": [
        "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b"
      ],
      "created_at": "2026-11-23T09:15:02.104Z",
      "updated_at": "2026-11-23T09:15:02.104Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Get a candidate

GET/api/v1/candidates/{candidate_id}

Parameters

NameInDescription
candidate_id*pathstringThe candidate's id.

Errors: 401, 404, 429

Request
curl "https://cavenue.co/api/v1/candidates/<candidate_id>" \
  -H "Authorization: Bearer $CAVENUE_API_KEY"
Response
{
  "object": "candidate",
  "id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
  "full_name": "Maya Fischer",
  "email": "maya.fischer@example.com",
  "phone": "+49 30 1234567",
  "location": null,
  "links": [],
  "source": "greenhouse",
  "application_ids": [
    "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b"
  ],
  "created_at": "2026-11-23T09:15:02.104Z",
  "updated_at": "2026-11-23T09:15:02.104Z"
}

List applications

GET/api/v1/applications

Parameters

NameInDescription
job_idquerystringOnly this job's applications.
candidate_idquerystringOnly this candidate's applications.
stagequery"applied" | "screening" | "ai_interview" | "review" | "interview" | "offer" | "hired"Only applications in this stage.
statusquery"active" | "rejected" | "withdrawn" | "hired"Only applications with this status.
limitqueryintegerHow many items per page.
cursorquerystringnext_cursor from the previous page.

Errors: 400, 401, 429

Request
curl "https://cavenue.co/api/v1/applications" \
  -H "Authorization: Bearer $CAVENUE_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "application",
      "id": "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b",
      "job_id": "3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10",
      "candidate_id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
      "stage": "ai_interview",
      "status": "active",
      "rejection_reason": null,
      "source": "greenhouse",
      "cv_score": null,
      "candidate": {
        "id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
        "full_name": "Maya Fischer",
        "email": "maya.fischer@example.com"
      },
      "created_at": "2026-11-23T09:15:02.104Z",
      "updated_at": "2026-11-23T09:16:30.871Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Add a candidate to a job

POST/api/v1/applications

Creates the candidate (or reuses the one with the same email in your company) and their application in the applied stage. 409 application_exists when they already applied to this job. Make sure you may share the candidate's data with Cavenue; the candidate sees Cavenue's notice and gives consent before any AI interview.

Body (JSON)

FieldDescription
job_id*stringThe job's id.
candidate*object
candidate.full_name*stringUp to 160 characters.
candidate.email*stringUp to 254 characters.
candidate.phonestringUp to 40 characters.
candidate.locationstringUp to 160 characters.
language"tr" | "en" | "hi" | "es" | "ur" | "id" | "ar" | "de" | "fr" | "pt"The language emails to the candidate go in. Defaults to the job's.
sourcestringWhere the candidate came from, such as your ATS's name. Defaults to api.

Errors: 400, 401, 403, 404, 409, 422, 429

Request
curl -X POST "https://cavenue.co/api/v1/applications" \
  -H "Authorization: Bearer $CAVENUE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"job_id":"3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10","candidate":{"full_name":"Maya Fischer","email":"maya.fischer@example.com","phone":"+49 30 1234567"},"source":"greenhouse"}'
Response
{
  "object": "application",
  "id": "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b",
  "job_id": "3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10",
  "candidate_id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
  "stage": "ai_interview",
  "status": "active",
  "rejection_reason": null,
  "source": "greenhouse",
  "cv_score": null,
  "candidate": {
    "id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
    "full_name": "Maya Fischer",
    "email": "maya.fischer@example.com"
  },
  "created_at": "2026-11-23T09:15:02.104Z",
  "updated_at": "2026-11-23T09:16:30.871Z"
}

Get an application

GET/api/v1/applications/{application_id}

Parameters

NameInDescription
application_id*pathstringThe application's id.

Errors: 401, 404, 429

Request
curl "https://cavenue.co/api/v1/applications/<application_id>" \
  -H "Authorization: Bearer $CAVENUE_API_KEY"
Response
{
  "object": "application",
  "id": "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b",
  "job_id": "3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10",
  "candidate_id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
  "stage": "ai_interview",
  "status": "active",
  "rejection_reason": null,
  "source": "greenhouse",
  "cv_score": null,
  "candidate": {
    "id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
    "full_name": "Maya Fischer",
    "email": "maya.fischer@example.com"
  },
  "created_at": "2026-11-23T09:15:02.104Z",
  "updated_at": "2026-11-23T09:16:30.871Z"
}

Move to a stage

POST/api/v1/applications/{application_id}/stage

Moving to hired also marks the application hired. A rejected or withdrawn application answers 409 application_closed.

Parameters

NameInDescription
application_id*pathstringThe application's id.

Body (JSON)

FieldDescription
stage*"applied" | "screening" | "ai_interview" | "review" | "interview" | "offer" | "hired"
performed_bystringWho on your team decided, such as their email. Shown in the candidate's timeline. Up to 254 characters.

Errors: 400, 401, 403, 404, 409, 422, 429

Request
curl -X POST "https://cavenue.co/api/v1/applications/<application_id>/stage" \
  -H "Authorization: Bearer $CAVENUE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"stage":"interview","performed_by":"lena@yourcompany.com"}'
Response
{
  "object": "application",
  "id": "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b",
  "job_id": "3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10",
  "candidate_id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
  "stage": "ai_interview",
  "status": "active",
  "rejection_reason": null,
  "source": "greenhouse",
  "cv_score": null,
  "candidate": {
    "id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
    "full_name": "Maya Fischer",
    "email": "maya.fischer@example.com"
  },
  "created_at": "2026-11-23T09:15:02.104Z",
  "updated_at": "2026-11-23T09:16:30.871Z"
}

Reject

POST/api/v1/applications/{application_id}/reject

Unused interview links stop working. With notify_candidate, Cavenue emails the candidate your rejection template in their language.

Parameters

NameInDescription
application_id*pathstringThe application's id.

Body (JSON)

FieldDescription
reason*"requirements" | "experience" | "interview" | "position_filled" | "withdrew" | "other"
notestringFor your team; never sent to the candidate or in webhooks. Up to 1000 characters.
notify_candidatebooleanDefault false.
performed_bystringWho on your team decided. Up to 254 characters.

Errors: 400, 401, 403, 404, 409, 422, 429

Request
curl -X POST "https://cavenue.co/api/v1/applications/<application_id>/reject" \
  -H "Authorization: Bearer $CAVENUE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"reason":"experience","note":"Strong, but we need more people management.","notify_candidate":true,"performed_by":"lena@yourcompany.com"}'
Response
{
  "object": "application",
  "id": "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b",
  "job_id": "3f1c2a9e-6b1d-4c55-9a0e-1d2b7c4e8f10",
  "candidate_id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
  "stage": "ai_interview",
  "status": "active",
  "rejection_reason": null,
  "source": "greenhouse",
  "cv_score": null,
  "candidate": {
    "id": "8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
    "full_name": "Maya Fischer",
    "email": "maya.fischer@example.com"
  },
  "created_at": "2026-11-23T09:15:02.104Z",
  "updated_at": "2026-11-23T09:16:30.871Z"
}

Invite to the AI interview

POST/api/v1/applications/{application_id}/interviews

Emails the candidate a personal link to the round of the job's interview plan (an unused earlier link for that round stops working) and moves an application in applied or screening to ai_interview. interview_url is returned once; the candidate's credits are used only when they take the interview.

Parameters

NameInDescription
application_id*pathstringThe application's id.

Body (JSON)

FieldDescription
roundintegerDefault 1. 1–3.

Errors: 400, 401, 403, 404, 409, 422, 429

Request
curl -X POST "https://cavenue.co/api/v1/applications/<application_id>/interviews" \
  -H "Authorization: Bearer $CAVENUE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"round":1}'
Response
{
  "object": "interview",
  "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
  "application_id": "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b",
  "round": 1,
  "type": "technical",
  "mode": "voice",
  "language": "de",
  "status": "invited",
  "invited_at": "2026-11-23T09:16:30.871Z",
  "expires_at": "2026-11-30T09:16:30.871Z",
  "started_at": null,
  "completed_at": null,
  "minutes_used": 0,
  "score": null,
  "recommendation": null,
  "report_status": "none",
  "report": null,
  "report_url": "https://cavenue.co/app/candidates/8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
  "created_at": "2026-11-23T09:16:30.871Z",
  "interview_url": "https://cavenue.co/i/Xq3…",
  "candidate_emailed": true
}

List interviews

GET/api/v1/interviews

Parameters

NameInDescription
application_idquerystringOnly this application's interviews.
statusquery"invited" | "started" | "completed" | "expired" | "terminated"Only interviews with this status.
limitqueryintegerHow many items per page.
cursorquerystringnext_cursor from the previous page.

Errors: 400, 401, 429

Request
curl "https://cavenue.co/api/v1/interviews" \
  -H "Authorization: Bearer $CAVENUE_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "interview",
      "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
      "application_id": "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b",
      "round": 1,
      "type": "technical",
      "mode": "voice",
      "language": "de",
      "status": "completed",
      "invited_at": "2026-11-23T09:16:30.871Z",
      "expires_at": "2026-11-30T09:16:30.871Z",
      "started_at": "2026-11-23T18:02:11.000Z",
      "completed_at": "2026-11-23T18:21:47.000Z",
      "minutes_used": 19.6,
      "score": 78,
      "recommendation": "yes",
      "report_status": "ready",
      "report": {
        "status": "ok",
        "score": 78,
        "recommendation": "yes",
        "summary": "Clear, specific answers on service design and incident handling…",
        "strengths": [
          "Explains trade-offs with real examples"
        ],
        "concerns": [
          "Little hands-on Kubernetes"
        ],
        "competencies": [
          {
            "key": "role_knowledge",
            "label": "Role knowledge",
            "weight": 0.3,
            "score": 4,
            "rationale": "…"
          }
        ],
        "required_questions": [
          {
            "text": "Tell us about an outage you led.",
            "asked": true,
            "answered": true
          }
        ],
        "red_flags": [],
        "language": "en",
        "interview_language": "de",
        "generated_at": "2026-11-23T18:22:30.000Z"
      },
      "report_url": "https://cavenue.co/app/candidates/8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
      "created_at": "2026-11-23T09:16:30.871Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Get an interview, its score and report

GET/api/v1/interviews/{interview_id}

Parameters

NameInDescription
interview_id*pathstringThe interview's id.

Errors: 401, 404, 429

Request
curl "https://cavenue.co/api/v1/interviews/<interview_id>" \
  -H "Authorization: Bearer $CAVENUE_API_KEY"
Response
{
  "object": "interview",
  "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
  "application_id": "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b",
  "round": 1,
  "type": "technical",
  "mode": "voice",
  "language": "de",
  "status": "completed",
  "invited_at": "2026-11-23T09:16:30.871Z",
  "expires_at": "2026-11-30T09:16:30.871Z",
  "started_at": "2026-11-23T18:02:11.000Z",
  "completed_at": "2026-11-23T18:21:47.000Z",
  "minutes_used": 19.6,
  "score": 78,
  "recommendation": "yes",
  "report_status": "ready",
  "report": {
    "status": "ok",
    "score": 78,
    "recommendation": "yes",
    "summary": "Clear, specific answers on service design and incident handling…",
    "strengths": [
      "Explains trade-offs with real examples"
    ],
    "concerns": [
      "Little hands-on Kubernetes"
    ],
    "competencies": [
      {
        "key": "role_knowledge",
        "label": "Role knowledge",
        "weight": 0.3,
        "score": 4,
        "rationale": "…"
      }
    ],
    "required_questions": [
      {
        "text": "Tell us about an outage you led.",
        "asked": true,
        "answered": true
      }
    ],
    "red_flags": [],
    "language": "en",
    "interview_language": "de",
    "generated_at": "2026-11-23T18:22:30.000Z"
  },
  "report_url": "https://cavenue.co/app/candidates/8a9b0c1d-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
  "created_at": "2026-11-23T09:16:30.871Z"
}

Webhooks

Add an endpoint in Settings → API → Webhooks: an https:// address on the public internet and the events it wants. Cavenue then POSTs each event to it as JSON. Events carry ids and states only, never a candidate's name, email or answers: fetch what you need with your key.

POST https://your-system.example.com/webhooks/cavenue
{
  "id": "evt_6a1f0b2c3d4e5f60718293a4b5c6d7e8",
  "type": "interview.evaluated",
  "created_at": "2026-11-23T18:22:31.204Z",
  "data": {
    "interview_id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
    "application_id": "b7e0d6c1-2f3a-4e8b-9c1d-5a6f7e8d9c0b",
    "round": 1,
    "mode": "voice",
    "status": "completed",
    "score": 78,
    "recommendation": "yes"
  }
}
Eventdata
application.createdapplication_id, job_id, candidate_id, stage, status, source
application.stage_changedapplication_id, job_id, candidate_id, stage, previous_stage, status
application.rejectedapplication_id, job_id, candidate_id, stage, status, reason
application.hiredapplication_id, job_id, candidate_id, stage, status
application.reopenedapplication_id, job_id, candidate_id, stage, status, previous_status
interview.invitedinterview_id, application_id, round, mode, status, expires_at
interview.startedinterview_id, application_id, round, mode, status
interview.completedinterview_id, application_id, round, mode, status
interview.expiredinterview_id, application_id, round, mode, status
interview.evaluatedinterview_id, application_id, round, mode, status, score, recommendation
job.createdjob_id, status, is_public
job.updatedjob_id, status, previous_status, is_public
job.deletedjob_id (its applications and interviews are gone too)
candidate.deletedcandidate_id (delete your copy too)

Verify the signature

Every delivery has a Cavenue-Signature header: t=<unix seconds>,v1=<hex>, where v1 is the HMAC-SHA256 of {t}.{raw body} keyed with your endpoint's whsec_ secret. Compute it over the raw body you received, compare in constant time, and refuse a t more than 5 minutes away from your clock. Also sent: Cavenue-Event-Id, Cavenue-Event-Type, Cavenue-Delivery-Id and Cavenue-Delivery-Attempt.

Node.js (Express)
import crypto from "node:crypto";
import express from "express";

const app = express();
const secret = process.env.CAVENUE_WEBHOOK_SECRET; // whsec_… from Settings → API

// Read the raw body: the signature covers the exact bytes Cavenue sent.
app.post("/webhooks/cavenue", express.raw({ type: "application/json" }), (req, res) => {
  const header = req.get("Cavenue-Signature") ?? "";
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const t = Number(parts.t);
  const expected = crypto.createHmac("sha256", secret).update(`${t}.${req.body}`).digest("hex");
  const given = Buffer.from(parts.v1 ?? "", "hex");
  const fresh = Math.abs(Date.now() / 1000 - t) < 300;
  if (!fresh || given.length !== 32 || !crypto.timingSafeEqual(given, Buffer.from(expected, "hex"))) {
    return res.status(400).send("bad signature");
  }
  const event = JSON.parse(req.body.toString("utf8"));
  // Answer fast; do the work in the background. event.id repeats on retries: skip ones you've seen.
  res.sendStatus(200);
  handle(event);
});
Python (Flask)
import hashlib, hmac, json, os, time
from flask import Flask, request, abort

app = Flask(__name__)
SECRET = os.environ["CAVENUE_WEBHOOK_SECRET"].encode()  # whsec_… from Settings → API

@app.post("/webhooks/cavenue")
def cavenue_webhook():
    body = request.get_data()  # the raw bytes, before any JSON parsing
    parts = dict(p.split("=", 1) for p in request.headers.get("Cavenue-Signature", "").split(",") if "=" in p)
    t = int(parts.get("t", "0"))
    expected = hmac.new(SECRET, f"{t}.".encode() + body, hashlib.sha256).hexdigest()
    if abs(time.time() - t) > 300 or not hmac.compare_digest(expected, parts.get("v1", "")):
        abort(400)
    event = json.loads(body)
    # event["id"] repeats on retries: skip ones you've already handled.
    handle(event)
    return "", 200
curl: replay a signed event to your handler
# Send yourself a signed test event from Settings → API → Send test event,
# or replay one locally to test your handler (t must be within 5 minutes):
BODY='{"id":"evt_test","type":"webhook.test","created_at":"2026-11-23T10:00:00.000Z","data":{}}'
T=$(date +%s)
SIG=$(printf '%s.%s' "$T" "$BODY" | openssl dgst -sha256 -hmac "$CAVENUE_WEBHOOK_SECRET" -hex | sed 's/^.* //')
curl http://localhost:3000/webhooks/cavenue \
  -H "Content-Type: application/json" \
  -H "Cavenue-Signature: t=$T,v1=$SIG" \
  -d "$BODY"

Retries and order

Answer with any 2xx within 10 seconds; do slow work after answering. Anything else (another status, a timeout, a redirect) is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 1 day: 8 attempts in all, then the delivery is marked failed. Settings → API shows each endpoint's recent deliveries and can send a test event. Events can arrive more than once and out of order: use id to skip duplicates and created_at (or a fresh GET) to order them. Rotating the secret in Settings takes effect at once.