Skip to main content
GET/tags/:id/companies/

Get companies by tag

You can return all companies including a specific tag.

Attributes

Optional unless marked required

idintegerrequired
A unique identifier for the tag which is given by User automatically.

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/tags/:id/companies/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 777,
"name": "Northwind Traders",
"description": null,
"email": null,
"country": null,
"region": null,
"city": null,
"address": null,
"postal_code": null,
"approx_employees": null,
"created_at": "2026-11-10T13:19:54.251479Z",
"updated_at": "2026-11-10T13:19:54.251504Z",
"attributes": [],
"tags": ,1 item
"employees": [],
"phone_numbers": null,
"company_id": "northwind",
"assigned_to": null
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].idinteger
A unique identifier for the tag which is given by User automatically.
results[].namestring
A tag name.
results[].descriptionstringnullable
A description of a company.
results[].emailstringnullable
A company’s email address.
results[].countrystringnullable
A company country of residence.
results[].regionstringnullable
A company region of residence.
results[].citystringnullable
A company city of residence.
results[].addressstringnullable
A company’s address.
results[].postal_codestringnullable
A postal code according to the address of your company..
results[].approx_employeesintegernullable
An approximate size of your company. Called size in API v2 responses elsewhere.
results[].created_atstring (date-time)
A creation date of a company.
results[].updated_atstring (date-time)
A date of last company update.
results[].attributesarray
Custom company attributes that have a value, each with name, name_std, value, description and value_type.
results[].tagsarray of objects
A list of tags associated with a company
results[].tags[].idinteger
A unique identifier for the tag which is given by User automatically.
results[].tags[].namestring
A tag name.
results[].employeesarray
IDs of the contacts who belong to the company.
results[].phone_numbersarray of stringnullable
A list of phone numbers.
results[].company_idstring
A unique identifier for the company which is given by User automatically.
results[].assigned_tointegernullable
ID of the agent group the company is assigned to.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.