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

# Criteria Library

> Store and reuse screening criteria across multiple jobs

The Criteria Library stores commonly-used screening criteria at the tenant level. Each tenant has their own isolated library.

## Key behavior

| Property           | Detail                                                                                                              |
| ------------------ | ------------------------------------------------------------------------------------------------------------------- |
| **Tenant-scoped**  | Criteria aren't shared across tenants                                                                               |
| **Copy-based**     | Adding a library criterion to a job creates an independent copy. Library changes don't affect existing job criteria |
| **Templates only** | Library criteria aren't used for scoring directly. Add them to a job first                                          |

## Example workflow

```javascript theme={null}
// 1. Add criteria to the library
await fetch(`https://embed.nova.dweet.com/v1/criteria-library`, {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${apiKey}`,
    'X-Tenant-Id': tenantId,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    text: 'Demonstrated job stability with 2+ years average tenure',
    importance: 'NICE_TO_HAVE',
  }),
});

// 2. Add selected criteria to a job (creates independent copies)
await fetch(`https://embed.nova.dweet.com/v1/jobs/${jobId}/criteria/items`, {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${apiKey}`,
    'X-Tenant-Id': tenantId,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    text: 'Demonstrated job stability with 2+ years average tenure',
    importance: 'NICE_TO_HAVE',
  }),
});
```

## Endpoints

<CardGroup cols={2}>
  <Card title="List Library" icon="list" href="/embed-api/endpoints/library/list">
    Retrieve all criteria in the tenant's library
  </Card>

  <Card title="Get Library Criterion" icon="eye" href="/embed-api/endpoints/library/get">
    Retrieve a single criterion by ID
  </Card>

  <Card title="Add to Library" icon="plus" href="/embed-api/endpoints/library/add">
    Save a new criterion
  </Card>

  <Card title="Update Library Criterion" icon="pen-to-square" href="/embed-api/endpoints/library/update">
    Update a saved criterion
  </Card>

  <Card title="Remove from Library" icon="trash" href="/embed-api/endpoints/library/remove">
    Delete a criterion
  </Card>

  <Card title="Add to Job" icon="arrow-right" href="/embed-api/endpoints/criteria/add">
    Copy a library criterion to a job
  </Card>
</CardGroup>
