API reference
Use the Hiyah API to invite candidates from your ATS, pull results into your systems and move people between stages. API keys are created by admins under Integrations (Growth plan and above).
Authentication
curl https://hiyah.ai/api/v1/interviews \ -H "Authorization: Bearer t1_live_..."
Rate limit: 120 requests per minute per key. Errors return {"error":{"message","status"}}.
Endpoints
GET/api/v1/interviewsList interviews with counts and public apply links.
GET/api/v1/interviews/{id}One interview with its questions.
POST/api/v1/interviews/{id}/candidatesInvite a candidate ({"name","email","phone"}) or many ({"candidates":[...]}, up to 500). Returns each personal interview link.
GET/api/v1/candidatesList candidates. Filters: interview_id, status (invited, started, completed), stage, email. Paginate with limit and cursor.
GET/api/v1/candidates/{id}Full candidate with answers, signed media URLs (valid 6 hours), transcripts, ratings and the AI summary.
PATCH/api/v1/candidates/{id}Move a candidate: {"stage": "shortlisted" | "reviewing" | "rejected" | "hired" | "new"}.
Webhooks
Events: candidate.invited, candidate.started, candidate.completed, candidate.stage_changed, candidate.rated, candidate.ai_ready, interview.created. Each request carries X-Hiyah-Event, X-Hiyah-Timestamp and X-Hiyah-Signature: v1=<hex>, an HMAC SHA-256 of timestamp + "." + body using your webhook secret.
// Node.js
const expected = crypto.createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest("hex");
const ok = signature === `v1=${expected}` && Math.abs(Date.now()/1000 - ts) < 300;