Endpoint
This endpoint is rate-limited to 10 requests globally to ensure fair usage and prevent abuse.
Path Parameters
The unique session identifier obtained from the create session endpoint.
Request Body
The zero-based index of the question being answered. Must match the current question index in the session to prevent out-of-order submissions.
The user’s answer to the interview question. Cannot be empty.
Response
Response status code.
200 indicates success.Response message. Returns
"success" on successful submission.Contains information about the next question or completion status.
Example Request
Example Response (Has Next Question)
Example Response (Interview Completed)
Related Endpoints
Save Answer
Save answer without advancing to next question
Get Current Question
Retrieve the current question without submitting
Generate Report
Get AI evaluation after completing interview
Complete Early
Finish interview before answering all questions
Additional Operations
Save Answer Without Advancing
Save the user’s answer without advancing to the next question. Useful for auto-save functionality or allowing users to edit their answer.The unique session identifier.
The zero-based index of the question being answered.
The user’s answer to save.
Get Current Question
Retrieve the current question without submitting an answer. Useful for recovering session state or displaying the current question.The unique session identifier.
Interview Flow
Submit First Answer
Submit the answer to question 0 using POST endpoint. Store the
nextQuestion returned in the response.Continue Until Complete
Repeat submission for each question. The system tracks progress automatically using
currentIndex.Handle Follow-up Questions
The AI may generate follow-up questions (marked with
isFollowUp: true) based on your answers for deeper exploration.Check Completion
When
hasNextQuestion returns false, the interview is complete. Proceed to generate the evaluation report.Generate Report
Call the Get Report endpoint to retrieve detailed evaluation, scores, and feedback.
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 | 会话ID不能为空 | Session ID is required |
| 400 | 问题索引不能为空 | Question index is required |
| 400 | 问题索引无效 | Question index must be >= 0 |
| 400 | 答案不能为空 | Answer cannot be empty |
| 404 | Session not found | Invalid session ID |
| 400 | Question index mismatch | Submitted wrong question index |
| 429 | Rate limit exceeded | Too many requests |
| 500 | Server error | Internal server error |
Best Practices
Auto-save Answers
Auto-save Answers
Implement auto-save functionality using the PUT endpoint to prevent data loss:
Track Progress
Track Progress
Display progress to users using
currentIndex and totalQuestions:Handle Follow-up Questions
Handle Follow-up Questions
Follow-up questions provide deeper insight. Display them with context:
Validate Question Index
Validate Question Index
Always verify you’re submitting the correct question index:
Session Recovery
Session Recovery
Allow users to resume interrupted sessions:
Answer Quality Tips
For better evaluation results, encourage candidates to:
- Provide specific examples and scenarios
- Mention concrete technologies and tools used
- Explain the reasoning behind technical decisions
- Include quantitative metrics where applicable
- Describe challenges faced and solutions implemented
