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

# Get Company

> Retrieve details of a specific company by its ID

## Overview

This endpoint allows you to retrieve the details of a company from Cometly.

## Path Parameters

**id** `integer` *required*

The unique identifier of the company to retrieve

## Response

### Success Response

Returns the company object directly (not wrapped in a `data` property).

**id** `string`

The unique identifier of the company

**domain** `string | null`

The domain associated with this company. `null` if the company was created from a customer-supplied external ID with no associated email domain, or if its domain claim was later released via [Update Company](https://docs.cometly.com/api-reference/endpoint/update-company.md).

**external\_id** `string | null`

The customer-supplied external ID associated with this company (your own account/company identifier). `null` if the company was created from an email domain alone, or if its external ID claim was later released via [Update Company](https://docs.cometly.com/api-reference/endpoint/update-company.md).

**name** `string`

The name associated with this company

### Error Response

**message** `string`

Error description explaining what went wrong

## Example Requests

```bash cURL theme={null}
curl https://app.cometly.com/public-api/v1/companies/12345 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json"
```

```javascript JavaScript theme={null}
const companyId = 12345;
const response = await fetch(`https://app.cometly.com/public-api/v1/companies/${companyId}`, {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
```

```php PHP theme={null}
<?php
$companyId = 12345;
$url = 'https://app.cometly.com/public-api/v1/companies/' . $companyId;
$headers = [
    'Authorization: Bearer YOUR_API_KEY',
    'Accept: application/json',
    'Content-Type: application/json'
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);
?>
```

```python Python theme={null}
import requests

company_id = 12345
url = f'https://app.cometly.com/public-api/v1/companies/{company_id}'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)
```

## Status Codes

| Status Code | Description |
| - | - |
| 200 | Company successfully retrieved |
| 401 | Missing or invalid API key |
| 403 | API key doesn't have permission or subscription is inactive |
| 404 | Company not found |
| 422 | Invalid company ID provided |
| 429 | Too many requests - rate limit exceeded. See [Rate Limiting](https://docs.cometly.com/introduction/rate-limiting.md) |

## Notes

* **Rate Limit**: This endpoint has a limit of **30 requests per minute** per Space. See [Rate Limiting](https://docs.cometly.com/introduction/rate-limiting.md) for details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.