# ES Subscriber360 cURL Examples (v1)

Use env vars:
- `ES_URL`
- `ES_API_KEY`
- `ES_INDEX=customer_subscription_v1`

## Fetch one customer document by sms_cust_id
```bash
curl -sS -H "Authorization: ApiKey $ES_API_KEY" "$ES_URL/$ES_INDEX/_search" \
  -H 'Content-Type: application/json' -d '{
  "size": 1,
  "query": {
    "bool": {
      "must": [
        {"term": {"app_id": 1004}},
        {"term": {"sms_cust_id": "1004177xxxxxxxx"}}
      ]
    }
  }
}'
```
