{"openapi":"3.1.0","info":{"title":"quilzy.com API","version":"1","description":"Screen candidates on WhatsApp from your ATS or any other system.\n\n- **Auth:** an API key as `Authorization: Bearer hk_live_...`, or as the Basic auth username with a blank password. A key in the query string is refused.\n- **Errors:** `{ \"error\": { \"code\", \"message\", \"fields\"?, \"request_id\" } }`. `fields` maps a field path to what is wrong with it.\n- **Lists:** `{ data, next_cursor, has_more }`, newest first. `limit` is 1-100 (default 25); `cursor` is the previous page's `next_cursor`.\n- **Idempotency:** POST and PUT take an `Idempotency-Key` header (1-200 characters). A repeat within 24 hours gets the first 2xx answer again, with `Idempotent-Replayed: true`; after any other answer the key is free to retry.\n- **Rate limits:** 120 requests a minute per key, and 600 failed requests a minute per IP, then 429 with `Retry-After` in seconds.\n- **Webhooks:** each event is a POST of `{ id, type, created_at, data }` (see `webhooks`). `X-Hiring-Signature: t=<unix seconds>,v1=<hex>` is the HMAC-SHA256 of `<t>.<raw body>`, keyed with the endpoint's whole secret (`whsec_...`). Reject a `t` more than 5 minutes from now. A 2xx within 10 seconds is a success; redirects are not followed. Failures are retried after 1 min, 5 min, 30 min, 2 h, 6 h and 12 h, then marked failed. After 20 failed attempts in a row the endpoint is turned off and the workspace owner gets an email."},"externalDocs":{"url":"https://quilzy.com/developers/"},"servers":[{"url":"https://quilzy.com/api/v3/hiring/v1"}],"security":[{"bearerAuth":[]},{"basicAuth":[]}],"paths":{"/openapi.json":{"get":{"operationId":"getOpenApi","summary":"This document","description":"No key needed.","tags":["openapi"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/me":{"get":{"operationId":"getMe","summary":"The key's workspace, scopes and plan","description":"Scope: `any`.","tags":["me"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/clients":{"get":{"operationId":"listClients","summary":"The agency's clients (a company has one, its own)","description":"Scope: `jobs`.","tags":["clients"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Client"}},"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"400":{"description":"`invalid_input`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/jobs":{"get":{"operationId":"listJobs","summary":"List jobs (without description or qr_svg)","description":"Scope: `jobs`.","tags":["jobs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","open","paused","closed"]}},{"name":"client_id","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Job"}},"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"400":{"description":"`invalid_input`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createJob","summary":"Create a draft job","description":"Scope: `jobs`. title and location 1-120 characters, description up to 20,000, openings 1-1000 (default 1), up to 5 questions; a choice question takes 2-10 options. client_id is required in an agency.","tags":["jobs"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"location":{"type":"string"},"work_mode":{"type":"string","enum":["office","hybrid","remote"]},"job_type":{"type":"string","enum":["full_time","part_time","intern"]},"client_id":{"type":"string"},"openings":{"type":"number"},"experience":{"type":"object","properties":{"min_years":{"anyOf":[{"type":"number"},{"type":"null"}]},"max_years":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false},"ctc_budget":{"type":"object","properties":{"min":{"anyOf":[{"type":"number"},{"type":"null"}]},"max":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false},"max_notice_days":{"anyOf":[{"type":"number"},{"type":"null"}]},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"kind":{"type":"string","enum":["text","number","yes_no","choice"]},"options":{"type":"array","items":{"type":"string"}}},"required":["text","kind"],"additionalProperties":false}},"external_id":{"type":"string","minLength":1,"maxLength":200}},"required":["title","location","work_mode"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"`invalid_input`, `bad_request`, `invalid_client`, `invalid_assignee`, `invalid_jd`, `jd_too_long`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`, `external_id_taken`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/jobs/by-external-id/{external_id}":{"put":{"operationId":"upsertJobByExternalId","summary":"Create (201) or update (200) the job with your own job id","description":"Scope: `jobs`. Fields left out stay as they are; status is unchanged.","tags":["jobs"],"parameters":[{"name":"external_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"location":{"type":"string"},"work_mode":{"type":"string","enum":["office","hybrid","remote"]},"job_type":{"type":"string","enum":["full_time","part_time","intern"]},"client_id":{"type":"string"},"openings":{"type":"number"},"experience":{"type":"object","properties":{"min_years":{"anyOf":[{"type":"number"},{"type":"null"}]},"max_years":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false},"ctc_budget":{"type":"object","properties":{"min":{"anyOf":[{"type":"number"},{"type":"null"}]},"max":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false},"max_notice_days":{"anyOf":[{"type":"number"},{"type":"null"}]},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"kind":{"type":"string","enum":["text","number","yes_no","choice"]},"options":{"type":"array","items":{"type":"string"}}},"required":["text","kind"],"additionalProperties":false}}},"required":["title","location","work_mode"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"201":{"description":"Created","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"`invalid_input`, `bad_request`, `invalid_client`, `invalid_assignee`, `invalid_jd`, `jd_too_long`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`, `job_incomplete`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/jobs/{id}":{"get":{"operationId":"getJob","summary":"One job, with its job link","description":"Scope: `jobs`.","tags":["jobs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`job_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/jobs/{id}/status":{"post":{"operationId":"setJobStatus","summary":"Open, pause or close a job","description":"Scope: `jobs`.","tags":["jobs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","paused","closed"]}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"`invalid_input`, `bad_request`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`, `job_limit`, `application_limit`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`job_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`, `job_incomplete`, `invalid_transition`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`, `profile_incomplete`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/screenings/templates":{"get":{"operationId":"listScreeningTemplates","summary":"Open jobs as screening templates","description":"Scope: `screenings`.","tags":["screenings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Template"}},"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"400":{"description":"`invalid_input`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/screenings":{"post":{"operationId":"createScreening","summary":"A screening link for one candidate and one job","description":"Scope: `screenings`. We send the candidate nothing; send whatsapp_url yourself. external_ref: 1-5 keys of 1-64 letters, digits, _ or -, values 1-200 characters. callback_url needs the webhooks scope. At most 20,000 untapped links a workspace.","tags":["screenings"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"job_id":{"type":"string"},"external_ref":{"type":"object","properties":{"candidate_id":{"type":"string","minLength":1,"maxLength":200}},"required":["candidate_id"],"additionalProperties":{"type":"string","minLength":1,"maxLength":200}},"callback_url":{"type":"string","maxLength":2000}},"required":["job_id","external_ref"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedScreening"}}}},"400":{"description":"`invalid_input`, `bad_request`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`job_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`, `job_not_open`, `already_screening`, `whatsapp_not_connected`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`, `webhook_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`, `too_many_open_screenings`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listScreenings","summary":"List screenings","description":"Scope: `screenings`.","tags":["screenings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["invited","in_progress","completed","abandoned","cancelled","merged"]}},{"name":"job_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["candidate_link","job_link","app"]}},{"name":"updated_since","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Screening"}},"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"400":{"description":"`invalid_input`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/screenings/{id}":{"get":{"operationId":"getScreening","summary":"One screening","description":"Scope: `screenings`.","tags":["screenings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Screening"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`screening_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateScreening","summary":"Attach your external_ref to a screening that has none (set once)","description":"Scope: `screenings`.","tags":["screenings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"external_ref":{"type":"object","properties":{"candidate_id":{"type":"string","minLength":1,"maxLength":200}},"required":["candidate_id"],"additionalProperties":{"type":"string","minLength":1,"maxLength":200}}},"required":["external_ref"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Screening"}}}},"400":{"description":"`invalid_input`, `bad_request`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`screening_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`external_ref_set`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/screenings/{id}/cancel":{"post":{"operationId":"cancelScreening","summary":"Stop a screening; after the tap the application moves to withdrawn and its upcoming interviews are cancelled","description":"Scope: `screenings`.","tags":["screenings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"OK","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Screening"}}}},"400":{"description":"`invalid_input`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`screening_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`, `screening_merged`, `stage_locked`, `stage_changed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks":{"get":{"operationId":"listWebhooks","summary":"List webhook endpoints","description":"Scope: `webhooks`.","tags":["webhooks"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}},"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]}}}},"400":{"description":"`invalid_input`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createWebhook","summary":"Add a webhook endpoint; the answer holds its secret once","description":"Scope: `webhooks`. The answer is never stored for an Idempotency-Key: a repeat of the key answers 409 idempotency_key_in_use.","tags":["webhooks"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2000},"events":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"string","enum":["screening.started","screening.completed","screening.abandoned","application.stage_changed","interview.scheduled","interview.updated"]}}},"required":["url","events"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedWebhookEndpoint"}}}},"400":{"description":"`invalid_input`, `bad_request`, `invalid_url`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`, `endpoint_limit`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`webhooks_not_configured`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{id}":{"delete":{"operationId":"deleteWebhook","summary":"Remove a webhook endpoint","description":"Scope: `webhooks`.","tags":["webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedWebhookEndpoint"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`endpoint_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{id}/test":{"post":{"operationId":"testWebhook","summary":"Send a ping event now","description":"Scope: `webhooks`.","tags":["webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"OK","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"description":"`invalid_input`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`endpoint_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/candidates/{id}":{"get":{"operationId":"getCandidate","summary":"What the candidate gave us on WhatsApp","description":"Scope: `candidates`.","tags":["candidates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Candidate"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`, `candidate_locked`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`candidate_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/candidates/{id}/ask":{"post":{"operationId":"askCandidate","summary":"A question about the resume (30 a minute per workspace)","description":"Scope: `candidates`.","tags":["candidates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"application_id":{"type":"string"}},"required":["question"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}}}},"400":{"description":"`invalid_input`, `bad_request`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`, `candidate_locked`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`candidate_not_found`, `application_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`ai_unavailable`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/applications/{id}/stage":{"post":{"operationId":"moveApplicationStage","summary":"Move our stage","description":"Scope: `screenings`. reason (up to 500 characters) is required for rejected; note up to 500.","tags":["applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stage":{"type":"string","enum":["applied","screening","screened","shortlisted","submitted","interviewing","offered","joined","rejected","dropped","withdrawn"]},"reason":{"type":"string"},"note":{"type":"string"},"send_notice":{"type":"boolean"},"cancel_interviews":{"type":"boolean"}},"required":["stage"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageMove"}}}},"400":{"description":"`invalid_input`, `bad_request`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`application_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`, `same_stage`, `stage_locked`, `bot_stage`, `stage_changed`, `offer_required`, `has_interview`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/applications/{id}/messages":{"post":{"operationId":"sendApplicationMessage","summary":"A follow-up WhatsApp text, within 24 hours of the candidate's last message","description":"Scope: `screenings`.","tags":["applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["text"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"`invalid_input`, `bad_request`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`, `message_limit`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`application_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`, `outside_window`, `chat_locked`, `opted_out`, `not_opted_in`, `no_recipient`, `no_connection`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`, `money_request`, `abusive_text`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"`send_failed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/interviews":{"post":{"operationId":"scheduleInterview","summary":"Schedule an interview","description":"Scope: `screenings`. scheduled_at at most 180 days ahead; duration_min 5-480; timezone is an IANA name; in_person needs location, video needs an https link.","tags":["interviews"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"application_id":{"type":"string"},"scheduled_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"duration_min":{"type":"integer"},"timezone":{"type":"string"},"mode":{"type":"string","enum":["in_person","video","phone"]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"link":{"anyOf":[{"type":"string"},{"type":"null"}]},"interviewer_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["application_id","scheduled_at","duration_min","timezone","mode"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Interview"}}}},"400":{"description":"`invalid_input`, `bad_request`, `in_past`, `invalid_interviewer`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`invalid_key`, `key_owner_removed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`plan_required`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`missing_scope`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"`application_not_found`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`idempotency_key_in_use`, `application_closed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`idempotency_key_reused`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"`internal_error`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{"screening.started":{"post":{"summary":"The candidate tapped the link (or applied another way)","parameters":[{"name":"X-Hiring-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">, keyed with the endpoint's whole secret (whsec_ included)."},{"name":"X-Hiring-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The body's id; drop a repeat by it."},{"name":"X-Hiring-Event-Type","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"evt_..., the same as X-Hiring-Event-Id."},"type":{"const":"screening.started"},"created_at":{"type":"string","format":"date-time"},"data":{"$ref":"#/components/schemas/Screening"}},"required":["id","type","created_at","data"]}}}},"responses":{"2XX":{"description":"Received. Anything else, or no answer within 10 seconds, is retried."}}}},"screening.completed":{"post":{"summary":"The bot finished and the score is saved","parameters":[{"name":"X-Hiring-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">, keyed with the endpoint's whole secret (whsec_ included)."},{"name":"X-Hiring-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The body's id; drop a repeat by it."},{"name":"X-Hiring-Event-Type","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"evt_..., the same as X-Hiring-Event-Id."},"type":{"const":"screening.completed"},"created_at":{"type":"string","format":"date-time"},"data":{"$ref":"#/components/schemas/Screening"}},"required":["id","type","created_at","data"]}}}},"responses":{"2XX":{"description":"Received. Anything else, or no answer within 10 seconds, is retried."}}}},"screening.abandoned":{"post":{"summary":"No answer for 24 hours, after the bot's two nudges","parameters":[{"name":"X-Hiring-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">, keyed with the endpoint's whole secret (whsec_ included)."},{"name":"X-Hiring-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The body's id; drop a repeat by it."},{"name":"X-Hiring-Event-Type","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"evt_..., the same as X-Hiring-Event-Id."},"type":{"const":"screening.abandoned"},"created_at":{"type":"string","format":"date-time"},"data":{"$ref":"#/components/schemas/Screening"}},"required":["id","type","created_at","data"]}}}},"responses":{"2XX":{"description":"Received. Anything else, or no answer within 10 seconds, is retried."}}}},"application.stage_changed":{"post":{"summary":"The application moved to another stage","parameters":[{"name":"X-Hiring-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">, keyed with the endpoint's whole secret (whsec_ included)."},{"name":"X-Hiring-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The body's id; drop a repeat by it."},{"name":"X-Hiring-Event-Type","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"evt_..., the same as X-Hiring-Event-Id."},"type":{"const":"application.stage_changed"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["from","to","screening"],"properties":{"from":{"type":"string","enum":["applied","screening","screened","shortlisted","submitted","interviewing","offered","joined","rejected","dropped","withdrawn"]},"to":{"type":"string","enum":["applied","screening","screened","shortlisted","submitted","interviewing","offered","joined","rejected","dropped","withdrawn"]},"screening":{"$ref":"#/components/schemas/Screening"}}}},"required":["id","type","created_at","data"]}}}},"responses":{"2XX":{"description":"Received. Anything else, or no answer within 10 seconds, is retried."}}}},"interview.scheduled":{"post":{"summary":"An interview was scheduled","parameters":[{"name":"X-Hiring-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">, keyed with the endpoint's whole secret (whsec_ included)."},{"name":"X-Hiring-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The body's id; drop a repeat by it."},{"name":"X-Hiring-Event-Type","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"evt_..., the same as X-Hiring-Event-Id."},"type":{"const":"interview.scheduled"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["interview","screening_id","external_ref"],"properties":{"interview":{"$ref":"#/components/schemas/Interview"},"screening_id":{"type":"string"},"external_ref":{"type":["object","null"],"additionalProperties":{"type":"string"}}}}},"required":["id","type","created_at","data"]}}}},"responses":{"2XX":{"description":"Received. Anything else, or no answer within 10 seconds, is retried."}}}},"interview.updated":{"post":{"summary":"An interview was rescheduled, cancelled, attended or missed","parameters":[{"name":"X-Hiring-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">, keyed with the endpoint's whole secret (whsec_ included)."},{"name":"X-Hiring-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The body's id; drop a repeat by it."},{"name":"X-Hiring-Event-Type","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"evt_..., the same as X-Hiring-Event-Id."},"type":{"const":"interview.updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["interview","screening_id","external_ref"],"properties":{"interview":{"$ref":"#/components/schemas/Interview"},"screening_id":{"type":"string"},"external_ref":{"type":["object","null"],"additionalProperties":{"type":"string"}}}}},"required":["id","type","created_at","data"]}}}},"responses":{"2XX":{"description":"Received. Anything else, or no answer within 10 seconds, is retried."}}}},"ping":{"post":{"summary":"A test from POST /webhooks/{id}/test or the Developers page; never subscribed to","parameters":[{"name":"X-Hiring-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">, keyed with the endpoint's whole secret (whsec_ included)."},{"name":"X-Hiring-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The body's id; drop a repeat by it."},{"name":"X-Hiring-Event-Type","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"evt_..., the same as X-Hiring-Event-Id."},"type":{"const":"ping"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["endpoint_id"],"properties":{"endpoint_id":{"type":"string"}}}},"required":["id","type","created_at","data"]}}}},"responses":{"2XX":{"description":"Received. Anything else, or no answer within 10 seconds, is retried."}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"description":"Some refusals carry their own fields beside code: screening_id on already_screening, interviews on has_interview.","properties":{"code":{"type":"string","description":"Stable snake_case code; check this in code."},"message":{"type":"string","description":"For people; can change."},"fields":{"type":"object","additionalProperties":{"type":"string"},"description":"Input errors only: field path to what is wrong with it."},"request_id":{"type":"string"}}}}},"Me":{"type":"object","required":["workspace","key","plan"],"properties":{"workspace":{"type":"object","required":["id","name","kind"],"properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"kind":{"type":"string","enum":["agency","company"]}}},"key":{"type":"object","required":["id","name","scopes"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["jobs","screenings","candidates","webhooks"]}}}},"plan":{"type":"object","required":["tier"],"properties":{"tier":{"type":"string","examples":["hiring-starter","hiring-pro"]}}}}},"Client":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"industry":{"type":["string","null"]},"status":{"type":"string","enum":["active","archived"]},"job_count":{"type":"integer"},"created_at":{"type":["string","null"],"format":"date-time"}},"required":["id","name","industry","status","job_count","created_at"]},"Job":{"type":"object","properties":{"id":{"type":"string"},"external_id":{"type":["string","null"]},"code":{"type":"string"},"title":{"type":"string"},"description":{"type":"string","description":"The JD as markdown. Single-job answers only; lists leave it out."},"location":{"type":"string"},"work_mode":{"type":"string","enum":["office","hybrid","remote"]},"job_type":{"type":"string","enum":["full_time","part_time","intern"]},"status":{"type":"string","enum":["draft","open","paused","closed"]},"client_id":{"type":["string","null"]},"openings":{"type":"integer"},"experience":{"type":"object","properties":{"min_years":{"type":["number","null"]},"max_years":{"type":["number","null"]}},"required":["min_years","max_years"]},"ctc_budget":{"type":"object","properties":{"min":{"type":["number","null"]},"max":{"type":["number","null"]}},"required":["min","max"]},"max_notice_days":{"type":["integer","null"]},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"kind":{"type":"string","enum":["text","number","yes_no","choice"]},"options":{"type":["array","null"],"items":{"type":"string"}}},"required":["id","text","kind","options"]}},"counts":{"type":"object","additionalProperties":{"type":"integer"},"description":"Applications by their current stage."},"whatsapp_url":{"type":["string","null"],"description":"The wa.me apply link with the job code; null while the apply number is not connected."},"job_page_url":{"type":"string"},"qr_svg":{"type":["string","null"],"description":"A QR code of whatsapp_url, as a data:image/svg+xml;base64 URL. Single-job answers only; lists leave it out."},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"},"opened_at":{"type":["string","null"],"format":"date-time"},"closed_at":{"type":["string","null"],"format":"date-time"}},"required":["id","external_id","code","title","location","work_mode","job_type","status","client_id","openings","experience","ctc_budget","max_notice_days","questions","counts","whatsapp_url","job_page_url","created_at","updated_at","opened_at","closed_at"]},"Template":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"]}}},"required":["id","name","questions"]},"Screening":{"type":"object","properties":{"id":{"type":"string","description":"scr_<id>"},"status":{"type":"string","enum":["invited","in_progress","completed","abandoned","cancelled","merged"]},"source":{"type":"string","enum":["candidate_link","job_link","app"]},"merged_into":{"type":["string","null"]},"job_id":{"type":"string"},"job_external_id":{"type":["string","null"]},"external_ref":{"type":["object","null"],"additionalProperties":{"type":"string"}},"application_id":{"type":["string","null"]},"candidate":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["id","name","phone","email"]},{"type":"null"}]},"stage":{"type":["string","null"],"enum":["applied","screening","screened","shortlisted","submitted","interviewing","offered","joined","rejected","dropped","withdrawn",null]},"result":{"anyOf":[{"type":"object","properties":{"score":{"type":["number","null"]},"grade":{"type":["string","null"],"enum":["fail","pass","strong_pass",null]},"summary":{"type":["string","null"],"maxLength":150},"strengths":{"type":"array","items":{"type":"string"}},"flags":{"type":"array","items":{"type":"string"}},"answers":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}},"required":["question","answer"]}},"recommended_action":{"type":["string","null"],"enum":["reject","review","advance",null]},"report_url":{"type":"string"}},"required":["score","grade","summary","strengths","flags","answers","recommended_action","report_url"]},{"type":"null"}]},"locked":{"type":"boolean","description":"Over the plan limit: result and the candidate's name, phone and email are null."},"started_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}},"required":["id","status","source","merged_into","job_id","job_external_id","external_ref","application_id","candidate","stage","result","locked","started_at","completed_at","created_at","updated_at"]},"CreatedScreening":{"allOf":[{"$ref":"#/components/schemas/Screening"},{"type":"object","required":["whatsapp_url"],"properties":{"whatsapp_url":{"type":"string"}}}]},"Candidate":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"location":{"type":["string","null"]},"summary":{"type":["string","null"]},"resume":{"type":"object","properties":{"skills":{"type":"array","items":{"type":"string"}},"experience":{"type":"array","items":{"type":"object","properties":{"company":{"type":["string","null"]},"title":{"type":["string","null"]},"from":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["company","title","from","to"]}},"education":{"type":"array","items":{"type":"object","properties":{"degree":{"type":["string","null"]},"institute":{"type":["string","null"]},"year":{"type":["integer","null"]}},"required":["degree","institute","year"]}}},"required":["skills","experience","education"]},"resume_url":{"type":["string","null"],"description":"A signed download link, valid for 15 minutes."},"applications":{"type":"array","items":{"type":"object","properties":{"application_id":{"type":"string"},"job_id":{"type":"string"},"stage":{"type":"string","enum":["applied","screening","screened","shortlisted","submitted","interviewing","offered","joined","rejected","dropped","withdrawn"]},"screening_id":{"type":["string","null"]}},"required":["application_id","job_id","stage","screening_id"]}}},"required":["id","name","phone","email","location","summary","resume","resume_url","applications"]},"Answer":{"type":"object","properties":{"answer":{"type":"string"},"quotes":{"type":"array","items":{"type":"string"}}},"required":["answer","quotes"]},"StageMove":{"type":"object","required":["application_id","stage","notice_sent","interviews_cancelled"],"properties":{"application_id":{"type":"string"},"stage":{"type":"string","enum":["applied","screening","screened","shortlisted","submitted","interviewing","offered","joined","rejected","dropped","withdrawn"]},"notice_sent":{"type":["boolean","null"]},"interviews_cancelled":{"type":"integer"}}},"Message":{"type":"object","required":["id","status","created_at"],"properties":{"id":{"type":["string","null"],"description":"Our message id."},"status":{"const":"sent"},"created_at":{"type":"string","format":"date-time"}}},"Interview":{"type":"object","properties":{"id":{"type":"string"},"application_id":{"type":"string"},"job_id":{"type":"string"},"scheduled_at":{"type":"string","format":"date-time"},"duration_min":{"type":"integer"},"timezone":{"type":"string"},"mode":{"type":"string","enum":["in_person","video","phone"]},"link":{"type":["string","null"]},"location":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","confirmed","reschedule_requested","attended","no_show","cancelled"]}},"required":["id","application_id","job_id","scheduled_at","duration_min","timezone","mode","link","location","status"]},"WebhookEndpoint":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["screening.started","screening.completed","screening.abandoned","application.stage_changed","interview.scheduled","interview.updated"]}},"status":{"type":"string","enum":["active","disabled"]},"failure_count":{"type":"integer"},"last_delivery":{"anyOf":[{"type":"object","properties":{"at":{"type":["string","null"],"format":"date-time"},"status":{"type":"string","enum":["pending","sending","sent","failed"]},"status_code":{"type":["integer","null"]}},"required":["at","status","status_code"]},{"type":"null"}]},"created_at":{"type":["string","null"],"format":"date-time"}},"required":["id","url","events","status","failure_count","last_delivery","created_at"]},"CreatedWebhookEndpoint":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"type":"object","required":["secret"],"properties":{"secret":{"type":"string","description":"whsec_..., shown this once."}}}]},"DeletedWebhookEndpoint":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"const":true}}},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string"},"event_id":{"type":"string"},"type":{"type":"string"},"status":{"type":"string","enum":["pending","sending","sent","failed"]},"attempt":{"type":"integer"},"last_status_code":{"type":["integer","null"]},"last_error":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"next_attempt_at":{"type":["string","null"],"format":"date-time"}},"required":["id","event_id","type","status","attempt","last_status_code","last_error","created_at","next_attempt_at"]}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Authorization: Bearer hk_live_..."},"basicAuth":{"type":"http","scheme":"basic","description":"The key as the username, a blank password."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":200},"description":"A repeat with the same request within 24 hours gets the first answer again."}},"headers":{"IdempotentReplayed":{"schema":{"const":"true"},"description":"Set when the answer is a replay of an earlier request with this Idempotency-Key."},"RetryAfter":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}}