curl --request GET \
--url https://api.journeybee.io/v1/custom-fields/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.journeybee.io/v1/custom-fields/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.journeybee.io/v1/custom-fields/', 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.journeybee.io/v1/custom-fields/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.journeybee.io/v1/custom-fields/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.journeybee.io/v1/custom-fields/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/custom-fields/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"uuid": "<string>",
"label": "<string>",
"type": "text",
"category": "lead",
"partner_type": "referral",
"options": [
{
"id": 123,
"label": "<string>"
}
],
"description": "<string>",
"link_url": "<string>",
"link_label": "<string>",
"shared": true,
"required": true,
"locked": true,
"supporting_partners_can_see": true,
"created_at": "<string>",
"updated_at": "<string>"
}
]List custom field definitions
curl --request GET \
--url https://api.journeybee.io/v1/custom-fields/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.journeybee.io/v1/custom-fields/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.journeybee.io/v1/custom-fields/', 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.journeybee.io/v1/custom-fields/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.journeybee.io/v1/custom-fields/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.journeybee.io/v1/custom-fields/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/custom-fields/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"uuid": "<string>",
"label": "<string>",
"type": "text",
"category": "lead",
"partner_type": "referral",
"options": [
{
"id": 123,
"label": "<string>"
}
],
"description": "<string>",
"link_url": "<string>",
"link_label": "<string>",
"shared": true,
"required": true,
"locked": true,
"supporting_partners_can_see": true,
"created_at": "<string>",
"updated_at": "<string>"
}
]Authorizations
Query Parameters
Entity the field belongs to: partner, lead, lead_deal or contact. lead_acceptance and lead_rejection are the forms filled in when a lead moves to Accepted (status converted) or Rejected; their values belong to the lead. Status-form fields are one form per company: partner_type does not apply to them.
lead, partner, lead_deal, contact, lead_acceptance, lead_rejection Response
Default Response
Entity the field belongs to: partner, lead, lead_deal or contact. lead_acceptance and lead_rejection are the forms filled in when a lead moves to Accepted (status converted) or Rejected; their values belong to the lead. Status-form fields are one form per company: partner_type does not apply to them.
lead, partner, lead_deal, contact, lead_acceptance, lead_rejection Whether only the company can set this field's value. A shared locked field is shown to partners read-only and is never on partner add or import forms, status forms or public forms; partner writes to it are refused. A locked field that is not shared stays internal. Only lead, lead_deal, lead_acceptance and lead_rejection fields can be locked; setting locked to true on any other category is refused with 400 validation_error.
Whether an active supporting (co-sell) partner on a deal can see this field: its value, its files and writing it. Default true. When false, a supporting partner never receives the value (it is left out of deal reads and notifications), cannot download its files and is refused with 400 validation_error (not_accessible) when it sends one; the company, the deal's primary partner and a distributor see and write it as usual. Has an effect on lead_deal and lead fields only (a supporting partner sees a lead field's value only as deal rule context).