Get your organization
curl --request GET \
--url https://api.classet.ai/v2/organization \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.classet.ai/v2/organization"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.classet.ai/v2/organization', 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.classet.ai/v2/organization",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.classet.ai/v2/organization"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.classet.ai/v2/organization")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.classet.ai/v2/organization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "7e7c5180-3326-496e-ad83-0cab8da44b9a",
"name": "Acme Staffing",
"account_type": "<string>",
"domain": "<string>",
"careers_page_url": "<string>",
"branch_count": 123,
"capabilities": {
"candidate_messaging": true,
"interview_scheduling": true,
"instant_interview": true,
"campaigns": true,
"careers_page": true,
"indeed": true,
"multi_language": true,
"call_recording": true
},
"voice": {
"agent_name": "Joy",
"phone_number": "+15555555555",
"languages": [
"en",
"es"
]
},
"limits": {
"rate_limit_sustained": 123,
"rate_limit_burst": 123,
"daily_interview_invite_cap": 123,
"monthly_interview_invite_cap": 123,
"allowed_phone_regions": [
"US",
"CA"
]
},
"webhooks": {
"event_webhook_url_configured": true,
"results_webhook_url_configured": true,
"has_signing_secret": true,
"available_events": [
"<string>"
]
},
"api_version": "2.0.0"
}
}{
"error": "Resource not found",
"code": "not_found",
"request_id": "9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f"
}{
"error": "Resource not found",
"code": "not_found",
"request_id": "9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f"
}Organization
Get Organization
The organization your API key belongs to, with the configuration that governs the rest of the API: which channels are enabled, the number candidates see, the phone regions accepted on candidate creation, your rate limit, and whether webhooks are configured and signed. Call this first to verify a key.
GET
/
v2
/
organization
Get your organization
curl --request GET \
--url https://api.classet.ai/v2/organization \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.classet.ai/v2/organization"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.classet.ai/v2/organization', 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.classet.ai/v2/organization",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.classet.ai/v2/organization"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.classet.ai/v2/organization")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.classet.ai/v2/organization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "7e7c5180-3326-496e-ad83-0cab8da44b9a",
"name": "Acme Staffing",
"account_type": "<string>",
"domain": "<string>",
"careers_page_url": "<string>",
"branch_count": 123,
"capabilities": {
"candidate_messaging": true,
"interview_scheduling": true,
"instant_interview": true,
"campaigns": true,
"careers_page": true,
"indeed": true,
"multi_language": true,
"call_recording": true
},
"voice": {
"agent_name": "Joy",
"phone_number": "+15555555555",
"languages": [
"en",
"es"
]
},
"limits": {
"rate_limit_sustained": 123,
"rate_limit_burst": 123,
"daily_interview_invite_cap": 123,
"monthly_interview_invite_cap": 123,
"allowed_phone_regions": [
"US",
"CA"
]
},
"webhooks": {
"event_webhook_url_configured": true,
"results_webhook_url_configured": true,
"has_signing_secret": true,
"available_events": [
"<string>"
]
},
"api_version": "2.0.0"
}
}{
"error": "Resource not found",
"code": "not_found",
"request_id": "9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f"
}{
"error": "Resource not found",
"code": "not_found",
"request_id": "9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f"
}Was this page helpful?