Generate Interview Questions
curl --request POST \
--url https://api.tidyhire.app/api/public/v1/ai/generate-questions \
--header 'Content-Type: application/json' \
--header 'x-tidyhire-api-key: <api-key>' \
--data '
{
"job_title": "<string>",
"company_name": "<string>",
"job_description": "<string>",
"min_experience": 3,
"max_experience": 5,
"skills_required": [
"<string>"
],
"location": "<string>",
"skills_good_to_have": [
"<string>"
]
}
'import requests
url = "https://api.tidyhire.app/api/public/v1/ai/generate-questions"
payload = {
"job_title": "<string>",
"company_name": "<string>",
"job_description": "<string>",
"min_experience": 3,
"max_experience": 5,
"skills_required": ["<string>"],
"location": "<string>",
"skills_good_to_have": ["<string>"]
}
headers = {
"x-tidyhire-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-tidyhire-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
job_title: '<string>',
company_name: '<string>',
job_description: '<string>',
min_experience: 3,
max_experience: 5,
skills_required: ['<string>'],
location: '<string>',
skills_good_to_have: ['<string>']
})
};
fetch('https://api.tidyhire.app/api/public/v1/ai/generate-questions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tidyhire.app/api/public/v1/ai/generate-questions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'job_title' => '<string>',
'company_name' => '<string>',
'job_description' => '<string>',
'min_experience' => 3,
'max_experience' => 5,
'skills_required' => [
'<string>'
],
'location' => '<string>',
'skills_good_to_have' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-tidyhire-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tidyhire.app/api/public/v1/ai/generate-questions"
payload := strings.NewReader("{\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"job_description\": \"<string>\",\n \"min_experience\": 3,\n \"max_experience\": 5,\n \"skills_required\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"skills_good_to_have\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-tidyhire-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tidyhire.app/api/public/v1/ai/generate-questions")
.header("x-tidyhire-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"job_description\": \"<string>\",\n \"min_experience\": 3,\n \"max_experience\": 5,\n \"skills_required\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"skills_good_to_have\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tidyhire.app/api/public/v1/ai/generate-questions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-tidyhire-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"job_description\": \"<string>\",\n \"min_experience\": 3,\n \"max_experience\": 5,\n \"skills_required\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"skills_good_to_have\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "a1b2c3d4e5f60123456789abcdef0123",
"question": "Tell me about a production application you led. What architecture choices did you make?",
"type": "verbal"
}
]
}{
"success": false,
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"errors": [
{
"field": "candidates.0.name",
"message": "Candidate name must be at least 3 characters"
}
]
}{
"success": false,
"message": "Unauthorized",
"error": "INVALID_API_KEY"
}{
"success": false,
"code": "UNKNOWN_ERROR",
"message": "Something went wrong."
}AI
Generate Interview Questions
POST
/
api
/
public
/
v1
/
ai
/
generate-questions
Generate Interview Questions
curl --request POST \
--url https://api.tidyhire.app/api/public/v1/ai/generate-questions \
--header 'Content-Type: application/json' \
--header 'x-tidyhire-api-key: <api-key>' \
--data '
{
"job_title": "<string>",
"company_name": "<string>",
"job_description": "<string>",
"min_experience": 3,
"max_experience": 5,
"skills_required": [
"<string>"
],
"location": "<string>",
"skills_good_to_have": [
"<string>"
]
}
'import requests
url = "https://api.tidyhire.app/api/public/v1/ai/generate-questions"
payload = {
"job_title": "<string>",
"company_name": "<string>",
"job_description": "<string>",
"min_experience": 3,
"max_experience": 5,
"skills_required": ["<string>"],
"location": "<string>",
"skills_good_to_have": ["<string>"]
}
headers = {
"x-tidyhire-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-tidyhire-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
job_title: '<string>',
company_name: '<string>',
job_description: '<string>',
min_experience: 3,
max_experience: 5,
skills_required: ['<string>'],
location: '<string>',
skills_good_to_have: ['<string>']
})
};
fetch('https://api.tidyhire.app/api/public/v1/ai/generate-questions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tidyhire.app/api/public/v1/ai/generate-questions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'job_title' => '<string>',
'company_name' => '<string>',
'job_description' => '<string>',
'min_experience' => 3,
'max_experience' => 5,
'skills_required' => [
'<string>'
],
'location' => '<string>',
'skills_good_to_have' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-tidyhire-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tidyhire.app/api/public/v1/ai/generate-questions"
payload := strings.NewReader("{\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"job_description\": \"<string>\",\n \"min_experience\": 3,\n \"max_experience\": 5,\n \"skills_required\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"skills_good_to_have\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-tidyhire-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tidyhire.app/api/public/v1/ai/generate-questions")
.header("x-tidyhire-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"job_description\": \"<string>\",\n \"min_experience\": 3,\n \"max_experience\": 5,\n \"skills_required\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"skills_good_to_have\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tidyhire.app/api/public/v1/ai/generate-questions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-tidyhire-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"job_description\": \"<string>\",\n \"min_experience\": 3,\n \"max_experience\": 5,\n \"skills_required\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"skills_good_to_have\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "a1b2c3d4e5f60123456789abcdef0123",
"question": "Tell me about a production application you led. What architecture choices did you make?",
"type": "verbal"
}
]
}{
"success": false,
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"errors": [
{
"field": "candidates.0.name",
"message": "Candidate name must be at least 3 characters"
}
]
}{
"success": false,
"message": "Unauthorized",
"error": "INVALID_API_KEY"
}{
"success": false,
"code": "UNKNOWN_ERROR",
"message": "Something went wrong."
}This endpoint is AI-powered. It uses a large language model to generate tailored interview questions based on the job details, skills, and requirements provided.
Authorizations
Your Tidyhire API key
Body
application/json
Minimum years of experience required.
Example:
3
Maximum years of experience required.
Example:
5
Available options:
Entry, Mid, Senior, Lead, Principal, Staff Available options:
Remote, On Site, Hybrid Available options:
Full Time, Part Time, Contract, Freelance Available options:
15 Minutes, 30 Minutes, 1 hour, 2 hours Last modified on April 27, 2026
Was this page helpful?
⌘I