> ## 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.

# List intent-rule versions

> List every version of an intent rule.

Returns the version history for one intent rule. Business Rules do not support this route.

<Info>
  This endpoint supports intent rules only.
</Info>

## Headers

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

## Path parameters

<ParamField path="id" type="string" required>
  Intent-rule ID.
</ParamField>

## Response

<ResponseField name="ruleId" type="string">
  Rule ID.
</ResponseField>

<ResponseField name="currentPublishedVersionId" type="string | null">
  Active published version ID.
</ResponseField>

<ResponseField name="versions" type="RuleVersion[]">
  Version history. Each item uses the shared [`Rule version`](/en/api-reference/rules#rule-version-object) shape without `flowConfig`.
</ResponseField>

## Errors

<AccordionGroup>
  <Accordion title="400 Bad Request" icon="circle-exclamation">
    The specified rule is a Business Rule. Version routes support intent rules only.
  </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>

  <Accordion title="404 Not Found" icon="ghost">
    The rule does not exist in your workspace.
  </Accordion>
</AccordionGroup>
