# Company

> API reference · Wathiqaty Insurer API v1 (draft)

Your company as Wathiqaty sees it. A cheap call to check a new token works.

Base URL: `https://sandbox-api.wathiqaty.com/api/v1` (sandbox), `https://api.wathiqaty.com/api/v1` (production).

- Get your company: `GET /partner/company`

## Get your company

`GET /partner/company`

- Auth: Bearer token, scope `any`

### Request examples

```bash
curl -X GET "https://sandbox-api.wathiqaty.com/api/v1/partner/company" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

```js
const res = await fetch("https://sandbox-api.wathiqaty.com/api/v1/partner/company", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${accessToken}`,
  },
})
const { data, error } = await res.json()
if (!res.ok) throw new Error(`${res.status} ${error.code}`)
```

```python
import requests

res = requests.get(
    "https://sandbox-api.wathiqaty.com/api/v1/partner/company",
    headers={
        "Authorization": f"Bearer {access_token}",
    },
    timeout=30,
)
payload = res.json()
if not res.ok:
    raise RuntimeError(f"{res.status_code} {payload['error']['code']}")
data = payload["data"]
```

```csharp
using var req = new HttpRequestMessage(HttpMethod.Get,
    "https://sandbox-api.wathiqaty.com/api/v1/partner/company");
req.Headers.TryAddWithoutValidation("Authorization", $"Bearer {accessToken}");
using var res = await http.SendAsync(req);
var json = await res.Content.ReadAsStringAsync();
res.EnsureSuccessStatusCode();
```

### Response 200

Your company profile.

```json
{
  "status": "success",
  "data": {
    "id": "a3c1e0f2-5b7d-4e19-8c2a-0f6d9b1e4a77",
    "name": {
      "en": "Demo Insurance",
      "ar": "ديمو للتأمين"
    },
    "status": "active",
    "insuranceTypes": [
      "individual_medical",
      "new_cars"
    ],
    "numbering": {
      "policyCardPrefix": "MC"
    },
    "supportSettings": {
      "phone": "19000",
      "email": "care@insurer.example"
    }
  },
  "error": null,
  "metadata": {
    "timestamp": "2026-11-05T09:15:02.481Z",
    "path": "/api/v1/partner/company",
    "method": "GET",
    "requestId": "8d7e2c1a-41f0-4a4e-9a55-6f0b3c2d1e77"
  }
}
```
