Skip to main content
POST
Create a new interview

Authorizations

Authorization
string
header
required

Supabase JWT — Authorization: Bearer <token>.

Body

application/json
name
string
required

Interview / position name.

Minimum string length: 1
Example:

"Project manager"

location
string
required

Job location — a city/country, or remote. Required and must not be empty: when the job description gives no location, pass Not specified.

Minimum string length: 1
Example:

"remote"

interview_template_id
string<uuid>
required

Id of the interview template to base this interview on.

Minimum string length: 1
Example:

"baa3bf7c-6926-46fd-9005-16738a31f72d"

mojito_language_code
enum<string>
required

Platform language code used for the interview. One of the listed codes.

Available options:
ar,
bg,
zh,
hr,
cs,
da,
nl,
en,
fil,
fi,
fr,
de,
el,
hi,
hu,
id,
it,
ja,
ko,
ms,
no,
pl,
pt,
br,
ro,
ru,
sk,
es,
sv,
ta,
th,
tr,
uk,
vi
Example:

"en"

status
enum<string>
required

Lifecycle status of the interview. Options — draft: Created but not published — not visible to candidates and cannot be run yet. Use to stage an interview before going live. | active: Published and live — candidates can run it.

Available options:
draft,
active
Example:

"active"

type
enum<string>
required

Product type of the interview. Options — interview: Standard candidate interview for a role — answers are AI-scored as input for the reviewer's decision. | coaching: Practice/coaching session — candidate-facing feedback to help them improve; not a hiring evaluation. Only available on the coaching portal, NOT the interview portal. | assessment: Skills/knowledge assessment — evaluates competencies and is scored like an interview. | public_avatar: Public avatar — an avatar on a stand or web page (e.g. a conference) that anyone with its link talks to, with no invitation or registration, at https:///public-avatar/; the result is submitted when the session ends and billed to the company's interview credits. Only for a company with public avatars switched on (else 422), and only with a live or pre-recorded avatar template (interactive_heygen, interactive_spatius, offline_heygen), never voice-only.

Available options:
interview,
coaching,
assessment,
public_avatar
Example:

"interview"

visibility
enum<string>
required

Who can discover and access the interview. Options — merchant_public: Listed on the merchant's public interview list — anyone with the merchant link can find and start it. | merchant_invite: Invite-only — only candidates explicitly invited (by email/link) can access it; not listed anywhere. | merchant_unlisted: Reachable only via a direct link — not listed anywhere; share the link manually.

Available options:
merchant_public,
merchant_invite,
merchant_unlisted
Example:

"merchant_public"

recording
enum<string> | null

Cheating/proctoring detection mode for candidate answers — this is NOT a full session recording. Video options also record the candidate. Omit, null or none to disable. Options — audio_first_5_answers: Audio-only cheating detection, first 5 answers only. | audio_all: Audio-only cheating detection on every answer. | video_all: Audio + video cheating detection on every answer (candidate is recorded for all answers). | video_first_5_answers: Audio + video cheating detection, first 5 answers only. | none: No cheating detection.

Available options:
audio_first_5_answers,
audio_all,
video_all,
video_first_5_answers,
none
Example:

"video_all"

recording_full_session
enum<string> | null

Full interview-session recording (includes the avatar and voice) produced as a single file. Independent of recording. Omit, null or none to disable. Options — audio_all: Record the whole session audio (avatar + candidate voice) into a single file. Adds +0.2 credits. | video_all: Record the whole session video + audio (avatar + candidate) into a single file. Adds +0.4 credits. | none: No full-session recording.

Available options:
audio_all,
video_all,
none
Example:

"video_all"

environment
enum<string>

Which of your webhook environments results from this interview are delivered to. Defaults to production. Options — production: Live hiring. Results reach the webhooks configured as production. This is the default when the field is omitted. | uat: User-acceptance testing - an isolated environment for pre-release verification. | development: Development/testing. Use for interviews created by a test or preview app so their results never reach the production webhook. | demo: Demonstrations and sales trials.

Available options:
production,
uat,
development,
demo
Example:

"production"

interview_type
enum<string>

