# companies.get

Ver uma empresa. Cadastro da empresa. `enrichment` é sempre nulo (sem Econodata).

- Endpoint: `POST https://app.atomiks.com.br/api/v1/companies.get` (corpo JSON)
- Quem pode chamar: membro da conta
- Escopo da chave: `crm:read`
- Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP: `companies_get`
- Ficha em JSON: `https://app.atomiks.com.br/api/v1/openapi.json` (operationId `companies.get`)

## Entrada

| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
| `id` | string (uuid) | sim |  |

<details><summary>JSON Schema</summary>

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    }
  },
  "required": [
    "id"
  ]
}
```

</details>

## Exemplo

```bash
curl -X POST https://app.atomiks.com.br/api/v1/companies.get \
  -H "Authorization: Bearer $ATOMIKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"00000000-0000-0000-0000-000000000000"}'
```

CLI:

```bash
node cli/atomiks.mjs companies.get --json '{"id":"00000000-0000-0000-0000-000000000000"}'
```

MCP: ferramenta `companies_get` com a mesma entrada.

## Saída

Sucesso: `{"data": ...}` com o formato abaixo.

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "legalName": {
      "type": "string"
    },
    "tradeName": {
      "type": [
        "string",
        "null"
      ]
    },
    "taxId": {
      "type": [
        "string",
        "null"
      ]
    },
    "taxIdType": {
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "phone": {
      "type": [
        "string",
        "null"
      ]
    },
    "website": {
      "type": [
        "string",
        "null"
      ]
    },
    "addressStreet": {
      "type": [
        "string",
        "null"
      ]
    },
    "addressCity": {
      "type": [
        "string",
        "null"
      ]
    },
    "addressState": {
      "type": [
        "string",
        "null"
      ]
    },
    "addressPostalCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "countryCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "industry": {
      "type": [
        "string",
        "null"
      ]
    },
    "sizeTier": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "SMB",
            "MID",
            "ENTERPRISE"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "enrichment": {
      "type": "null"
    }
  },
  "required": [
    "id",
    "legalName",
    "tradeName",
    "taxId",
    "taxIdType",
    "email",
    "phone",
    "website",
    "addressStreet",
    "addressCity",
    "addressState",
    "addressPostalCode",
    "countryCode",
    "industry",
    "sizeTier",
    "createdAt",
    "updatedAt",
    "enrichment"
  ],
  "additionalProperties": false
}
```

## Erros

`{"error": {"code", "message", "requestId"}}`. Códigos: `invalid_input` (400), `unauthorized` (401), `forbidden` / `account_pending` / `scope_missing` (403), `not_found` (404), `limit_reached` (409), `internal` (500).
