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
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.
Call the API with it. GET /me answers with the key and your company:
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.
The body didn't pass validation; details names each field.
429
rate_limited
Wait Retry-After seconds.
500
internal_error
Our 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.
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.
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}'
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)
Field
Description
job_id*
stringThe job's id.
candidate*
object
candidate.full_name*
stringUp to 160 characters.
candidate.email*
stringUp to 254 characters.
candidate.phone
stringUp to 40 characters.
candidate.location
stringUp 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.
source
stringWhere the candidate came from, such as your ATS's name. Defaults to api.
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"}'
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.
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
job_id (its applications and interviews are gone too)
candidate.deleted
candidate_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.