> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sixtyfour.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Check professional licenses

> Use People Intelligence to check professional licenses and review the verdicts.

Send `credential_policy` with a [People Intelligence request](https://docs.sixtyfour.ai/api-reference/endpoint/people-intelligence.md) to check professional licenses. This option is not available on `micro` or on private runs.

## Start a license check

Add a `licenses` list to each person, or a `licenses` column to the input file. In a CSV, write the list as JSON.

Save this request body as `request.json`:

```json request.json theme={null}
{
  "people": [
    {
      "name": "Jordan Rivera",
      "custom_id": "worker-1",
      "licenses": [
        {"type": "RN", "number": "123456", "state": "TX", "name": "Jordan A. Rivera"}
      ]
    }
  ],
  "tier": "medium",
  "fields": {"current_employer": "Current employer"},
  "credential_policy": {"fail_statuses": ["suspended", "revoked", "probation", "expired"]}
}
```

```bash cURL theme={null}
curl --fail-with-body -sS "https://api.sixtyfour.ai/v1/people/intelligence" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @request.json
```

```python Python theme={null}
import json
from pathlib import Path

import requests

response = requests.post(
    "https://api.sixtyfour.ai/v1/people/intelligence",
    headers={"x-api-key": "YOUR_API_KEY"},
    json=json.loads(Path("request.json").read_text()),
)
response.raise_for_status()
print(response.json())
```

```javascript JavaScript theme={null}
import { readFile } from "node:fs/promises";

const response = await fetch("https://api.sixtyfour.ai/v1/people/intelligence", {
  method: "POST",
  headers: { "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" },
  body: await readFile("request.json", "utf8"),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
```

| License field | Description |
| - | - |
| `type` | Kind of license, such as `RN` or `CPA`. Required. |
| `number` | License number. Required. |
| `issuer`, `state` | Board or agency, or state, that issued it. Send at least one. |
| `name` | Name on the license. Optional. |

`fail_statuses` accepts `suspended`, `revoked`, `probation` and `expired`. The default is `suspended`, `revoked` and `probation`.

## Read the verdicts

Use [Async Jobs](https://docs.sixtyfour.ai/api-reference/async-jobs.md) to wait for the Job and read its items. A `succeeded` Job means the check finished, not that the license passed. The example below shows the license-check fields returned for the sample request, which uses a fictional license.

```json Result excerpt theme={null}
{
  "credential_verdict": "NEEDS_HUMAN",
  "credential_licenses": [
    {
      "type": "RN",
      "number": "123456",
      "state": "TX",
      "name": "Jordan A. Rivera",
      "status": "unverifiable",
      "verdict": "NEEDS_HUMAN",
      "reason": "registry_not_checked"
    }
  ]
}
```

| Verdict | When |
| - | - |
| `PASS` | The registry record matches the person and license, and shows it active. |
| `FAIL` | The matching registry record shows one of your `fail_statuses`. |
| `NEEDS_HUMAN` | Anything else. |

`credential_verdict` is the worst verdict among the person's licenses. A person with no licenses, or with a file row whose `licenses` cannot be read, is `NEEDS_HUMAN` with an empty `credential_licenses`.

| `reason` | Meaning |
| - | - |
| `active` | The record is active. |
| `status_fails_policy` | The status is in `fail_statuses`. |
| `status_not_active` | The record shows another status. |
| `record_not_found` | The registry has no such record. |
| `record_not_matched` | The record does not show this number and name. |
| `registry_not_checked` | The registry could not be checked. |
| `no_source` | No registry page backs the status. |

Statuses come from research on public registry pages. If a registry cannot be checked, the verdict is `NEEDS_HUMAN`. Review `source_url` when present and check unresolved licenses directly with the issuer.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.