/api/parse-resume endpoint.
Endpoint
Request
Raw resume text to parse. This is typically the
text field returned from the /api/parse-resume endpoint.Response
The response is a structured resume object with the following fields:Personal information and contact details
Full name
Job title or professional headline
City and state/country
Phone number
Email address
Personal website URL
LinkedIn profile URL
GitHub profile URL
Professional summary or objective statement
Categorized list of skills
Programming languages
Frameworks, libraries, and development tools
Specific libraries and packages
Soft skills and interpersonal abilities
Work experience entries
Company name
Job title
Job location
Start date
End date or “Present”
Whether this is the current position
Bullet points describing responsibilities and achievements
Technologies used in this role
Project entries
Project name
Role in the project
Start date
End date
Project URL or repository link
Bullet points describing the project
Technologies used in the project
Education entries
Institution name
Degree type (e.g., “Bachelor of Science”)
Major or field of study
Institution location
GPA or grade
Start date
End date or expected graduation
Extracurricular activities, awards, and achievements
Example
Response
Error responses
500 Internal Server Error
Returned when AI extraction fails or returns invalid data:Implementation
The endpoint uses OpenAI’s chat completion API via OpenRouter with:- Model configured via
OPENROUTER_MODEL_NAMEenvironment variable - Temperature set to 0 for consistent extraction
- JSON response format enforced
- System prompt instructing the model to output only valid JSON
/app/api/extract-info/route.ts:84-98