Skip to content

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:

NameInTypeRequiredDescription
No parameters to pass.

Request Body (application/json):

NameTypeRequiredExampleDescription
pagestring | numberNostring-
per_pagestring | numberNostring-
page_tokenstringNostring-
search_termstringNostring-
starting_letterstringNostring-
include_companies_with_no_sitesbooleanNotrue-
minimum_site_countstring | numberNostring-
only_sites_with_subscribersbooleanNotrue-
group_by_starting_letterbooleanNotrue-
sort_bystringNostring-
sort_directionstringNostring-
exportbooleanNotrue-
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

PropertyTypeDescriptionEnum
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:

NameInTypeRequiredDescription
No parameters to pass.

Request Body (application/json):

NameTypeRequiredExampleDescription
pagestring | numberNostring-
per_pagestring | numberNostring-
page_tokenstringNostring-
company_uuidstringNostring-
review_sourcestringNostring-
exportbooleanNotrue-
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

PropertyTypeDescriptionEnum
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:

NameInTypeRequiredDescription
No parameters to pass.

Responses:

200 OK Returns the total count of companies in the database

json
{
  "total_count": 0
}

Response Parameters

PropertyTypeDescriptionEnum
total_countnumber--

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:

NameInTypeRequiredDescription
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

PropertyTypeDescriptionEnum
subscriptionsarray<object>--
subscriptions[].company_uuidstring--
subscriptions[].namestring--
subscriptions[].typesarray<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:

NameInTypeRequiredDescription
company_uuidpathstringYes-

Responses:

200 OK Returns the company information

json
{
  "name": "string",
  "site_count": 0,
  "uuid": "string"
}

Response Parameters

PropertyTypeDescriptionEnum
namestring--
site_countnumber--
uuidstring--

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:

NameInTypeRequiredDescription
company_uuidpathstringYes-

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

PropertyTypeDescriptionEnum
namestring--
site_countnumber--
sector_countnumber--
sectorsarray<object>--
sectors[].uuidstring--
sectors[].namestring--

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:

NameInTypeRequiredDescription
company_uuidpathstringYes-
exportquerybooleanNo-

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

PropertyTypeDescriptionEnum
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:

NameInTypeRequiredDescription
company_uuidpathstringYes-

Request Body (application/json):

NameTypeRequiredExampleDescription
review_sourcestringYesstring-
json
{
  "review_source": "string"
}

Responses:

200 OK Results of the company profiles for the review source subscribed to

json
{
  "profiles": {},
  "message": "string"
}

Response Parameters

PropertyTypeDescriptionEnum
profiles---
messagestring--

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:

NameInTypeRequiredDescription
company_uuidpathstringYes-

Request Body (application/json):

NameTypeRequiredExampleDescription
review_sourcestringYesstring-
json
{
  "review_source": "string"
}

Responses:

200 OK Results of the company profiles for the review source subscribed to

json
{
  "profiles": {},
  "message": "string"
}

Response Parameters

PropertyTypeDescriptionEnum
profiles---
messagestring--

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:

NameInTypeRequiredDescription
profileUuidpathstringYes-

Responses:

200 OK Successfully returned details of the company

json
{
  "company_uuid": "string",
  "name": "string",
  "site": {}
}

Response Parameters

PropertyTypeDescriptionEnum
company_uuidstring--
namestring--
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:

NameInTypeRequiredDescription
x-depot-adminheaderbooleanNoWhen 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

PropertyTypeDescriptionEnum
dataarray<object>--
data[].uuidstringUUID of the sector-
data[].namestringName of the sector-
data[].config_uuidstringMantle 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:

NameInTypeRequiredDescription
No parameters to pass.

Responses:

200 OK Returns the total count of sites in the database

json
{
  "total_count": 0
}

Response Parameters

PropertyTypeDescriptionEnum
total_countnumber--

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:

NameInTypeRequiredDescription
profileUuidpathstringYes-

Responses:

200 OK Successfully returned details of the site

json
{}

Response Parameters

PropertyTypeDescriptionEnum
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:

NameInTypeRequiredDescription
profileUuidpathstringYes-

Responses:

200 OK Successfully returned details of the site

json
{
  "profile_uuid": "string",
  "sector_uuid": "string"
}

Response Parameters

PropertyTypeDescriptionEnum
profile_uuidstring--
sector_uuidstring--

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:

NameInTypeRequiredDescription
No parameters to pass.

Request Body (application/json):

NameTypeRequiredExampleDescription
per_pagestring | numberNostring-
page_tokenstringNostring-
company_uuidstringNostring-
site_uuidstringNostring-
place_idstringNostring-
search_termstringNostring-
exportbooleanNotrue-
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

PropertyTypeDescriptionEnum
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:

NameInTypeRequiredDescription
place_idpathstringYes-

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

PropertyTypeDescriptionEnum
idstring--
company_uuidstring--
site_uuidstring--
namestring--
place_details---
place_idstring--

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:

NameInTypeRequiredDescription
company_uuidquerystringNo-

Responses:

200 OK The count of site place details records, optionally filtered by company_uuid.

json
{
  "total_count": 0
}

Response Parameters

PropertyTypeDescriptionEnum
total_countnumber--

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);