# Retrieve the risk settings (/docs/api-reference/risk/get-risk-settings)

The API key's environment's decision thresholds, disabled reasons and captcha provider (never its secret).

`GET https://api.coss.com/v1/risk/settings`

Authenticate with your API key as a bearer token (`Authorization: Bearer coss_test_…`). Responses are JSON with snake_case fields; errors are `{ error: { type, code, message, param?, issues?, request_id } }` (https://coss.com/docs/api-reference/errors.md).

## Example request

TypeScript (the `coss` package):

```ts
import { Coss } from "coss";

const coss = new Coss({
  apiKey: process.env.COSS_API_KEY,
  baseUrl: "https://api.coss.com",
});

const { data, error } = await coss.risk.settings.get();
```

HTTP:

```sh
curl -X GET "https://api.coss.com/v1/risk/settings" \
  -H "Authorization: Bearer $COSS_API_KEY"
```

Python:

```python
from coss import Coss

client = Coss()  # api_key= or COSS_API_KEY

client.risk.settings.get()
```

Go:

```go
import (
	"context"

	cossclient "github.com/cosscom/coss-go/client"
)

client := cossclient.NewClient() // option.WithAPIKey(…) or COSS_API_KEY

client.Risk.Settings.Get(
    context.TODO(),
)
```

Ruby:

```ruby
require "coss"

client = Coss::Client.new # api_key: or COSS_API_KEY

client.risk.settings.get
```

PHP:

```php
<?php

use Coss\Coss;

$client = new Coss(); // apiKey: or COSS_API_KEY

$client->risk->settings->get();
```

Java:

```java
import com.coss.Coss;

Coss client = Coss.builder().build(); // .apiKey(…) or COSS_API_KEY

client.risk().settings().get();
```

.NET:

```csharp
using Coss;

var client = new CossClient(); // apiKey: or COSS_API_KEY

await client.Risk.Settings.GetAsync();
```

## Response 200

The settings.

- `object` ("risk_settings", required)
- `review_threshold` (number, required): Scores at or above it are `review`.
- `block_threshold` (number, required): Scores at or above it are `block`.
- `disabled_reasons` (string[], required): Reasons that never fire in this environment (they don't count in the score).
- `captcha` (object | null, required): The captcha provider assessments verify tokens with (never the secret).
  - `provider` ("turnstile" | "hcaptcha", required): The captcha provider.
  - `required` (boolean, required): Whether assessments without a token get `captcha.missing`.
- `content_thresholds` (object, required): Per content category, the score at which `content.<category>` fires; `null`: never (the score is still in `signals.content` for your rules).
  - `spam` (number | null, required): The score at which `content.spam` fires. `null`: never.
  - `phishing` (number | null, required): The score at which `content.phishing` fires. `null`: never.
  - `malware` (number | null, required): The score at which `content.malware` fires. `null`: never.
  - `fraud` (number | null, required): The score at which `content.fraud` fires. `null`: never.
- `reason_weights` (object, required): Reasons whose weight this environment changed (from calibration or by hand); the rest weigh what the reason catalog says.
  - `email.invalid` (number): This reason's weight in this environment.
  - `email.disposable` (number): This reason's weight in this environment.
  - `email.undeliverable` (number): This reason's weight in this environment.
  - `email.role_account` (number): This reason's weight in this environment.
  - `email.typo` (number): This reason's weight in this environment.
  - `email.domain_new` (number): This reason's weight in this environment.
  - `ip.tor` (number): This reason's weight in this environment.
  - `ip.vpn_network` (number): This reason's weight in this environment.
  - `ip.hosting_provider` (number): This reason's weight in this environment.
  - `ip.vpn` (number): This reason's weight in this environment.
  - `ip.proxy` (number): This reason's weight in this environment.
  - `ip.relay` (number): This reason's weight in this environment.
  - `ip.private` (number): This reason's weight in this environment.
  - `velocity.signups_per_ip_1h` (number): This reason's weight in this environment.
  - `velocity.signups_per_ip_24h` (number): This reason's weight in this environment.
  - `velocity.signups_per_subnet_1h` (number): This reason's weight in this environment.
  - `velocity.signups_per_email_domain_1h` (number): This reason's weight in this environment.
  - `velocity.signups_per_mailbox_24h` (number): This reason's weight in this environment.
  - `velocity.signups_per_device_24h` (number): This reason's weight in this environment.
  - `velocity.checkouts_per_ip_1h` (number): This reason's weight in this environment.
  - `velocity.checkouts_per_user_1h` (number): This reason's weight in this environment.
  - `velocity.checkouts_per_card_24h` (number): This reason's weight in this environment.
  - `velocity.logins_per_ip_1h` (number): This reason's weight in this environment.
  - `velocity.logins_per_user_1h` (number): This reason's weight in this environment.
  - `velocity.events_per_ip_1h` (number): This reason's weight in this environment.
  - `velocity.events_per_user_1h` (number): This reason's weight in this environment.
  - `duplicate.canonical_mailbox` (number): This reason's weight in this environment.
  - `duplicate.device` (number): This reason's weight in this environment.
  - `history.fraud_mailbox` (number): This reason's weight in this environment.
  - `history.fraud_user` (number): This reason's weight in this environment.
  - `history.fraud_ip` (number): This reason's weight in this environment.
  - `history.fraud_subnet` (number): This reason's weight in this environment.
  - `history.fraud_card` (number): This reason's weight in this environment.
  - `history.fraud_device` (number): This reason's weight in this environment.
  - `checkout.card_country_mismatch` (number): This reason's weight in this environment.
  - `checkout.billing_country_mismatch` (number): This reason's weight in this environment.
  - `checkout.prepaid_card` (number): This reason's weight in this environment.
  - `device.automation` (number): This reason's weight in this environment.
  - `device.invalid` (number): This reason's weight in this environment.
  - `login.new_country` (number): This reason's weight in this environment.
  - `login.new_network` (number): This reason's weight in this environment.
  - `captcha.failed` (number): This reason's weight in this environment.
  - `captcha.missing` (number): This reason's weight in this environment.
  - `content.spam` (number): This reason's weight in this environment.
  - `content.phishing` (number): This reason's weight in this environment.
  - `content.malware` (number): This reason's weight in this environment.
  - `content.fraud` (number): This reason's weight in this environment.
- `updated_at` (string | null, required, date-time): `null` while on the defaults.

Example:

```json
{
  "object": "risk_settings",
  "review_threshold": 0.5,
  "block_threshold": 0.85,
  "disabled_reasons": [
    "email.role_account"
  ],
  "captcha": {
    "provider": "turnstile",
    "required": true
  },
  "content_thresholds": {
    "spam": null,
    "phishing": 0.8,
    "malware": 0.8,
    "fraud": 0.9
  },
  "reason_weights": {
    "ip.hosting_provider": 0.1
  },
  "updated_at": "2026-01-15T09:30:00.000Z"
}
```

## Errors

- `400`: The `Coss-Version` header names an unknown API version (`invalid_api_version`).
- `401`: The API key is missing, invalid, revoked or expired (`authentication_error`).
- `403`: The API key lacks the permission this endpoint needs (`permission_error`), or its organization is suspended (`organization_suspended`).
- `429`: Too many requests with this API key (`rate_limited`), or too many requests with invalid keys from this address (`too_many_failed_authentications`). Retry after `Retry-After` seconds. Successful responses carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds until the limit is fully restored).
- `500`: Unexpected server error (`api_error` / `internal_error`).
- `503`: The API key could not be verified right now; retry (`service_unavailable`).