Endpoint
This endpoint is rate-limited to 5 requests per IP address and 5 globally to prevent abuse.
Request Body
The complete resume text content to analyze. This will be used to generate personalized interview questions based on the candidate’s experience and skills.
Number of interview questions to generate. Must be between 3 and 20 questions.
- Minimum: 3
- Maximum: 20
- Recommended: 8-12 for a comprehensive interview
The unique identifier of the resume in the database. Used to associate the interview session with a specific resume for tracking and history purposes.
Whether to force creation of a new session even if an unfinished session exists for this resume.
false(default): Returns existing unfinished session if one existstrue: Creates a new session regardless of existing unfinished sessions
Response
Response status code.
200 indicates success.Response message. Returns
"success" on successful creation.The interview session data containing all session details and questions.
Example Request
Example Response
Session Lifecycle
Create Session
Call this endpoint to create a new interview session. The AI analyzes the resume and generates personalized questions.
Answer Questions
Use the Submit Answer endpoint to answer each question sequentially. The system may generate follow-up questions based on your answers.
Complete Interview
After answering all questions, the session status changes to
COMPLETED. You can also manually complete early using the complete endpoint.Generate Report
Use the Get Report endpoint to retrieve AI-generated evaluation, scores, and improvement suggestions.
Export or Delete
Optionally export the report as PDF or delete the session.
Related Endpoints
Get Unfinished Session
Check for existing unfinished sessions before creating a new one
Submit Answer
Submit answers to interview questions
Get Session
Retrieve complete session details
Complete Interview
Manually complete interview early
Additional Operations
Get Unfinished Session
Before creating a new session, you can check if the user has any unfinished sessions for a specific resume.The resume ID to check for unfinished sessions.
InterviewSessionDTO structure if an unfinished session exists.
Get Session
Retrieve complete details of an existing interview session.The unique session identifier.
Complete Interview
Manually complete an interview session before answering all questions.The session ID to complete.
Error Responses
Error code. Non-200 values indicate an error.
Error message describing what went wrong.
Always
null for error responses.Common Errors
| Code | Message | Description |
|---|---|---|
| 400 | 简历文本不能为空 | Resume text is required |
| 400 | 题目数量最少3题 | Question count must be at least 3 |
| 400 | 题目数量最多20题 | Question count cannot exceed 20 |
| 400 | 简历ID不能为空 | Resume ID is required |
| 429 | Rate limit exceeded | Too many requests, try again later |
| 500 | Server error | Internal server error occurred |
Best Practices
Check for Unfinished Sessions
Check for Unfinished Sessions
Always check if an unfinished session exists before creating a new one to avoid duplicate sessions and maintain continuity.
Question Count Selection
Question Count Selection
Choose question count based on interview depth:
- Quick screening (3-5 questions): Basic skill assessment
- Standard interview (8-12 questions): Comprehensive evaluation
- In-depth interview (15-20 questions): Senior positions with complex requirements
Resume Text Quality
Resume Text Quality
Provide detailed resume text for better question generation:
- Include project descriptions with technical details
- List specific technologies and frameworks used
- Mention scale and complexity of projects
- Add years of experience for context
Session State Management
Session State Management
Store the
sessionId securely and persist it across page refreshes. The session remains active until completed or deleted.Interview sessions are stored in the database and associated with the resume ID. You can retrieve session history and details later for analysis.
