# prov.identify.assess

prov.identify.assess in Node SDK. Assess one request (`POST /v1/identify/assessments`, metered per 1,000 checks).

## Signature

```ts
prov.identify.assess(params: IdentifyAssessParams): Promise<TrafficAssessment>
```

## Parameters

- `params` (IdentifyAssessParams)

## Returns

`Promise<TrafficAssessment>`

## HTTP operation

[`POST /v1/identify/assessments`](https://provenanceauth.com/docs/api/traffic-checks.md#post-v1-identify-assessments): Assess a request

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`policy_account_required`](https://provenanceauth.com/docs/platform/errors.md#policy_account_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`usage_limit_reached`](https://provenanceauth.com/docs/platform/errors.md#usage_limit_reached)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "request": {
      "method": "GET",
      "url": "https://harborbean.example/products/house-blend",
      "headers": {
        "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_6) AppleWebKit/605.1.15",
        "accept-language": "en-US"
      }
    },
    "ip": "203.0.113.24",
    "client": {
      "time_zone": "America/Los_Angeles",
      "locale": "en-US"
    }
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/identify/assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "request": {
        "method": "GET",
        "url": "https://harborbean.example/products/house-blend",
        "headers": {
            "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_6) AppleWebKit/605.1.15",
            "accept-language": "en-US"
        }
    },
    "ip": "203.0.113.24",
    "client": {
        "time_zone": "America/Los_Angeles",
        "locale": "en-US"
    }
}).json()
```
