> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Get fields context
> Read default criteria and deterministic-condition fields for Test Suite criteria.
Returns default criteria plus the deterministic-condition fields, operators, and quantifiers supported by the workspace.
## Headers
<ParamField header="Authorization" type="string" required>
Bearer token containing your Fini workspace API key. Format: `Bearer fini_...` The key needs `read` scope.
</ParamField>
## Response
<ResponseField name="defaultCriteria" type="array">
Fini-provided criteria that can be copied into a test set by sending `defaultCriterionId` to [Add criteria](/en/api-reference/add-test-set-criteria).
</ResponseField>
<ResponseField name="contextFields" type="array">
Deterministic-condition fields available for the workspace.
</ResponseField>
<ResponseField name="operatorTypes" type="string[]">
Operators supported by deterministic conditions.
</ResponseField>
<ResponseField name="quantifierTypes" type="string[]">
Quantifiers supported for array-style deterministic conditions.
</ResponseField>
<RequestExample>
~~~bash cURL theme={null}
curl --request GET \
--url 'https://api-prod.usefini.com/v2/test-sets/fields-context/public' \
--header 'Authorization: Bearer fini_your_api_key'
~~~
~~~javascript Node.js theme={null}
const response = await fetch('https://api-prod.usefini.com/v2/test-sets/fields-context/public', {
method: 'GET',
headers: {
Authorization: 'Bearer fini_your_api_key'
}
});
const fieldsContext = await response.json();
~~~
~~~python Python theme={null}
import requests
response = requests.get(
"https://api-prod.usefini.com/v2/test-sets/fields-context/public",
headers={"Authorization": "Bearer fini_your_api_key"},
)
fields_context = response.json()
~~~
</RequestExample>
<ResponseExample>
~~~json 200 OK theme={null}
{
"defaultCriteria": [
{
"id": "96eab02d-3bc3-4b90-ae5b-1a41a1444afa",
"testSetId": null,
"companyId": null,
"defaultCriterionId": null,
"name": "Goal resolution",
"type": "complex_judge",
"judgePrompt": "Judge whether the conversation resolved the user's goal.",
"passPrompt": "The user's goal was resolved.",
"failPrompt": "The user's goal was not resolved.",
"condition": null,
"blocking": true,
"isActive": true,
"createdAt": "2026-07-28T08:00:00.000Z",
"updatedAt": "2026-07-28T08:00:00.000Z"
}
],
"contextFields": [
{
"path": "knowledgeSearchUsed",
"dataType": "boolean"
},
{
"path": "replyTypes",
"dataType": "array",
"values": ["message", "internal_note", "no_reply"]
}
],
"operatorTypes": ["==", "!=", ">", ">=", "<", "<=", "contains", "before", "after", "in", "not_in", "is_null", "is_not_null", "is_empty", "is_not_empty"],
"quantifierTypes": ["ANY", "ALL", "NONE"]
}
~~~
</ResponseExample>
## Related topics
- [API overview](/en/api-reference/overview.md)
- [Overview](/en/api-reference/reply-rules.md)
- [Get Business Rule fields context](/en/api-reference/get-business-rule-fields-context.md)
This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
Test Sets

