# Minimal HTTP client examples

**Base URL:** `https://www.strawberryid.com/api`

Official packaged SDKs may ship later; integrations use standard HTTP clients.

## Node.js (fetch)

```javascript
const baseUrl = process.env.STRAWBERRY_API_BASE_URL || 'https://www.strawberryid.com/api';
const apiKey = process.env.STRAWBERRY_API_KEY;

const response = await fetch(
  `${baseUrl}/v1/identity?strawberry_id=SR1-ABCD-EFGH-X&fields=display_name,kyc_status`,
  {
    headers: {
      Authorization: `Bearer ${apiKey}`,
    },
  },
);

const data = await response.json();
```

## Python (requests)

```python
import os
import requests

base_url = os.getenv("STRAWBERRY_API_BASE_URL", "https://www.strawberryid.com/api")
api_key = os.environ["STRAWBERRY_API_KEY"]

response = requests.post(
    f"{base_url}/v1/data-requests",
    headers={
        "Authorization": f"Bearer {api_key}",
        "Idempotency-Key": "req_001",
    },
    json={
        "strawberry_id": "SR1-ABCD-EFGH-X",
        "requested_fields": ["strawberry_id", "display_name", "kyc_status"],
    },
)

data = response.json()
```

If your existing app expects `ONE_WALLET_*` env names, map them to these Strawberry values in your configuration layer.

## cURL — KYC verification

```bash
curl "https://www.strawberryid.com/api/v1/kyc/verifications" \
  -X POST \
  -H "Authorization: Bearer sk_test_..." \
  -H "Idempotency-Key: kyc_001" \
  -H "Content-Type: application/json" \
  -d '{
    "strawberry_id": "SR1-ABCD-EFGH-X",
    "kind": "nin",
    "id": "12345678901",
    "verification_consent": true
  }'
```
