Workspace
Get Workspace
Get the workspace settings an integration needs with GET /api/workspace: organization, API key access, plan, won conversions, lost reasons, labels, custom field keys, forms and lead update settings.
GET
/
api
/
workspace
Get Workspace
curl --request GET \
--url https://octanist.com/api/workspace \
--header 'X-API-KEY: <api-key>'import requests
url = "https://octanist.com/api/workspace"
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://octanist.com/api/workspace', 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://octanist.com/api/workspace",
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://octanist.com/api/workspace"
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://octanist.com/api/workspace")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://octanist.com/api/workspace")
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{
"success": true,
"data": {
"organization": {
"id": "org_abc123",
"name": "Acme Inc",
"currency": "EUR",
"timezone": "Europe/Amsterdam"
},
"apiKey": {
"access": "full"
},
"plan": {
"tier": "professional",
"leadLimit": 1000
},
"conversions": [
{
"id": "conv_won_default",
"name": "Won lead",
"type": "won",
"isDefault": true
}
],
"lostReasons": {
"enabled": true,
"reasons": [
"Too expensive",
"No response"
]
},
"labels": {
"enabled": true,
"items": [
{
"id": "label_xyz",
"name": "Enterprise",
"color": "#3F6967"
}
]
},
"customFieldKeys": [
"company",
"budget"
],
"forms": [
{
"identifier": "contact-form",
"name": "Contact form",
"submissions": 412
}
],
"leadUpdates": {
"multipleMatchBehavior": "most_recent",
"matchLeadsByEmailDomain": true,
"autoQualifyWonLeads": true,
"allowWonValueUpdates": true
}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}Returns the settings an integration needs to send valid data: the IDs of won conversions and labels, the list of lost reasons, custom field keys, forms and the lead update settings. Call it when you set up an integration, and again when the settings may have changed.
Read-only API keys can use this endpoint.
Example Request
curl -X GET \
-H "X-API-KEY: your_api_key" \
"https://octanist.com/api/workspace"
Example Response
{
"success": true,
"data": {
"organization": {
"id": "org_abc123",
"name": "Acme Inc",
"currency": "EUR",
"timezone": "Europe/Amsterdam"
},
"apiKey": {
"access": "full"
},
"plan": {
"tier": "professional",
"leadLimit": 1000
},
"conversions": [
{ "id": "conv_qualified", "name": "Qualified lead", "type": "qualified", "isDefault": false },
{ "id": "conv_won_default", "name": "Won lead", "type": "won", "isDefault": true },
{ "id": "conv_won_subscription", "name": "Subscription sold", "type": "won", "isDefault": false }
],
"lostReasons": {
"enabled": true,
"reasons": ["Too expensive", "No response", "Chose a competitor"]
},
"labels": {
"enabled": true,
"items": [
{ "id": "label_xyz", "name": "Enterprise", "color": "#3F6967" }
]
},
"customFieldKeys": ["company", "budget"],
"forms": [
{ "identifier": "contact-form", "name": "Contact form", "submissions": 412 }
],
"leadUpdates": {
"multipleMatchBehavior": "most_recent",
"matchLeadsByEmailDomain": false,
"autoQualifyWonLeads": true,
"allowWonValueUpdates": false
}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
organization.id | string | Organization ID |
organization.name | string | Organization name |
organization.currency | string | Default currency, for example EUR |
organization.timezone | string | Timezone used for dates in reports |
apiKey.access | string | full or read. See Key access. |
plan | object | null | tier (starter, professional, advanced or custom) and leadLimit per billing period (-1 means unlimited). null without a plan. |
conversions | array | Conversions under Settings > Conversions: id, name, type (qualified, won, form or call) and isDefault |
lostReasons.enabled | boolean | Whether the workspace uses a fixed list of lost reasons |
lostReasons.reasons | string[] | The lost reasons, or an empty list when enabled is false. Send one of these as lossReason when enabled is true. |
labels.enabled | boolean | Whether labels are turned on |
labels.items | array | Labels with id, name and color. Use id as labelId. |
customFieldKeys | string[] | Keys found in the custom data of recent leads |
forms | array | Up to 100 forms with identifier, name and number of submissions. Forms you denied in form mapping are left out. |
leadUpdates.multipleMatchBehavior | string | What an update does when several leads match: most_recent, oldest, all, split_value or error. See Several matching leads. |
leadUpdates.matchLeadsByEmailDomain | boolean | Whether Same-Company Lead Matching is on |
leadUpdates.autoQualifyWonLeads | boolean | Whether a won lead also gets the qualified milestone |
leadUpdates.allowWonValueUpdates | boolean | Whether the value of a won lead can still change |
Using the IDs
| To send | Use |
|---|---|
conversionEventId on PATCH /api/leads | id of a conversion with "type": "won" |
labelId on POST /api/leads, or set.labelId on PATCH /api/leads | id from labels.items |
lossReason on PATCH /api/leads | One of lostReasons.reasons when lostReasons.enabled is true. The API accepts any text, so check this yourself. |
Error Responses
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid API key |
| 500 | INTERNAL_ERROR | Server error |
⌘I
Get Workspace
curl --request GET \
--url https://octanist.com/api/workspace \
--header 'X-API-KEY: <api-key>'import requests
url = "https://octanist.com/api/workspace"
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://octanist.com/api/workspace', 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://octanist.com/api/workspace",
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://octanist.com/api/workspace"
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://octanist.com/api/workspace")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://octanist.com/api/workspace")
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{
"success": true,
"data": {
"organization": {
"id": "org_abc123",
"name": "Acme Inc",
"currency": "EUR",
"timezone": "Europe/Amsterdam"
},
"apiKey": {
"access": "full"
},
"plan": {
"tier": "professional",
"leadLimit": 1000
},
"conversions": [
{
"id": "conv_won_default",
"name": "Won lead",
"type": "won",
"isDefault": true
}
],
"lostReasons": {
"enabled": true,
"reasons": [
"Too expensive",
"No response"
]
},
"labels": {
"enabled": true,
"items": [
{
"id": "label_xyz",
"name": "Enterprise",
"color": "#3F6967"
}
]
},
"customFieldKeys": [
"company",
"budget"
],
"forms": [
{
"identifier": "contact-form",
"name": "Contact form",
"submissions": 412
}
],
"leadUpdates": {
"multipleMatchBehavior": "most_recent",
"matchLeadsByEmailDomain": true,
"autoQualifyWonLeads": true,
"allowWonValueUpdates": true
}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Human readable error message",
"details": {}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}