Interview style — configures the AI avatar and shapes both the AI-generated questions and the follow-up questions asked during the interview. Defaults to pre-screening when omitted. Options — pre-screening: Pre-screening — quick qualification check focusing on basic requirements and availability. | pre-screening-with-test-questions: Pre-screening with test questions — pre-screening plus practical questions to test relevant skills. | second-interview: Second round interview — deeper dive for candidates who passed initial screening. | remote-freelancer-verification: Remote worker verification — verify remote work capabilities and communication skills. | strength-based-interview: Strength-based interview — focus on what candidates enjoy and excel at to predict job satisfaction. | potential-based-interview: Potential-based interview — assess learning ability and growth potential rather than past experience. | process-verification-from-knowledge-base: Knowledge Base interview — generate questions from your knowledge base documents. | knockout-screening: Knock-out screening — a short (about 5 minute) check of the role's must-haves with closed questions; ends early, politely, when a must-have is clearly not met. On creation it defaults custom_scoring.early_stop to true (where the avatar supports early stop) and max_followups to 1 unless you send them.

Available options:
pre-screening,
pre-screening-with-test-questions,
second-interview,
remote-freelancer-verification,
strength-based-interview,
potential-based-interview,
process-verification-from-knowledge-base,
knockout-screening
Example:

"pre-screening-with-test-questions"

seniority_level
enum<string> | null

Target seniority level for the role; auto-detected from the job description when omitted. Options — entry-level: Early-career or graduate roles. | intermediate: Some experience required. | senior: Experienced professional. | managerial: Team or department lead. | director: Director-level responsibility. | executive: C-suite or executive role.

Available options:
entry-level,
intermediate,
senior,
managerial,
director,
executive
Example:

"senior"

result_view
enum<string> | null

Result screen shown to the candidate after finishing. With any value other than none, the candidate sees a results screen where they can provide feedback, record an intro video and edit the transcript, and must then submit the result; the value sets how much score/result detail is shown. Options — none: No results screen at all — the interview is submitted immediately when the candidate finishes (no feedback, intro video, transcript edit or manual submit step). | minimal: Minimal results layout, no score shown. | minimal_with_score: Minimal results layout including the overall score. | advanced: Advanced results layout with more detail. | full: Full results layout with all sections. | full_expand_scores: Full results with every score breakdown expanded.

Available options:
none,
minimal,
minimal_with_score,
advanced,
full,
full_expand_scores
Example:

"full"

interview_conversation_speed
enum<string> | null

Conversation pace of the AI avatar. Omit/null keeps the template default pace. Options — slower: The avatar speaks more slowly — easier to follow for non-native speakers. | normal: Default speaking pace. | faster: The avatar speaks more quickly for a snappier conversation. | fluent: Talking pace: the avatar answers 300 ms after the candidate stops speaking. A pause mid-sentence also ends their turn.

Available options:
slower,
normal,
faster,
fluent
Example:

"normal"

candidate_video_introduction
enum<string> | null

Whether a candidate video introduction is optional or required.

Available options:
hidden,
optional,
required
Example:

"optional"

interview_tone
enum<string> | null

Interview tone — configures the AI avatar's speaking style and the tone of the AI-generated questions and follow-ups. Case-insensitive; omit to default to relaxed. Options — relaxed: Friendly and conversational tone that helps candidates feel at ease. | simple: Plain language at CEFR A2 level — short sentences and simple words. | professional: Formal and business-like approach suitable for senior roles. | persuasive: Engaging style that encourages candidates to elaborate. | exact: Asks the questions exactly as provided, without rephrasing — for interviews built from your own questions where the wording is a script.

Available options:
relaxed,
simple,
professional,
persuasive,
exact
Example:

"professional"

interview_length
integer

Number of questions to generate (1-40). Also capped by max_duration, which allows one question per 2 minutes: 20 min -> 10 questions, 30 min -> 15, 45 min -> 22, 60 min -> 30, 80 min -> 40. Asking for more than the cap is not an error — you get the cap, and the response reports the real count in questions_generated. Omit this field to let the AI pick 5-8.

Required range: 1 <= x <= 40
Example:

8

interview_attempts
number | null

Allowed candidate attempts (1-20).

Required range: 1 <= x <= 20
Example:

1

max_duration
number | null

Maximum interview duration in seconds. Scopes how many questions are generated (see interview_length) and is stored on the interview as the live session limit and the basis for the credit multiplier. Defaults to 1200 (20 minutes) when omitted.

Example:

1200

max_followups
integer | null

Maximum number of AI follow-up questions. 0 disables follow-ups; presets are 0-3 (none/low/normal/high) and custom values start at 4; null uses the template default (Normal).

Required range: 0 <= x <= 999
Example:

