## Get namespace settings

**get** `/v1/data/{namespace}/settings`

Fetch the stored schema, settings, and configuration version for a namespace. Use the returned version as previous_version when updating so a stale update is rejected instead of overwriting a newer one.

### Path Parameters

- `namespace: string`

  The namespace to ingest data into

### Returns

- `namespace: string`

- `schema: map[unknown]`

  The stored schema for this namespace, returned exactly as stored.

- `settings: map[unknown]`

  The stored namespace settings. Configure with guidance from SafetyKit.

- `version: number`

  The current configuration version, incremented each time the configuration is updated through the API or by SafetyKit. Send it as previous_version when updating to detect intervening changes.

### Example

```http
curl https://api.safetykit.com/v1/data/$NAMESPACE/settings \
    -H "Authorization: Bearer $SAFETYKIT_API_KEY"
```

#### Response

```json
{
  "namespace": "users",
  "schema": {
    "profile_image": "bar",
    "cover_photo": "bar",
    "website": "bar"
  },
  "settings": {},
  "version": 4
}
```
