> ## 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 intent-rule fields context

> Get the fields and resources available to intent-rule trees.

Returns the workspace attributes, actions, tags, forms, operators, and sources that can be referenced by an intent-rule tree.

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token containing your Fini workspace API key. Format: `Bearer fini_...` The key needs `read` scope.
</ParamField>

## Query parameters

<ParamField query="type" type="string" required>
  Send `intent`.
</ParamField>

## Response

<ResponseField name="userAttributes" type="FieldResource[]">
  Workspace user attributes with their input and output schemas.
</ResponseField>

<ResponseField name="actions" type="FieldResource[]">
  Workspace actions available to Tool nodes.
</ResponseField>

<ResponseField name="defaultActions" type="FieldResource[]">
  Fini-provided actions available to Tool nodes.
</ResponseField>

<ResponseField name="tagGroups" type="TagGroup[]">
  Input tag groups and their tags.
</ResponseField>

<ResponseField name="widgetForms" type="WidgetForm[]">
  Widget forms and their typed fields.
</ResponseField>

<ResponseField name="contextFields" type="ContextField[]">
  Empty for intent rules.
</ResponseField>

<ResponseField name="operatorTypes" type="Operator[]">
  Condition operators as `{ value, label }` objects.
</ResponseField>

<ResponseField name="quantifierTypes" type="Quantifier[]">
  Array quantifiers as `{ value, label }` objects.
</ResponseField>

<ResponseField name="sources" type="string[]">
  Interaction sources available in the workspace.
</ResponseField>

## Errors

<AccordionGroup>
  <Accordion title="400 Bad Request" icon="circle-exclamation">
    `type` is not a supported rule type.
  </Accordion>

  <Accordion title="401 Unauthorized" icon="lock">
    The API key is missing, malformed, revoked, or invalid.
  </Accordion>

  <Accordion title="403 Forbidden" icon="shield-halved">
    The API key does not include the `read` scope required for this route.
  </Accordion>
</AccordionGroup>
