Get the company navigation settings
curl --request GET \
--url https://api.journeybee.io/v1/navigation/preferences \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.journeybee.io/v1/navigation/preferences"
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/navigation/preferences', 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/navigation/preferences",
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/navigation/preferences"
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/navigation/preferences")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/navigation/preferences")
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{
"companyName": "<string>",
"context": "<string>",
"companyRevision": 1073741823,
"items": [
{
"target": {
"kind": "module",
"module": "home"
},
"href": "<string>",
"label": "<string>",
"labelIsMessageId": true,
"id": "home",
"hidden": true,
"overrides": [
"target"
],
"viewVisibility": "personal"
}
],
"hasCustomOrder": true,
"unavailableIds": [
"home"
],
"destinations": [
{
"target": {
"kind": "module",
"module": "home"
},
"href": "<string>",
"label": "<string>",
"labelIsMessageId": true,
"viewVisibility": "personal"
}
],
"effective": {
"configured": true,
"items": [
{
"target": {
"kind": "module",
"module": "home"
},
"href": "<string>",
"label": "<string>",
"labelIsMessageId": true,
"id": "home",
"viewVisibility": "personal"
}
]
}
}Navigation
Get the company navigation settings
Returns the company default menu’s settings: every item with what the company changed, the destinations an item can point to, ids no longer available, the effective result, and the context and companyRevision that previewNavigationPreferences and updateNavigationPreferences must echo. Needs a company admin. Object-type destinations are listed only to a credential that may use the objects API, and partner, lead and deal saved views only to one holding that resource’s read grant.
GET
/
navigation
/
preferences
Get the company navigation settings
curl --request GET \
--url https://api.journeybee.io/v1/navigation/preferences \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.journeybee.io/v1/navigation/preferences"
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/navigation/preferences', 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/navigation/preferences",
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/navigation/preferences"
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/navigation/preferences")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/navigation/preferences")
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{
"companyName": "<string>",
"context": "<string>",
"companyRevision": 1073741823,
"items": [
{
"target": {
"kind": "module",
"module": "home"
},
"href": "<string>",
"label": "<string>",
"labelIsMessageId": true,
"id": "home",
"hidden": true,
"overrides": [
"target"
],
"viewVisibility": "personal"
}
],
"hasCustomOrder": true,
"unavailableIds": [
"home"
],
"destinations": [
{
"target": {
"kind": "module",
"module": "home"
},
"href": "<string>",
"label": "<string>",
"labelIsMessageId": true,
"viewVisibility": "personal"
}
],
"effective": {
"configured": true,
"items": [
{
"target": {
"kind": "module",
"module": "home"
},
"href": "<string>",
"label": "<string>",
"labelIsMessageId": true,
"id": "home",
"viewVisibility": "personal"
}
]
}
}Authorizations
Response
200 - application/json
Default Response