{"openapi":"3.1.0","info":{"title":"Resurface API","version":"1.0.0","description":"Score resumes against jobs with evidence. Powered by TypeSafe Jev."},"servers":[{"url":"https://getresurface.dev/api/v1"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"rs_live_… API key"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"paths":{"/score":{"post":{"summary":"Score one resume against a job","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Unique value per resume. A repeat within 24 hours returns the original result instead of scoring and charging again."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"resume":{"type":"string","format":"binary"},"resume_text":{"type":"string"},"job_description":{"type":"string"},"job_title":{"type":"string"},"rubric_id":{"type":"string"},"questions":{"type":"string","description":"JSON array"}}}},"application/json":{"schema":{"type":"object","properties":{"resume_text":{"type":"string"},"job_description":{"type":"string"},"job_title":{"type":"string"},"rubric_id":{"type":"string"},"questions":{"type":"array","items":{}}}}}}},"responses":{"200":{"description":"Score with per-question verdicts and evidence"},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid key"},"402":{"description":"No free or prepaid scores left"},"404":{"description":"Unknown rubric_id"},"409":{"description":"Idempotency-Key still in use by a running request"},"413":{"description":"File larger than 5 MB"},"415":{"description":"Unsupported file type (e.g. legacy .doc)"},"429":{"description":"Rate limited"},"502":{"description":"Upstream model unavailable; not billed, safe to retry"},"504":{"description":"Scoring timed out; not billed, safe to retry"}}}},"/rubrics":{"post":{"summary":"Draft screening questions from a job description","responses":{"200":{"description":"Cached rubric"},"201":{"description":"Rubric"}}}},"/rubrics/{id}":{"get":{"summary":"Get a rubric","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Rubric"}}}},"/usage":{"get":{"summary":"Usage and billing status","responses":{"200":{"description":"Usage"}}}}}}