Appearance
Depot Companies Service Documentation
This service provides endpoints for managing companies, sectors, and sites.
- Version: 1.0.0
Endpoints
Companies
POST /companies/
Summary: Companies - POST / Description: Request to paginate through companies or export company search results as CSV, with optional filtering and sorting. Operation ID: postCompanies
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
page | string | number | No | string | - |
per_page | string | number | No | string | - |
page_token | string | No | string | - |
search_term | string | No | string | - |
starting_letter | string | No | string | - |
include_companies_with_no_sites | boolean | No | true | - |
minimum_site_count | string | number | No | string | - |
only_sites_with_subscribers | boolean | No | true | - |
group_by_starting_letter | boolean | No | true | - |
sort_by | string | No | string | - |
sort_direction | string | No | string | - |
export | boolean | No | true | - |
tokens | - | No | {} | - |
json
{
"page": "string",
"per_page": "string",
"page_token": "string",
"search_term": "string",
"starting_letter": "string",
"include_companies_with_no_sites": true,
"minimum_site_count": "string",
"only_sites_with_subscribers": true,
"group_by_starting_letter": true,
"sort_by": "string",
"sort_direction": "string",
"export": true,
"tokens": {}
}Responses:
200 OK Returns a company results either as paginated list or as a csv.
json
{
"data": [
{
"name": "string",
"company_uuid": "string",
"site_count": 0
}
],
"previous_page_token": "string",
"next_page_token": "string",
"has_more": true,
"total_count": 0,
"total_pages": 0,
"groups": [
{
"letter": "string",
"count": 0
}
]
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
value | - | - | - |
400 Bad Request Returns an error message if the request is invalid
json
{
"message": "string"
}500 Internal Server Error Returns the exception message if something goes wrong
json
{
"message": "string"
}Example usage
curl
curl --location --request POST 'https://api.example.com/companies/' \
--header 'Content-Type: application/json' \
--data-raw '{
"page": "string",
"per_page": "string",
"page_token": "string",
"search_term": "string",
"starting_letter": "string",
"include_companies_with_no_sites": true,
"minimum_site_count": "string",
"only_sites_with_subscribers": true,
"group_by_starting_letter": true,
"sort_by": "string",
"sort_direction": "string",
"export": true,
"tokens": {}
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/companies/");
var json = """
{
"page": "string",
"per_page": "string",
"page_token": "string",
"search_term": "string",
"starting_letter": "string",
"include_companies_with_no_sites": true,
"minimum_site_count": "string",
"only_sites_with_subscribers": true,
"group_by_starting_letter": true,
"sort_by": "string",
"sort_direction": "string",
"export": true,
"tokens": {}
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/companies/", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"page": "string",
"per_page": "string",
"page_token": "string",
"search_term": "string",
"starting_letter": "string",
"include_companies_with_no_sites": true,
"minimum_site_count": "string",
"only_sites_with_subscribers": true,
"group_by_starting_letter": true,
"sort_by": "string",
"sort_direction": "string",
"export": true,
"tokens": {}
}),
});
const data = await response.json();
console.log(data);POST /companies/channels
Summary: Companies - POST /channels Description: Request to paginate through channel-linked sites or export them as CSV. Operation ID: postCompaniesChannels
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
page | string | number | No | string | - |
per_page | string | number | No | string | - |
page_token | string | No | string | - |
company_uuid | string | No | string | - |
review_source | string | No | string | - |
export | boolean | No | true | - |
tokens | - | No | {} | - |
json
{
"page": "string",
"per_page": "string",
"page_token": "string",
"company_uuid": "string",
"review_source": "string",
"export": true,
"tokens": {}
}Responses:
200 OK Returns a single channel results either as paginated list or as a csv.
json
{
"data": [
{
"company_uuid": "string",
"company_name": "string",
"site_uuid": "string",
"site_name": "string",
"place_id": "string",
"review_type": "string",
"profile_uuid": "string"
}
],
"previous_page_token": "string",
"next_page_token": "string",
"has_more": true,
"total_count": 0,
"total_pages": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
value | - | - | - |
400 Bad Request Validation error
json
{
"message": "string"
}500 Internal Server Error Server error
json
{
"message": "string"
}Example usage
curl
curl --location --request POST 'https://api.example.com/companies/channels' \
--header 'Content-Type: application/json' \
--data-raw '{
"page": "string",
"per_page": "string",
"page_token": "string",
"company_uuid": "string",
"review_source": "string",
"export": true,
"tokens": {}
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/companies/channels");
var json = """
{
"page": "string",
"per_page": "string",
"page_token": "string",
"company_uuid": "string",
"review_source": "string",
"export": true,
"tokens": {}
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/companies/channels", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"page": "string",
"per_page": "string",
"page_token": "string",
"company_uuid": "string",
"review_source": "string",
"export": true,
"tokens": {}
}),
});
const data = await response.json();
console.log(data);GET /companies/count
Summary: Companies - GET /count Description: Endpoint to get the total count of companies in the database. Operation ID: getCompaniesCount
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Responses:
200 OK Returns the total count of companies in the database
json
{
"total_count": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
total_count | number | - | - |
500 Internal Server Error Returns the exception message if something goes wrong
json
{
"message": "string"
}Example usage
curl
curl --location --request GET 'https://api.example.com/companies/count'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/companies/count");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/companies/count", {
method: "GET",
});
const data = await response.json();
console.log(data);GET /companies/subscriptions
Summary: Companies - GET /subscriptions Description: Endpoint to get all of the companies that a client is subscribed to. Operation ID: getCompaniesSubscriptions
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Responses:
200 OK Returns a list of companies that the client is subscribed to
json
{
"subscriptions": [
{
"company_uuid": "string",
"name": "string",
"types": [
"string"
]
}
]
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
subscriptions | array<object> | - | - |
subscriptions[].company_uuid | string | - | - |
subscriptions[].name | string | - | - |
subscriptions[].types | array<string> | - | - |
400 Bad Request Returns an error message if the request is invalid
json
{
"message": "string"
}404 Not Found Returns an error message if no subscriptions are found for the client
json
{
"message": "string"
}500 Internal Server Error Returns the exception message if something goes wrong
json
{
"message": "string"
}Example usage
curl
curl --location --request GET 'https://api.example.com/companies/subscriptions'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/companies/subscriptions");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/companies/subscriptions", {
method: "GET",
});
const data = await response.json();
console.log(data);Company
GET /company/{company_uuid}
Summary: Company - GET /:uuid Description: Get company information based on id Operation ID: getCompanyByCompany_uuid
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
company_uuid | path | string | Yes | - |
Responses:
200 OK Returns the company information
json
{
"name": "string",
"site_count": 0,
"uuid": "string"
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
name | string | - | - |
site_count | number | - | - |
uuid | string | - | - |
404 Not Found Returns a message if the company is not found
json
{
"message": "string"
}500 Internal Server Error Returns the exception message if something goes wrong
json
{
"message": "string"
}Example usage
curl
curl --location --request GET 'https://api.example.com/company/string'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/company/string");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/company/string", {
method: "GET",
});
const data = await response.json();
console.log(data);GET /company/{company_uuid}/sectors
Summary: Company - GET /:company_uuid/sectors Description: Get all unique sectors for the sites attached to a company. Operation ID: getCompanyByCompany_uuidSectors
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
company_uuid | path | string | Yes | - |
Responses:
200 OK Returns the deduplicated sectors attached to the company's sites.
json
{
"name": "string",
"site_count": 0,
"sector_count": 0,
"sectors": [
{
"uuid": "string",
"name": "string"
}
]
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
name | string | - | - |
site_count | number | - | - |
sector_count | number | - | - |
sectors | array<object> | - | - |
sectors[].uuid | string | - | - |
sectors[].name | string | - | - |
404 Not Found Returns a message if the company is not found
json
{
"message": "string"
}500 Internal Server Error Returns the exception message if something goes wrong
json
{
"message": "string"
}Example usage
curl
curl --location --request GET 'https://api.example.com/company/string/sectors'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/company/string/sectors");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/company/string/sectors", {
method: "GET",
});
const data = await response.json();
console.log(data);GET /company/{company_uuid}/sites/
Summary: Company - GET /:uuid/sites Description: returns sites information for specified company Operation ID: getCompanyByCompany_uuidSites
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
company_uuid | path | string | Yes | - |
export | query | boolean | No | - |
Responses:
200 OK Returns the company's sites either as a JSON list or as a CSV export.
json
{
"name": "string",
"site_count": 0,
"sites": [
{
"id": "string",
"name": "string",
"place_id": "string",
"channels": [
{
"review_source": "string",
"profile_id": "string"
}
],
"sector": "string"
}
]
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
value | - | - | - |
404 Not Found Returns a message if the company is not found
json
{
"message": "string"
}500 Internal Server Error Returns the exception message if something goes wrong
json
{
"message": "string"
}Example usage
curl
curl --location --request GET 'https://api.example.com/company/string/sites/?export=true'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/company/string/sites/?export=true");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/company/string/sites/?export=true", {
method: "GET",
});
const data = await response.json();
console.log(data);POST /company/{company_uuid}/subscribe
Summary: Company - POST /subscribe Description: Request to subscribe to a company. Operation ID: postCompanyByCompany_uuidSubscribe
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
company_uuid | path | string | Yes | - |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
review_source | string | Yes | string | - |
json
{
"review_source": "string"
}Responses:
200 OK Results of the company profiles for the review source subscribed to
json
{
"profiles": {},
"message": "string"
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
profiles | - | - | - |
message | string | - | - |
404 Not Found Returns a message if the company is not found
json
{
"profiles": {},
"message": "string"
}500 Internal Server Error Returns the exception message if something goes wrong
json
{
"message": "string"
}Example usage
curl
curl --location --request POST 'https://api.example.com/company/string/subscribe' \
--header 'Content-Type: application/json' \
--data-raw '{
"review_source": "string"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/company/string/subscribe");
var json = """
{
"review_source": "string"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/company/string/subscribe", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"review_source": "string"
}),
});
const data = await response.json();
console.log(data);POST /company/{company_uuid}/unsubscribe
Summary: Company - POST /unsubscribe Description: Request to unsubscribe to a company and the review source. Operation ID: postCompanyByCompany_uuidUnsubscribe
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
company_uuid | path | string | Yes | - |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
review_source | string | Yes | string | - |
json
{
"review_source": "string"
}Responses:
200 OK Results of the company profiles for the review source subscribed to
json
{
"profiles": {},
"message": "string"
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
profiles | - | - | - |
message | string | - | - |
404 Not Found Returns a message if the company is not found
json
{
"message": "string",
"profiles": {}
}500 Internal Server Error Returns the exception message if something goes wrong
json
{
"message": "string"
}Example usage
curl
curl --location --request POST 'https://api.example.com/company/string/unsubscribe' \
--header 'Content-Type: application/json' \
--data-raw '{
"review_source": "string"
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/company/string/unsubscribe");
var json = """
{
"review_source": "string"
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/company/string/unsubscribe", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"review_source": "string"
}),
});
const data = await response.json();
console.log(data);GET /company/profile/{profileUuid}
Summary: Company - GET /profile/:profileUuid Description: Request to get the company details by profile id Operation ID: getCompanyProfileByProfileUuid
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
profileUuid | path | string | Yes | - |
Responses:
200 OK Successfully returned details of the company
json
{
"company_uuid": "string",
"name": "string",
"site": {}
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
company_uuid | string | - | - |
name | string | - | - |
site | - | - | - |
404 Not Found Unable to find the company
json
{
"message": "string"
}500 Internal Server Error Something went wrong - internal server error
json
{
"message": {}
}Example usage
curl
curl --location --request GET 'https://api.example.com/company/profile/string'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/company/profile/string");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/company/profile/string", {
method: "GET",
});
const data = await response.json();
console.log(data);Non-Admin
GET /sectors/
Summary: Sectors - GET / Description: Get all sectors in DB. Admin callers (header x-depot-admin: true) additionally receive each sector's config_uuid. Operation ID: getSectors
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
x-depot-admin | header | boolean | No | When true, include admin-only fields such as config_uuid in the response |
Responses:
200 OK Array of all sectors.
json
{
"data": [
{
"uuid": "string",
"name": "string",
"config_uuid": "string"
}
]
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
data | array<object> | - | - |
data[].uuid | string | UUID of the sector | - |
data[].name | string | Name of the sector | - |
data[].config_uuid | string | Mantle config UUID for the sector. Returned for admin callers only. | - |
500 Internal Server Error Something went wrong - internal server error
json
{
"message": {}
}Example usage
curl
curl --location --request GET 'https://api.example.com/sectors/'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/sectors/");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/sectors/", {
method: "GET",
});
const data = await response.json();
console.log(data);GET /sites/count
Summary: Sites - GET /count Description: Endpoint to get the total count of sites in the database. Operation ID: getSitesCount
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Responses:
200 OK Returns the total count of sites in the database
json
{
"total_count": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
total_count | number | - | - |
500 Internal Server Error Returns the exception message if something goes wrong
json
{
"message": "string"
}Example usage
curl
curl --location --request GET 'https://api.example.com/sites/count'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/sites/count");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/sites/count", {
method: "GET",
});
const data = await response.json();
console.log(data);GET /sites/profile/{profileUuid}
Summary: Sites - GET /site-by-profile/:id Description: Request to get the site details by profile id Operation ID: getSitesProfileByProfileUuid
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
profileUuid | path | string | Yes | - |
Responses:
200 OK Successfully returned details of the site
json
{}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
value | - | - | - |
404 Not Found Unable to find the site
json
{
"message": "string"
}500 Internal Server Error Something went wrong - interal server error
json
{
"message": {}
}Example usage
curl
curl --location --request GET 'https://api.example.com/sites/profile/string'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/sites/profile/string");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/sites/profile/string", {
method: "GET",
});
const data = await response.json();
console.log(data);GET /sites/site-sector/{profileUuid}
Summary: Sites - GET /site-sector/:id Description: Request to get the site details by profile id Operation ID: getSitesSite-sectorByProfileUuid
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
profileUuid | path | string | Yes | - |
Responses:
200 OK Successfully returned details of the site
json
{
"profile_uuid": "string",
"sector_uuid": "string"
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
profile_uuid | string | - | - |
sector_uuid | string | - | - |
404 Not Found Unable to find the site
json
{
"message": "string"
}500 Internal Server Error Something went wrong - interal server error
json
{
"message": {}
}Example usage
curl
curl --location --request GET 'https://api.example.com/sites/site-sector/string'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/sites/site-sector/string");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/sites/site-sector/string", {
method: "GET",
});
const data = await response.json();
console.log(data);Site Place Details
POST /site-place-details/
Summary: Site Place Details - POST /site-place-details Description: Search, paginate, or export site place details, filtered by company_uuid, site_uuid, place_id, and a formatted-address search_term. Operation ID: postSite-place-details
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| No parameters to pass. |
Request Body (application/json):
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
per_page | string | number | No | string | - |
page_token | string | No | string | - |
company_uuid | string | No | string | - |
site_uuid | string | No | string | - |
place_id | string | No | string | - |
search_term | string | No | string | - |
export | boolean | No | true | - |
tokens | - | No | {} | - |
json
{
"per_page": "string",
"page_token": "string",
"company_uuid": "string",
"site_uuid": "string",
"place_id": "string",
"search_term": "string",
"export": true,
"tokens": {}
}Responses:
200 OK Returns site place details either as a paginated list or as a CSV.
json
{
"data": [
{
"company_uuid": "string",
"site_uuid": "string",
"name": "string",
"place_id": "string",
"formatted_address": "string",
"location_name": "string"
}
],
"previous_page_token": "string",
"next_page_token": "string",
"has_more": true,
"total_count": 0,
"total_pages": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
value | - | - | - |
400 Bad Request Validation error
json
{
"message": "string"
}404 Not Found No matching records
json
{
"message": "string"
}500 Internal Server Error Server error
json
{
"message": "string"
}Example usage
curl
curl --location --request POST 'https://api.example.com/site-place-details/' \
--header 'Content-Type: application/json' \
--data-raw '{
"per_page": "string",
"page_token": "string",
"company_uuid": "string",
"site_uuid": "string",
"place_id": "string",
"search_term": "string",
"export": true,
"tokens": {}
}'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.example.com/site-place-details/");
var json = """
{
"per_page": "string",
"page_token": "string",
"company_uuid": "string",
"site_uuid": "string",
"place_id": "string",
"search_term": "string",
"export": true,
"tokens": {}
}
""";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/site-place-details/", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"per_page": "string",
"page_token": "string",
"company_uuid": "string",
"site_uuid": "string",
"place_id": "string",
"search_term": "string",
"export": true,
"tokens": {}
}),
});
const data = await response.json();
console.log(data);GET /site-place-details/{place_id}
Summary: Site Place Details - GET /site-place-details/:place_id Description: Get the full raw site place details record for a given place_id. Operation ID: getSite-place-detailsByPlace_id
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
place_id | path | string | Yes | - |
Responses:
200 OK The full raw site place details record.
json
{
"id": "string",
"company_uuid": "string",
"site_uuid": "string",
"name": "string",
"place_details": {},
"place_id": "string"
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
id | string | - | - |
company_uuid | string | - | - |
site_uuid | string | - | - |
name | string | - | - |
place_details | - | - | - |
place_id | string | - | - |
404 Not Found No matching record
json
{
"message": "string"
}500 Internal Server Error Server error
json
{
"message": "string"
}Example usage
curl
curl --location --request GET 'https://api.example.com/site-place-details/string'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/site-place-details/string");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/site-place-details/string", {
method: "GET",
});
const data = await response.json();
console.log(data);GET /site-place-details/count
Summary: Site Place Details - GET /site-place-details/count Description: Get the total count of site place details records, optionally filtered by company_uuid. Operation ID: getSite-place-detailsCount
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
company_uuid | query | string | No | - |
Responses:
200 OK The count of site place details records, optionally filtered by company_uuid.
json
{
"total_count": 0
}Response Parameters
| Property | Type | Description | Enum |
|---|---|---|---|
total_count | number | - | - |
400 Bad Request Validation error
json
{
"message": "string"
}500 Internal Server Error Server error
json
{
"message": "string"
}Example usage
curl
curl --location --request GET 'https://api.example.com/site-place-details/count?company_uuid=string'c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/site-place-details/count?company_uuid=string");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);ts
const response = await fetch("https://api.example.com/site-place-details/count?company_uuid=string", {
method: "GET",
});
const data = await response.json();
console.log(data);