2

questions_random_subset
number | null

Ask only a random subset of the questions, expressed as a fraction between 0.01 and 0.9 (e.g. 0.5 = 50%). null asks all questions.

Required range: 0.01 <= x <= 0.9
Example:

0.5

code
string | null

Optional external code/reference for the interview.

Example:

"my code"

cover_image_url
string | null

Cover image URL.

Example:

"https://example.com/cover.png"

interview_department
string | null

Department the position belongs to.

Example:

"Engineering"

interview_salary
string | null

Salary range shown for the position.

Example:

"$80k - $100k"

interview_available_till
string | null

ISO date/time after which the interview is no longer available to candidates. null keeps it always available.

Example:

"2026-12-31"

recruiter_profile_id
string | null

Profile id of the recruiter owning this interview. A user of the company who is not read only: an owner, recruiter or admin from merchant-user-list.

Example:

"28106cba-1c27-4e53-b149-32113e5e8e31"

hiring_for_company
object | null

Who the position is really for. Omit/null (or an object with name null/blank) when hiring for yourself; { name: 'undisclosed' } for an unnamed external client; or { name: '' } plus optional description/location/sector/company_size for a named client. Stored in creation_parameters.hiring_for_company.

Example:
department_fit
boolean | null

Public avatars only: name the one or two departments each visitor fits best (ai_analysis_other.department_fit on the result), from the departments text. The avatar never asks the visitor to choose a department. Needs departments. Defaults to off. Stored in creation_parameters.department_fit.

Example:

true

departments
string | null

Public avatars only: the company's departments for department_fit, as plain text: each department's name, what it does and what it looks for in people (at most 8000 characters). The avatar uses it in the conversation, so write nothing visitors must not hear. null or blank clears it. Needed when department_fit is true. Stored in creation_parameters.departments.

Maximum string length: 8000
Example:

"Risk: credit and market risk models; looks for statistics, Python, careful thinking.\nIT: builds the banking apps; looks for programming and teamwork."

tags
string[] | null

