compare-internal

Resolve Candidates For Compare

Resolve candidate emails → candidate_ids for the compare page.

READ-ONLY on purpose — unknown emails are silently skipped, never created (unlike candidates.py /resolve, whose find_or_create semantics would mint phantom candidate rows from typo'd emails here). Falls back to the email on the candidate's interviews when no candidates row exists. Org comes from the token — this replaces a Next.js route that trusted a spoofable X-Organization-ID header (API proxy sweep).

post/api/compare/resolve

Request

  • Base URL: https://api.thebetterhire.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.thebetterhire.ai/api/compare/resolve
  • Auth: HTTP bearer

Request body

emailsstring[] required

Candidate emails to resolve to candidate_ids (min 2).

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.