curl -X POST "https://backend.jobhive.ai/v1/interviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"candidate_email": "john.doe@example.com",
"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"
}'
const interview = await jobhive.interviews.create({
candidate_email: "john.doe@example.com",
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"
});
console.log(`Interview created: ${interview.id}`);
interview = client.interviews.create(
candidate_email="john.doe@example.com",
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"
)
print(f"Interview created: {interview.id}")
{
"success": true,
"data": {
"id": "int_abc123def456",
"status": "scheduled",
"candidate_email": "john.doe@example.com",
"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"
}
}
Core Resources
Create Interview
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.
