curl --request POST \
--url https://cool.jobmojito.com/functions/v1/job-interview-token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"merchant_id": "<string>",
"interview_profile_id": "<string>",
"interview_id": "<string>",
"interview_result_id": "<string>",
"show_menu": true
}
'import requests
url = "https://cool.jobmojito.com/functions/v1/job-interview-token"
payload = {
"merchant_id": "<string>",
"interview_profile_id": "<string>",
"interview_id": "<string>",
"interview_result_id": "<string>",
"show_menu": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
merchant_id: '<string>',
interview_profile_id: '<string>',
interview_id: '<string>',
interview_result_id: '<string>',
show_menu: true
})
};
fetch('https://cool.jobmojito.com/functions/v1/job-interview-token', 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://cool.jobmojito.com/functions/v1/job-interview-token",
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([
'merchant_id' => '<string>',
'interview_profile_id' => '<string>',
'interview_id' => '<string>',
'interview_result_id' => '<string>',
'show_menu' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://cool.jobmojito.com/functions/v1/job-interview-token"
payload := strings.NewReader("{\n \"merchant_id\": \"<string>\",\n \"interview_profile_id\": \"<string>\",\n \"interview_id\": \"<string>\",\n \"interview_result_id\": \"<string>\",\n \"show_menu\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://cool.jobmojito.com/functions/v1/job-interview-token")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"merchant_id\": \"<string>\",\n \"interview_profile_id\": \"<string>\",\n \"interview_id\": \"<string>\",\n \"interview_result_id\": \"<string>\",\n \"show_menu\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cool.jobmojito.com/functions/v1/job-interview-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"merchant_id\": \"<string>\",\n \"interview_profile_id\": \"<string>\",\n \"interview_id\": \"<string>\",\n \"interview_result_id\": \"<string>\",\n \"show_menu\": true\n}"
response = http.request(request)
puts response.read_body"https://interviews.example.com/interview/take/<id>/?interview_token=<jwt>&view_hm=true"{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}Generate a signed interview URL
Generates a public, token-signed URL for an existing interview, candidate, or result. The required id fields depend on type. Sends nothing: share the URL yourself. For owners, recruiters and admins; hiring managers (read-only accounts) get 403. Note: a request without a valid user token is answered with 422, not 401 (kept for existing integrations).
curl --request POST \
--url https://cool.jobmojito.com/functions/v1/job-interview-token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"merchant_id": "<string>",
"interview_profile_id": "<string>",
"interview_id": "<string>",
"interview_result_id": "<string>",
"show_menu": true
}
'import requests
url = "https://cool.jobmojito.com/functions/v1/job-interview-token"
payload = {
"merchant_id": "<string>",
"interview_profile_id": "<string>",
"interview_id": "<string>",
"interview_result_id": "<string>",
"show_menu": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
merchant_id: '<string>',
interview_profile_id: '<string>',
interview_id: '<string>',
interview_result_id: '<string>',
show_menu: true
})
};
fetch('https://cool.jobmojito.com/functions/v1/job-interview-token', 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://cool.jobmojito.com/functions/v1/job-interview-token",
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([
'merchant_id' => '<string>',
'interview_profile_id' => '<string>',
'interview_id' => '<string>',
'interview_result_id' => '<string>',
'show_menu' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://cool.jobmojito.com/functions/v1/job-interview-token"
payload := strings.NewReader("{\n \"merchant_id\": \"<string>\",\n \"interview_profile_id\": \"<string>\",\n \"interview_id\": \"<string>\",\n \"interview_result_id\": \"<string>\",\n \"show_menu\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://cool.jobmojito.com/functions/v1/job-interview-token")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"merchant_id\": \"<string>\",\n \"interview_profile_id\": \"<string>\",\n \"interview_id\": \"<string>\",\n \"interview_result_id\": \"<string>\",\n \"show_menu\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cool.jobmojito.com/functions/v1/job-interview-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"merchant_id\": \"<string>\",\n \"interview_profile_id\": \"<string>\",\n \"interview_id\": \"<string>\",\n \"interview_result_id\": \"<string>\",\n \"show_menu\": true\n}"
response = http.request(request)
puts response.read_body"https://interviews.example.com/interview/take/<id>/?interview_token=<jwt>&view_hm=true"{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}Authorizations
Supabase JWT — Authorization: Bearer <token>.
Body
Which kind of signed URL to generate. interview-for-profile: the candidate takes the interview or position (needs interview_profile_id and interview_id); results-for-profile: the candidate sees all their results (needs interview_profile_id); interview-result-candidate: the candidate sees one result (needs interview_result_id); interview-result-talent-seeker: a reviewer sees one result in the recruiter view (needs interview_result_id); interview-results-for-position: a reviewer sees every result of an interview or position (needs interview_id).
interview-for-profile, results-for-profile, interview-result-candidate, interview-result-talent-seeker, interview-results-for-position Company (merchant.id, a uuid) to act for. Honoured for admins and sub-merchant operators only; other callers always use their token's company.
The candidate (profile_interview.id, a uuid; not a profile.id). Required for interview-for-profile and results-for-profile.
The interview (interview_def_set.id) or position (position_def_set.id), a uuid. Required for interview-for-profile and interview-results-for-position.
The interview result (interview_result.id), a uuid. Required for interview-result-candidate and interview-result-talent-seeker.
true shows the navigation menu on the page the link opens; false or left out hides it.
Response
The signed URL.
The signed interview URL.
"https://interviews.example.com/interview/take/<id>/?interview_token=<jwt>&view_hm=true"