API Documentation
Question API 2 - Personalized Questions
This API generates personalized interview questions based on a candidate's resume and the previously created round.
POST
https://apis.whitetable.ai/questions/interview
Authentication
Authentication token that must be included in the request headers for authentication purposes. The client must securely store and manage this token, which is required to access protected API endpoints. The token should be sent in the following format:
token: <your-token-here>
Security Requirements:
The client is responsible for securely storing the token, using secure mechanisms (e.g., encrypted storage)
Do not hardcode or expose the token in client-side code or publicly accessible files
The server will return a 401 Unauthorized error if
The token is missing, expired, or invalid
The token does not meet the required policy for the requested resource
Body
noq
int
Required
Number of questions to be generated (max 20 per request)
resume
string
Required
URL to the candidate’s resume file (PDF, DOC, DOCX, or TXT formats)
round_id
string
Required
The unique identifier for the interview round (from the Question API 1)
nosq
int
Required
Number of questions from round or standard question set (from Question API 1) to make the interview consistent for candidates qualifying to same interview round. (Less than or equal to noq)
{}"noq": "{NUMBER_OF_QUESTIONS}","resume": "{RESUME_URL}","round_id": "{ROUND_ID}","nosq": "{NUMBER_OF_QUESTIONS_FROM_INTERVIEW_ROUND}"
Sample Request
cURL
Copy
curl -X POST https://apis.whitetable.ai/questions/interview-H 'token: {AUTH_TOKEN}'-H 'Content-Type: application/json'-d {"noq":"{NUMBER_OF_QUESTIONS}","resume":"{RESUME_URL}","round_id":"{ROUND_ID}","nosq":"{NUMBER_OF_QUESTIONS_FROM_INTERVIEW_ROUND}"}
Sample Response
CONTENT TYPEapplication/json
Copy
[]"Tell me a little bit about yourself and your journey as a Frontend Developer.","Looking back at your experience with Cogoport, what accomplishment are you most proud of and why?","This role requires a strong understanding of VueJS or React. Can you describe your experience with these frameworks and elaborate on any specific projects where you leveraged their strengths?","Can you walk me through your process of building a reusable component in React, considering aspects like state management, props, and testing?","Our application heavily relies on efficient DOM manipulation. How would you optimize a component for performance if you notice slow rendering or interactions?","Describe your experience with CSS preprocessors like SASS or LESS and how they benefit large-scale frontend development.","How do you stay updated with the latest trends and advancements in frontend technologies?","Explain your approach to writing unit tests for your frontend code. What tools or frameworks do you prefer, and how do you ensure adequate test coverage?","Security is paramount in our applications. How would you handle sensitive user data within a frontend application to prevent vulnerabilities like XSS attacks?"