Get the company
curl --request GET \
--url https://api.hellotracks.com/v1/company \
--header 'API-Key: <api-key>'import requests
url = "https://api.hellotracks.com/v1/company"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://api.hellotracks.com/v1/company', 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.hellotracks.com/v1/company",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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.hellotracks.com/v1/company"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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.hellotracks.com/v1/company")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hellotracks.com/v1/company")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"company": {
"id": "c0c0c0",
"type": "company",
"username": "c0c0c0",
"name": "Bay Plumbing Co.",
"email": "office@example.com",
"phone": "+1 415 555 0100",
"color": "#1e2a3a",
"address": "1 Market St, San Francisco, CA 94105",
"city": "San Francisco",
"postalCode": "94105",
"state": "CA",
"countryCode": "US",
"location": {
"lat": 37.7941,
"lng": -122.395,
"ts": 1735689600000
},
"settings": {
"apiEnabled": true,
"workersCreateJobs": true,
"workersEditJob": false,
"workersCreatePlaces": false,
"workersViewPlaces": false,
"workersOptimizeRoute": false,
"workersViewJobCalendar": false,
"assistantEnabled": false,
"tripsEnabled": true,
"jobGroupsEnabled": false,
"snoozeNotifications": false,
"routeCalcIncludeCompany": false,
"etaPageDefaultShowWorkerName": false,
"etaPageDefaultShowMap": false,
"workersEditTrips": false,
"tripsRequireApproval": false,
"workersEditWorkingHours": false,
"workersWebForms": false,
"workersAllowedTrackingOff": false,
"autoCheckins": true
},
"teamsConfig": [
{
"id": 1,
"name": "North crew",
"working_hours": {
"monday": {
"start": 800,
"end": 1700
},
"tuesday": {
"start": 800,
"end": 1700
},
"wednesday": {
"start": 800,
"end": 1700
},
"thursday": {
"start": 800,
"end": 1700
},
"friday": {
"start": 800,
"end": 1700
},
"saturday": {
"start": 0,
"end": 0
},
"sunday": {
"start": 0,
"end": 0
},
"source": "team"
},
"route": {
"start_lat": 37.7941,
"start_lng": -122.395
}
}
]
}
},
"error": null,
"meta": {
"path": "/v1/company",
"method": "GET"
}
}{
"data": null,
"error": {
"code": "invalid_api_key",
"message": "Invalid Hellotracks API key."
},
"meta": {
"path": "/jobs",
"method": "GET"
}
}{
"data": null,
"error": {
"code": "forbidden",
"message": "No permission."
},
"meta": {
"path": "/jobs",
"method": "GET"
}
}{
"data": null,
"error": {
"code": "throttled",
"message": "Too many requests."
},
"meta": {
"path": "/jobs",
"method": "GET"
}
}Company
Get the company
Returns the key’s company: contact details, address, location, settings and teams. Any member of the company may call it.
GET
/
company
Get the company
curl --request GET \
--url https://api.hellotracks.com/v1/company \
--header 'API-Key: <api-key>'import requests
url = "https://api.hellotracks.com/v1/company"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://api.hellotracks.com/v1/company', 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.hellotracks.com/v1/company",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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.hellotracks.com/v1/company"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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.hellotracks.com/v1/company")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hellotracks.com/v1/company")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"company": {
"id": "c0c0c0",
"type": "company",
"username": "c0c0c0",
"name": "Bay Plumbing Co.",
"email": "office@example.com",
"phone": "+1 415 555 0100",
"color": "#1e2a3a",
"address": "1 Market St, San Francisco, CA 94105",
"city": "San Francisco",
"postalCode": "94105",
"state": "CA",
"countryCode": "US",
"location": {
"lat": 37.7941,
"lng": -122.395,
"ts": 1735689600000
},
"settings": {
"apiEnabled": true,
"workersCreateJobs": true,
"workersEditJob": false,
"workersCreatePlaces": false,
"workersViewPlaces": false,
"workersOptimizeRoute": false,
"workersViewJobCalendar": false,
"assistantEnabled": false,
"tripsEnabled": true,
"jobGroupsEnabled": false,
"snoozeNotifications": false,
"routeCalcIncludeCompany": false,
"etaPageDefaultShowWorkerName": false,
"etaPageDefaultShowMap": false,
"workersEditTrips": false,
"tripsRequireApproval": false,
"workersEditWorkingHours": false,
"workersWebForms": false,
"workersAllowedTrackingOff": false,
"autoCheckins": true
},
"teamsConfig": [
{
"id": 1,
"name": "North crew",
"working_hours": {
"monday": {
"start": 800,
"end": 1700
},
"tuesday": {
"start": 800,
"end": 1700
},
"wednesday": {
"start": 800,
"end": 1700
},
"thursday": {
"start": 800,
"end": 1700
},
"friday": {
"start": 800,
"end": 1700
},
"saturday": {
"start": 0,
"end": 0
},
"sunday": {
"start": 0,
"end": 0
},
"source": "team"
},
"route": {
"start_lat": 37.7941,
"start_lng": -122.395
}
}
]
}
},
"error": null,
"meta": {
"path": "/v1/company",
"method": "GET"
}
}{
"data": null,
"error": {
"code": "invalid_api_key",
"message": "Invalid Hellotracks API key."
},
"meta": {
"path": "/jobs",
"method": "GET"
}
}{
"data": null,
"error": {
"code": "forbidden",
"message": "No permission."
},
"meta": {
"path": "/jobs",
"method": "GET"
}
}{
"data": null,
"error": {
"code": "throttled",
"message": "Too many requests."
},
"meta": {
"path": "/jobs",
"method": "GET"
}
}