## Certificate settings (`cert-settings`)

The current user's default certificate type for new certificates; leave empty to follow the platform.

Authentication: User · Docs: https://www-demo.kuxitong.com/en/docs/api/cert-settings

### GET `/api/v2/cert-settings`

Get certificate settings · Authentication: User

```sh
curl "https://panel.example.com/api/v2/cert-settings" \
  -H "X-API-Key: $GOCDN_API_KEY"
```

### PUT `/api/v2/cert-settings`

Update certificate settings · Authentication: User

Request body:

| Field | Type | Required | Description |
|---|---|---|---|
| `default_type` | string | Yes | The user's own default type (custom/lets/zerossl); null = follow the platform. |

```sh
curl -X PUT "https://panel.example.com/api/v2/cert-settings" \
  -H "X-API-Key: $GOCDN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"default_type":"custom"}'
```

Certificate settings object:

| Field | Type | Required | Description |
|---|---|---|---|
| `default_type` | string |  | The user's own default type (custom/lets/zerossl); null = follow the platform. |
| `effective_type` | string |  | The default type actually in effect. (read-only) |
