GET/ companies/
Get companies
You can return a list with all of your companies.
Returns up to 100 companies per page. To get the rest, follow next (see Response pagination).
The list is newest first and takes no filters: page is the only query parameter it reads. Others, such as page_size, ordering, name or custom_id, are ignored and return the whole list. A page past the last one answers 404 with "detail": "Invalid page.". To find one company, use Get company by custom id.
Request
- cURL
- JavaScript
- PHP
- Python
curl -X GET "https://<your_app_subdomain>.user.com/api/public/companies/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"
const response = await fetch(
"https://<your_app_subdomain>.user.com/api/public/companies/",
{
method: "GET",
headers: {
Authorization: "Token <your_64_char_api_key>",
Accept: "*/*; version=2",
},
},
);
const data = await response.json();
console.log(data);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://<your_app_subdomain>.user.com/api/public/companies/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Token <your_64_char_api_key>",
"Accept: */*; version=2",
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
response = requests.get(
"https://<your_app_subdomain>.user.com/api/public/companies/",
headers={
"Authorization": "Token <your_64_char_api_key>",
"Accept": "*/*; version=2",
},
)
print(response.json())
Response examples
- 200 OK
{"count": 1,"next": null,"previous": null,"results": [{"id": 783,"name": "Acme Inc","description": "Online store selling outdoor gear.","email": null,"country": null,"region": null,"city": null,"address": null,"postal_code": null,"size": 10,"created_at": "2026-11-17T14:59:11.697345Z","updated_at": "2026-11-17T14:59:11.697369Z","tags": [],"employees": [],"phone_numbers": null,"custom_id": "acme-inc","assigned_to": null}]}Response fields
Fields returned in the 200 OK response body.
- count
- Number of results across all pages. It can lag behind recent changes; see Response pagination.
- next
- URL of the next page of results. null on the last page.
- previous
- URL of the previous page of results. null on the first page.
- results
- Results on this page.
- results[].
id - A unique identifier for the company which is given by User automatically.
- results[].
name - A company name.
- results[].
description - A description of a company.
- results[].
email - A company’s email address.
- results[].
country - A company country of residence.
- results[].
region - A company region of residence.
- results[].
city - A company city of residence.
- results[].
address - A company’s address.
- results[].
postal_code - A postal code according to the address of your company..
- results[].
size - An approximate size of your company.
- results[].
created_at - A creation date of a company.
- results[].
updated_at - A date of last company update.
- results[].
tags - A list of tags associated with a company
- results[].
employees - IDs of the contacts who belong to the company.
- results[].
phone_numbers - A list of phone numbers.
- results[].
custom_id - The unique identifier for the company which is provided by the client.
- results[].
assigned_to - ID of the agent group the company is assigned to.
- results[].
note
Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.