curl --request POST \
--url https://api.ropes.ai/api/public/client-portals \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"clientId": "<string>",
"jobId": "<string>",
"ownerEmail": "jsmith@example.com"
}
'import requests
url = "https://api.ropes.ai/api/public/client-portals"
payload = {
"clientId": "<string>",
"jobId": "<string>",
"ownerEmail": "jsmith@example.com"
}
headers = {
"x-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-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({clientId: '<string>', jobId: '<string>', ownerEmail: 'jsmith@example.com'})
};
fetch('https://api.ropes.ai/api/public/client-portals', 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.ropes.ai/api/public/client-portals",
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([
'clientId' => '<string>',
'jobId' => '<string>',
'ownerEmail' => 'jsmith@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-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.ropes.ai/api/public/client-portals"
payload := strings.NewReader("{\n \"clientId\": \"<string>\",\n \"jobId\": \"<string>\",\n \"ownerEmail\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-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.ropes.ai/api/public/client-portals")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"clientId\": \"<string>\",\n \"jobId\": \"<string>\",\n \"ownerEmail\": \"jsmith@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ropes.ai/api/public/client-portals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"clientId\": \"<string>\",\n \"jobId\": \"<string>\",\n \"ownerEmail\": \"jsmith@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"portal": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"status": "<string>",
"clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"jobCount": 123,
"ownerEmail": "<string>",
"candidateCount": 123,
"reviewerCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"candidates": [
{
"candidateId": "<string>",
"name": "<string>",
"email": "<string>",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"resultInterviewId": "<string>",
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"reviewers": [
{
"email": "<string>",
"invitedAt": "2023-11-07T05:31:56Z"
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"existing": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"status": "<string>",
"clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"jobCount": 123,
"ownerEmail": "<string>",
"candidateCount": 123,
"reviewerCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"candidates": [
{
"candidateId": "<string>",
"name": "<string>",
"email": "<string>",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"resultInterviewId": "<string>",
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"reviewers": [
{
"email": "<string>",
"invitedAt": "2023-11-07T05:31:56Z"
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Create Client Portal
Create the Client Portal for a client and a job. A client has one portal per job: creating it again returns 409 with the existing portal. To share a candidate with a hiring manager: create (or find) the client, the job and the candidate, create the portal for that client and job, add the candidate, then invite the hiring manager.
Required scope: client_portals:write
curl --request POST \
--url https://api.ropes.ai/api/public/client-portals \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"clientId": "<string>",
"jobId": "<string>",
"ownerEmail": "jsmith@example.com"
}
'import requests
url = "https://api.ropes.ai/api/public/client-portals"
payload = {
"clientId": "<string>",
"jobId": "<string>",
"ownerEmail": "jsmith@example.com"
}
headers = {
"x-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-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({clientId: '<string>', jobId: '<string>', ownerEmail: 'jsmith@example.com'})
};
fetch('https://api.ropes.ai/api/public/client-portals', 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.ropes.ai/api/public/client-portals",
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([
'clientId' => '<string>',
'jobId' => '<string>',
'ownerEmail' => 'jsmith@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-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.ropes.ai/api/public/client-portals"
payload := strings.NewReader("{\n \"clientId\": \"<string>\",\n \"jobId\": \"<string>\",\n \"ownerEmail\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-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.ropes.ai/api/public/client-portals")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"clientId\": \"<string>\",\n \"jobId\": \"<string>\",\n \"ownerEmail\": \"jsmith@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ropes.ai/api/public/client-portals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"clientId\": \"<string>\",\n \"jobId\": \"<string>\",\n \"ownerEmail\": \"jsmith@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"portal": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"status": "<string>",
"clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"jobCount": 123,
"ownerEmail": "<string>",
"candidateCount": 123,
"reviewerCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"candidates": [
{
"candidateId": "<string>",
"name": "<string>",
"email": "<string>",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"resultInterviewId": "<string>",
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"reviewers": [
{
"email": "<string>",
"invitedAt": "2023-11-07T05:31:56Z"
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"existing": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"status": "<string>",
"clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"jobCount": 123,
"ownerEmail": "<string>",
"candidateCount": 123,
"reviewerCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"candidates": [
{
"candidateId": "<string>",
"name": "<string>",
"email": "<string>",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"resultInterviewId": "<string>",
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"reviewers": [
{
"email": "<string>",
"invitedAt": "2023-11-07T05:31:56Z"
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
Each key carries scopes chosen when it is created: candidates:read, candidates:write, assessments:read, assessments:write, problems:read, problems:write, results:read, id_checks:read, id_checks:write, jobs:read, jobs:write, client_portals:read, client_portals:write. Keys created before scopes existed have full access. A request with a key that lacks an operation's scope returns 403 naming the missing scope.