# Eski şirket listesi

`GET https://ulawk.com/api/v1/companies`

İlk sürümden kalan uç; çalışmayı sürdürür. Yeni entegrasyonlarda `/api/v1/sirketler/` kullanın. Deneme anahtarını tanımaz.

> Eski: yeni entegrasyonda kullanmayın.

## Kimlik doğrulama

Her istekte iki başlık: `X-API-Key` ve `X-API-Secret`.

## Yanıt

### 200 — Şirketler.

- `count` (integer, zorunlu)
- `companies[]` (object[], zorunlu)
- `companies[].group_id` (integer, zorunlu)
- `companies[].unvan` (string, null, zorunlu)
- `companies[].mudurluk` (string, null, zorunlu)
- `companies[].sicil_no` (string, null, zorunlu)
- `companies[].profil_hazir` (boolean, zorunlu)

```json
{
  "count": 1,
  "companies": [
    {
      "group_id": 1234,
      "unvan": "ÖRNEK DENEME SANAYİ VE TİCARET ANONİM ŞİRKETİ",
      "mudurluk": "İSTANBUL",
      "sicil_no": "100001",
      "profil_hazir": true
    }
  ]
}
```

### 401 — Yetkisiz.

- `error` (string, zorunlu)
- `detail` (string)

```json
{
  "error": "unauthorized",
  "detail": "Geçerli X-API-Key gerekli."
}
```

## İstek

```bash
curl "https://ulawk.com/api/v1/companies" \
  -H "X-API-Key: ulk_DENEME_ANAHTARINIZ" \
  -H "X-API-Secret: ulsk_DENEME_GIZLI_ANAHTARINIZ"
```
