Creates a new interview session for a candidate. This endpoint schedules an AI-powered interview with customizable parameters including skills assessment, duration, and difficulty level.
Request Body
Email address of the candidate to be interviewed
Job position or role title for the interview
Array of skills to assess during the interview
Programming languages: “JavaScript”, “Python”, “Java”
Frameworks: “React”, “Django”, “Spring Boot”
Concepts: “Data Structures”, “System Design”, “Machine Learning”
Interview duration in minutes (15-90 minutes)
difficulty
string
default: "intermediate"
Interview difficulty level
junior: Entry-level questions
intermediate: Mid-level complexity
senior: Advanced technical depth
expert: Architect-level challenges
Company name to personalize the interview experience
Custom instructions or focus areas for the AI interviewer
Whether to automatically send interview invitation to candidate
ISO 8601 timestamp to schedule interview for future date/time
Enable test mode to avoid consuming production credits
Response
Unique interview identifier
Current interview status: scheduled, in_progress, completed, cancelled
Email address of the candidate
Job position for the interview
Direct URL for candidate to join the interview
ISO 8601 timestamp when interview is scheduled
Estimated interview duration in minutes
Array of skills to be assessed
ISO 8601 timestamp when interview was created
Examples
curl -X POST "https://backend.jobhive.ai/v1/interviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"candidate_email": "[email protected] ",
"position": "Full Stack Developer",
"skills": ["JavaScript", "React", "Node.js", "PostgreSQL"],
"duration_minutes": 45,
"difficulty": "intermediate",
"company_name": "TechCorp Inc",
"instructions": "Focus on React hooks and database design patterns"
}'
{
"success" : true ,
"data" : {
"id" : "int_abc123def456" ,
"status" : "scheduled" ,
"candidate_email" : "[email protected] " ,
"position" : "Full Stack Developer" ,
"interview_url" : "https://app.jobhive.ai/interview/int_abc123def456" ,
"scheduled_at" : "2024-01-15T15:30:00Z" ,
"estimated_duration" : 45 ,
"skills" : [ "JavaScript" , "React" , "Node.js" , "PostgreSQL" ],
"difficulty" : "intermediate" ,
"company_name" : "TechCorp Inc" ,
"created_at" : "2024-01-15T14:30:00Z"
},
"meta" : {
"timestamp" : "2024-01-15T14:30:00Z" ,
"request_id" : "req_create_int_001"
}
}
Error Responses
Validation Error
Rate Limit Error
{
"success" : false ,
"error" : {
"code" : "VALIDATION_ERROR" ,
"message" : "Invalid request parameters" ,
"details" : {
"candidate_email" : "Invalid email format" ,
"duration_minutes" : "Must be between 15 and 90 minutes"
}
}
}