> ## 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

<ParamField path="id" type="integer" required>
  The unique identifier of the company to retrieve
</ParamField>

## Response

### Success Response

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

<ResponseField name="id" type="integer">
  The unique identifier of the company
</ResponseField>

<ResponseField name="domain" type="string">
  The domain associated with this company
</ResponseField>

<ResponseField name="name" type="string">
  The name associated with this company
</ResponseField>

### Error Response

<ResponseField name="message" type="string">
  Error description explaining what went wrong
</ResponseField>

## Example Requests

<CodeGroup>
  ```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)
  ```
</CodeGroup>

## 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](/introduction/rate-limiting) |

## Notes

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