Free-form tags stored on the interview. Tags are also the coaching-catalogue mapping key: a catalogue directory (see the catalogue-tag-create / catalogue-tag-update endpoints) lists a coaching or persona session when the session's tags contain EVERY tag in that directory's tags_interview_set_filter. Only active sessions with visibility merchant_public (or the platform's own public) are listed.

Example:
merchant_id
string | null

Merchant id. Admin / sub-merchant callers only; otherwise taken from your token.

Example:

"28106cba-1c27-4e53-b149-32113e5e8e31"

knowledge_base_store_id
string<uuid> | null

Knowledge base store id to source additional context from. Documents limited to chosen interviews are left out, because a new interview is on no list yet.

description
string | null

Short, two-sentence job description shown to the candidate. Required with questions. Without questions, provide it to use it as-is, or leave it null/blank and it is AI-generated from the position name and any other context.

Example:

"Backend role focused on Python, async APIs, and AWS."

description_long
string | null

Full job description in Markdown (Job Purpose, Responsibilities, Required & Preferred Qualifications). Provide it to use it as-is; leave it null/blank and it is AI-generated (interview and assessment types only). Rendered as Markdown on the candidate-facing position page, including chips, callouts, cards, columns and buttons — formatting guide: https://developer.jobmojito.com/cookbooks/format-content-with-markdown

candidate_expectations
string | null

Free-text candidate expectations folded into AI generation.

welcome_message
string | null

Custom welcome message shown to the candidate.

thank_you_message
string | null

Custom thank-you message shown after the interview.

microphone_test_message
string | null

Custom microphone-test instruction for a recorded (offline avatar) interview, spoken by the avatar and shown on screen before the first question. Omitted uses the default prompt in the interview language.

Example:

"Before we start, let's check your microphone. Say \"Hello, I'm ready.\""

microphone_test_no_speech_message
string | null

Custom text shown when the microphone test hears nothing. Omitted uses the default text in the candidate's language.

Example:

"We can't hear you. Check your microphone and try again."

additional_context
object | null

Arbitrary additional context object merged into AI generation.

instructional_video_custom_text
string | null

The script the avatar reads in the welcome video (instructional_video). Omitted: a default text in the interview language, which describes a job interview; a public_avatar must give its own.

instructional_video_template_id
string<uuid> | null

The avatar template the welcome video (instructional_video) is recorded with: a HeyGen avatar, interactive_heygen or offline_heygen (list_avatars). Omitted: the interview's own template when it is one of those.

is_embedded
boolean | null

Set true when the interview will be embedded as an iframe on an external page. Provisions an embed key and returns embed_id / embed_signing_key, which are used to authenticate/sign the iframe embed. Where it runs depends on the type: interviews, assessments and interview role-plays embed on the interview portal (https://<interview portal domain>/embed?embed_id=...); coaching sessions and coaching personas embed on the consumer (coaching) portal (https://<coaching portal domain>/embed?embed_id=..., a link built on the interview portal is forwarded there). A signed coaching embed (name, email, signature) signs the visitor in as a learner of that portal, and the session is charged to the merchant's interview credits on completion, not to the learner's coaching credits; it cannot start while the merchant has none.

Example:

false

include_rapport_question
boolean | null

Include an opening rapport question. Defaults to false (true when questions is given).

Example:

true

include_closing_prompt
boolean | null

Include a closing prompt. Defaults to true.

Example:

true

instructional_video
boolean | null

The welcome video: a pre-recorded avatar video reading instructional_video_custom_text (or a default text) on the start screen, rendered when the interview is published. Recorded with instructional_video_template_id, else with the interview's own template when that is a HeyGen avatar (interactive_heygen, offline_heygen); otherwise refused (422). Required, with instructional_video_custom_text, for type public_avatar, which does not start without it. Defaults to false.

Example:

true

required_pronunciation
boolean | null

Require pronunciation assessment (restricts to pronunciation-capable languages). Defaults to false.

Example:

false

result_enable_edit_transcript
boolean | null

Allow editing the transcript on the result view. Defaults to true.

Example:

true

questions
object[]

OPTIONAL: your own ordered list of questions, in the format job-interview-get returns. When given, they are stored as written and nothing is generated by AI except the candidate expectations (type interview, unless candidate_expectations_json is given); in the session the avatar still says each question in the interview tone unless interview_tone is exact. With questions, description becomes required; interview_length and include_closing_prompt are ignored; include_rapport_question defaults to true; max_duration keeps its meaning here (stored, 1200 when omitted). Omit to have the AI generate the description and questions.

Minimum array length: 1
candidate_expectations_json
object | null

With questions only: pre-generated candidate expectations, bucketed by requirement level (weak/moderate/strong); generated from your questions when omitted for type interview. Ignored without questions.

disable_deduplication
boolean | null

With questions only: when true, every question is stored as a new record instead of reusing an identical one. Ignored without questions.

interview_category
string | null

Job category shown on public listings, above the department (free text, e.g. "Ashore"). Blank is stored as null.

Example:

"Ashore"

country_availability
object | null

Which countries the interview / position is open to on the candidate portal, judged by the IP address the candidate opens it from (an unknown location only passes when countries_allowed / countries_allowed_eu are empty). From a closed country it is left out of the portal listings, and a direct link shows "not available in your region". Invited candidates (personal invitation links) and candidates who already started keep access; API and MCP calls themselves are never restricted. Null = not used, every country.

candidate_notification_channel
enum<string> | null

SMS / WhatsApp notifications to the candidate, sent alongside the e-mails: "reminders" = with both e-mail reminders (day 1 and day 3); "last_reminder" = only with the final day-3 reminder; "all" = invitation, both reminders and the pre-screening-accepted step. null switches them off. WhatsApp is tried first, SMS when the number is not on WhatsApp. Available on paid plans (Starter and above) and needs a phone number on the candidate.

Available options:
reminders,
last_reminder,
all
custom_scoring
object | null

Custom result-scoring overrides merged with defaults and template overrides.

pdf_export_auto_config
object | null

Auto-generate a candidate PDF report with these options once the interview completes. null disables auto-export.

Response

Interview created.

Id of the created interview, the number of questions generated and the stored max_duration. Includes embed_id/embed_signing_key when is_embedded=true.

interview_def_set_id
string
required

Id of the newly created interview definition set.

Example:

"00000000-0000-0000-0000-000000000000"

questions_generated
number
required

Number of questions actually generated (with questions: the number of questions you sent). May be lower than the requested interview_length, which is capped by max_duration.

Example:

8

max_duration
number
required

Live session limit in seconds stored on the interview — the value sent, or the 1200 default when omitted.

Example:

1200

embed_id
string

Embed id, present only when is_embedded=true.

embed_signing_key
string

Embed signing key, present only when is_embedded=true.