Get People For Company Id
Get all people/contacts associated with a specific company.
Retrieves the IDs of all people records that are linked to the specified company. Useful for understanding the organizational structure and key contacts at a company.
Purpose:
- View all contacts at a specific company
- Build organizational charts and reporting structures
- Identify key stakeholders and decision makers
- Support account planning and relationship mapping
Parameters:
company_id(str): The unique identifier of the company (format: 'c-xxxxx')
Returns:
- dict: Dictionary with 'ids' key containing list of person IDs
Response Structure:
{
"ids": ["p-jand-f47ac10b", "p-alic-f47ac10b", "p-bobm-f47ac10b"]
}
Error Responses:
- 400: Invalid company ID format
- 401: Unauthorized - invalid or missing authentication
- 500: Internal server error
Example:
GET /people/company/c-log-f47ac10b
Response:
{
"ids": ["p-jand-f47ac10b", "p-sara-f47ac10b", "p-mike-f47ac10b"]
}
Path Parameters
- Type: stringcompany
_id requiredThe ID of the company to get its related people
Responses
- application/json
- application/json
Request Example for get/company/{company_id}
curl 'https://crm.dreamhub.ai/api/v1/people/company/{company_id}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
null
