# Get services

Fetches services.

```http
GET https://api.pozy.ai/v1/accounts/{accountId}/gmb-services
```

- Area: Google Business / Google Business Services
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `accountId` (string, required)

## Query parameters

- `locationId` (string)

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/gmb-services" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/gmb-services", {
  headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.get(
    "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/gmb-services",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `success`, boolean
- `accountId`, string
- `locationId`, string
- `services`, array of object
  - `structuredServiceItem`, object
    - `serviceTypeId`, string
    - `description`, string
  - `freeFormServiceItem`, object
    - `category`, string
    - `label`, object
      - `displayName`, string
      - `description`, string
  - `price`, object
    - `currencyCode`, string
    - `units`, string
    - `nanos`, integer

```json
{
  "success": true,
  "accountId": "696e0b682d0a31188e7a2ba9",
  "locationId": "6e99c3dd69982b334a43b0b2",
  "services": [
    {
      "structuredServiceItem": {
        "serviceTypeId": "6d4297c0b29cd9542de9fe72",
        "description": "A short description"
      },
      "freeFormServiceItem": {
        "category": "string",
        "label": {
          "displayName": "Acme",
          "description": "A short description"
        }
      },
      "price": {
        "currencyCode": "string",
        "units": "string",
        "nanos": 1
      }
    }
  ]
}
```
