# Get project config

Returns non-secret runtime configuration for a project.

Inspect non-secret project policy as top-level fields. For package setup, copy the complete configuration from your Dashboard integration guide. This endpoint does not return that configuration or its allowed-size list.

| Method | Path | Authentication | Stability |
| --- | --- | --- | --- |
| GET | /v1/projects/{client_id}/config | Secret key or browser activation token | stable |

## Request fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| client_id | string | Yes | Project ID (client_id, WAVEBIRD_CLIENT_ID), formatted like wbproj_.... |

## Response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| client_id | string | Yes | Project ID (client_id, WAVEBIRD_CLIENT_ID), formatted like wbproj_.... |
| app_name | string | Yes | Saved app name. |
| app_domain | string | Yes | Saved app host. |
| app_type | string | Yes | App type, such as chat or image. |
| allowed_formats | string[] | Yes | Formats enabled for this project. |
| timing | string | Yes | Saved before, during or after timing. |
| consent_mode | string | Yes | Saved consent mode. |
| gdpr_default | boolean | Yes | Project GDPR fallback. Actual request policy still applies. |
| frequency_cap | object | Yes | Configured session and prompt-interval limits. |
| default_bidfloor | number \| null | Yes | Saved floor, or null when unset. |
| default_bidfloor_currency | string \| null | Yes | Saved floor currency, or null when unset. |
| blocked_categories | string[] | Yes | Saved category exclusions. |

## Errors

| Status | Code | Description |
| --- | --- | --- |
| 401 | unauthorized | Missing or inactive secret key or browser activation token. |
| 403 | forbidden | Key does not belong to this project. |
| 404 | not_found | Project was not found. |

## Response example

```json
{
  "client_id": "wbproj_demo_8jK42",
  "app_name": "Example app",
  "app_domain": "publisher.example",
  "app_type": "chat",
  "allowed_formats": ["banner", "native"],
  "timing": "after",
  "consent_mode": "wavebird_consent",
  "gdpr_default": true,
  "frequency_cap": {
    "session": 3,
    "prompt_interval": 1,
    "user_per_day": 10
  },
  "default_bidfloor": 0.5,
  "default_bidfloor_currency": "EUR",
  "blocked_categories": []
}
```

## cURL

```bash
curl "https://api.wavebird.ai/v1/projects/wbproj_demo_8jK42/config" \
  -H "Authorization: Bearer sk_test_wavebird_demo_secret"
```

## Node

```javascript
const response = await fetch("https://api.wavebird.ai/v1/projects/wbproj_demo_8jK42/config", {
  headers: { Authorization: "Bearer sk_test_wavebird_demo_secret" }
});

console.log(await response.json());
```

## Python

```python
import urllib.request

request = urllib.request.Request(
    "https://api.wavebird.ai/v1/projects/wbproj_demo_8jK42/config",
    headers={"Authorization": "Bearer sk_test_wavebird_demo_secret"},
)

with urllib.request.urlopen(request) as response:
    print(response.read().decode("utf-8"))
```
