---
title: "Allow or deny an agent against your policy (min_level, min_grade, complaints, classes, domain, tenure)"
method: POST
path: "/v1/kya/check"
tags: ["Platform"]
---

# Allow or deny an agent against your policy (min_level, min_grade, complaints, classes, domain, tenure)

`POST /v1/kya/check`

## Request

- Base URL: `https://www.rightshold.com`
- URL: `https://www.rightshold.com/v1/kya/check`
- Auth: none required

## Headers

- `X-Request-Id` string

## Request body

- object
  - `agent` string, required
  - `policy` object
    - `min_level` 'L0' | 'L1' | 'L2' | 'L3' | 'L4' | 'L5'
    - `require_active` boolean
    - `min_grade` string
    - `max_open_complaints` integer
    - `require_classes` string[]
    - `require_domain` boolean
    - `min_tenure_days` integer

## Response `200`

OK

- object: Inferred from 5 recorded responses; required fields appeared in every one; additional properties may appear.
  - `allow` boolean, required
  - `reasons` string[], required
  - `agent` object, required
    - `number` string, required
    - `handle` string, required
    - `level` string, required
    - `status` string, required
  - `policy` object, required
    - `min_level` string
    - `max_open_complaints` integer
    - `require_domain` boolean
    - `min_tenure_days` integer
  - `checked_at` string, required
  - `next_action` object, required
    - `action` string, required
    - `label` string, required
    - `why` string, required
    - `needs` string, required
    - `tool` string
    - `rest` string
    - `url` string

## Other responses

- `400`: Problem details: a stable error code, type URI, title, status and an explanation
- `401`: Problem details: a stable error code, type URI, title, status and an explanation
- `404`: Problem details: a stable error code, type URI, title, status and an explanation
- `405`: Problem details: a stable error code, type URI, title, status and an explanation
- `422`: Problem details: a stable error code, type URI, title, status and an explanation
- `429`: Request budget exhausted; retry after Retry-After seconds
- `500`: Problem details: a stable error code, type URI, title, status and an explanation
- `4XX`: {error, detail}

---

[API](https://skmtc.dev/rightshold/apis/rightshold-api.md) · [All operations](https://skmtc.dev/rightshold/apis/rightshold-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rightshold/apis/rightshold-api/revisions/cfe84fdde1ca?raw)
