Skip to main content
GET
/
v1
/
criteria
/
library
cURL
curl --request GET \
  --url https://embed.nova.dweet.com/v1/criteria/library \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Tenant-Id: <x-tenant-id>'
{
  "criteria": [
    {
      "id": "<string>",
      "text": "<string>",
      "importance": "MUST_HAVE",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ]
}
Library criteria are tenant-scoped. Each of your customers has their own isolated library.

When to Use

List library criteria when:

Job Setup UI

Show available library criteria when a user is configuring a new job

Criteria Picker

Let users browse and select criteria to add to a job

Response

Returns all criteria in the tenant’s library, sorted by creation date (newest first). Each criterion includes:
  • id - Unique identifier (prefixed with lib_)
  • text - The criterion text
  • importance - Default importance level
  • createdAt - When it was added to the library

Empty Library

If no criteria have been saved to the library yet, the response returns an empty array:
{
  "criteria": []
}
This is a valid response, not an error. Build your library over time by adding criteria that work well.

Authorizations

Authorization
string
header
required

API key authentication. Use your environment-specific API key (sk_test_* for sandbox, sk_live_* for production).

Headers

X-Tenant-Id
string
required

Your customer/tenant identifier. Used for data isolation and per-customer metrics. Tenants are created automatically on first request.

Response

Library criteria retrieved successfully

criteria
object[]
required

All criteria in the tenant's library