# Get X API pricing table

Fetches an X API pricing table.

```http
GET https://api.pozy.ai/v1/billing/x-pricing
```

- Area: Workspace / Usage
- Auth: Authorization: Bearer pz_live_...

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/billing/x-pricing" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/billing/x-pricing", {
  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/billing/x-pricing",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `currency`, string
- `markup`, string
- `source`, string (URL)
- `lastVerified`, string (date)
- `tiers`, array of object
  - `tier`, string
  - `pricePerCallUsd`, number
  - `operationCount`, integer
- `operations`, array of object
  - `operation`, string
  - `eventType`, string
  - `displayName`, string
  - `pricePerCallUsd`, number
  - `pricePerCallCents`, number
  - `tier`, string
  - `triggeredBy`, array of object
    - `method`, string
    - `metering`, string: One of `always`, `analytics_optin`, `inbox_optin`, `absorbed`

```json
{
  "currency": "USD",
  "markup": "string",
  "source": "https://pozy.ai/media/example-1.jpg",
  "lastVerified": "2026-10-01",
  "tiers": [
    {
      "tier": "string",
      "pricePerCallUsd": 12.5,
      "operationCount": 42
    }
  ],
  "operations": [
    {
      "operation": "string",
      "eventType": "string",
      "displayName": "Acme",
      "pricePerCallUsd": 12.5,
      "pricePerCallCents": 12.5,
      "tier": "string",
      "triggeredBy": [
        {
          "method": "string",
          "metering": "always"
        }
      ]
    }
  ]
}
```
