> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.hellotracks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Company

> Retrieve company settings and team configuration.

Use this endpoint to retrieve the company account and organization-level configuration for the authenticated API key. This includes the team configuration used to map member team IDs to team names.

### REQUEST

```shell theme={null}
POST https://api.hellotracks.com/api/getcompany

{
  "data": {}
}
```

This endpoint does not require request parameters.

### RESPONSE

```shell theme={null}
{
  "status": 0,
  "company": {
    "uid": "company123",
    "username": "company@example.com",
    "type": "company",
    "name": "Example Company",
    "email": "ops@example.com",
    "phone": "+14155551234",
    "address": "1 Market St, San Francisco, CA",
    "teams_config": [
      {
        "id": 1,
        "name": "North Team",
        "working_hours": {
          "monday": { "start": 480, "end": 1020 },
          "tuesday": { "start": 480, "end": 1020 },
          "wednesday": { "start": 480, "end": 1020 },
          "thursday": { "start": 480, "end": 1020 },
          "friday": { "start": 480, "end": 1020 },
          "saturday": { "start": 0, "end": 0 },
          "sunday": { "start": 0, "end": 0 },
          "source": "team"
        }
      },
      {
        "id": 2,
        "name": "South Team",
        "working_hours": {
          "source": "default"
        }
      }
    ]
  }
}
```

<ResponseField name="status" type="integer" required>
  Status code. `0` indicates success.
</ResponseField>

<ResponseField name="company" type="object" required>
  Company account object with profile, location, settings, custom field definitions, and team configuration.
</ResponseField>

<ResponseField name="company.teams_config" type="array">
  Array of team configuration objects for the organization. Use this list to map team IDs returned by member, place, and job APIs to team names.
</ResponseField>

<ResponseField name="company.teams_config[].id" type="integer">
  Team ID. This matches the numeric IDs returned in member `teams` arrays.
</ResponseField>

<ResponseField name="company.teams_config[].name" type="string">
  Team display name.
</ResponseField>

<ResponseField name="company.teams_config[].working_hours" type="object">
  Team working hours configuration, when configured.
</ResponseField>

<ResponseField name="company.teams_config[].route" type="object">
  Optional team route start configuration, when configured.
</ResponseField>

### Team ID Lookup

The [Get Members](/api-reference/endpoint/getaccounts) endpoint returns each member's team assignments as numeric IDs:

```json theme={null}
{
  "uid": "abc123",
  "name": "John Doe",
  "teams": [1, 2]
}
```

To show team names, match each value in `teams` against `company.teams_config[].id` from this endpoint.

```json theme={null}
{
  "teams_config": [
    { "id": 1, "name": "North Team" },
    { "id": 2, "name": "South Team" }
  ]
}
```

In this example, member `abc123` belongs to "North Team" and "South Team".

<RequestExample>
  ```bash Get Company theme={null}
  curl -X POST https://api.hellotracks.com/api/getcompany \
    --header 'API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    -d '{
      "data": {}
    }'
  ```
</RequestExample>

### Related Endpoints

* [Get Members](/api-reference/endpoint/getaccounts) - Retrieve member information and member team IDs
* [Edit Member](/api-reference/endpoint/editaccount) - Update member profile and team assignments
* [Get Places](/api-reference/endpoint/getplaces) - Retrieve places and place team IDs
