# Legacy profile

`GET https://ulawk.com/api/v1/company/{group_id}/profile`

Legacy profile endpoint, still working. Use `/api/v1/sirketler/{sirket_id}/` for new integrations: source trail and `veri_durumu` are only there.

> Legacy: do not use in new integrations.

## Authentication

Two headers on every request: `X-API-Key` and `X-API-Secret`.

## Path parameters

- `group_id` (integer, required) — Company id.

## Response

### 200 — Profile.


```json
{
  "unvan": "ÖRNEK DENEME SANAYİ VE TİCARET ANONİM ŞİRKETİ",
  "mudurluk": "İSTANBUL",
  "sicil_no": "100001",
  "guncelleme": "2026-10-01T00:00:00+03:00",
  "ilan_sayisi": 6,
  "profil": {
    "yapi": {
      "ozet": "…"
    }
  }
}
```

### 401 — Unauthorized.

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

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

### 404 — Not found or profile not ready.

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

```json
{
  "error": "not_found"
}
```

## Request

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