---
title: "Group contacts into companies"
description: "Link contacts to the company they work for, create or import companies, keep them in sync from your server, and give an account its own reply-time SLA."
url: https://help.gleap.ai/fr/articles/343-group-contacts-into-companies
collection: "Contacts and pipelines"
updated: 2026-11-07
language: fr
alternates: [en]
---

# Group contacts into companies

Link contacts to the company they work for, create or import companies, keep them in sync from your server, and give an account its own reply-time SLA.

If you sell to businesses, the useful unit isn't the person who happened to write in, it's the account behind them. Companies group your contacts so you can see every conversation from an account and treat some accounts differently from others.

Companies are under **Contacts → Companies**.

### Link contacts from your product

Usually a contact joins a company when your app identifies the user and sends a company with it:

```javascript
Gleap.identify("user-123", {
  name: "Ada Lovelace",
  email: "user@example.com",
  company: { id: "acme", name: "Acme Boards" },
});
```

The `id` is what matters. It creates the company if it doesn't exist and links the contact to it. Send your own account ID rather than the display name, so a company that renames itself doesn't split into two. A name without an ID does nothing. [Identify users and send attributes and events](https://help.gleap.ai/en/articles/230-identify-users-and-send-attributes-and-events.md) covers the rest of the call.

### Create a company by hand

1.  Go to **Contacts → Companies** and click **New company**.
    
2.  Enter the **Company ID**. Use your own system's identifier; it can't be changed later.
    
3.  Optionally enter the **Company name**.
    
4.  Click **Create company**.
    

To add people, open the company and use **Add a person** in the **…** menu, or the **People** tab. On a contact's page you can also set the company from the **Company** row in the sidebar.

### Import companies from a CSV file

To load many companies at once, for example from your CRM or ERP:

1.  Go to **Contacts**, open the import menu and choose **Import companies from CSV**.
    
2.  Upload your file and map each column to a company field. The **Company ID** column is required. Any company attribute you've defined can be a target.
    
3.  Check the preview and start the import.
    

A row whose company ID already exists updates that company; a new ID creates one. Running the same file again doesn't duplicate anything. Tags in the file replace the company's tags, while address and custom data are added to what's there.

### Keep companies in sync from your server

For a nightly sync, send your companies from your server with the Admin API: one company per call (`PUT /admin/companies/{companyId}`), or up to 1,000 per call (`POST /admin/companies/bulk`). Both authenticate with an API key from **Settings → Developer → API keys** and need the Team plan or higher.

```bash
curl -X POST https://api.gleap.io/admin/companies/bulk \
  -H "Api-Token: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "companies": [ { "companyId": "acme", "name": "Acme Boards", "plan": "Gold", "ownerEmail": "csm@yourcompany.com", "customData": { "modules": ["Kassa", "DMS"] } } ] }'
```

A name set this way is never overwritten by names your app sends with `identify`. `ownerEmail` sets the company's owner, one of your teammates. The [developer docs](https://docs.gleap.ai/documentation/server/rest-api) list every field.

### What a company page shows

The tabs are **Overview**, **Conversations** (everything anyone there has written to you), **People**, **Notes** and **Files**. The sidebar holds the company's attributes, its **Owner**, its **Tags** and its **Pipelines**.

Conversations across the whole account is the one people underestimate. "Has anyone at this customer already reported this?" can't be answered from one contact's history.

![Companies list screen in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/6mLOXQLTvL3f1qzMbSAzjSaFIpDRC42Vjd1QBpt0moz6cBO8fLcjq14HPdLXeKiRdV880P94hMc.png)

![The fictional Northstar Labs company and its linked contact in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/U0PlnUnlY1J6sJeqk5XX2jdm02jIp58MgAHAXekchhmQU831LNmxb4abLZG6OQcTvBiN5c49Uek.png)

### Company fields

Every project starts with **Company ID**, **Company name**, **Domain**, **Plan**, **Value** and **SLA (seconds)**. They're editable on the company page, and you can add your own the same way you add contact attributes. Your own attributes can hold text, numbers, dates, choices, and lists such as the modules a customer has licensed.

### Give an account its own SLA

> **Info:** Ticket SLA timers run on the Pro plan and up. On other plans the field can be filled in, but no timer starts.

**SLA (seconds)** sets how long a first reply may take for anyone at that company. Set 3600 and their conversations escalate after an hour. When several SLAs apply to the same conversation, the most specific wins:

1.  the company's SLA,
    
2.  then the assigned team's default,
    
3.  then the contact's own SLA,
    
4.  then the project default.
    

A company or contact SLA applies even when the project-level SLA is switched off, so you can run escalations for your enterprise accounts only. If the project SLA is limited to certain ticket types, that limit still applies. The timer stops when an agent replies.

### Where companies show up elsewhere

A ticket's sidebar shows the company behind the contact. Pipelines can track companies rather than contacts. Workflows and Kai can read company attributes, which is how "what plan is this account on?" gets answered without anyone looking it up.

### Related

-   [Identify users and send attributes and events](https://help.gleap.ai/en/articles/230-identify-users-and-send-attributes-and-events.md)
    
-   [Import and export your content and contacts](https://help.gleap.ai/en/articles/234-import-and-export-your-content-and-contacts.md)
    
-   [What Gleap knows about a contact](https://help.gleap.ai/en/articles/341-what-gleap-knows-about-a-contact.md)
    
-   [Set operating hours and reply-time targets](https://help.gleap.ai/en/articles/296-set-operating-hours-and-reply-time-targets.md)
    
-   [Track onboarding, renewals and deals with pipelines](https://help.gleap.ai/en/articles/332-track-onboarding-renewals-and-deals-with-pipelines.md)
