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

# lesson_user_data

> The lesson_user_data object contains information about a user's interaction with lessons.

## Properties

<ParamField path="progress" type="number" default="0">
  The user's progress through the content (percentage from 0 to 100).
</ParamField>

<ParamField path="visible" type="boolean" default="true">
  Whether the content is visible to the current user.
</ParamField>

<ParamField path="expired" type="boolean" default="false">
  Whether user access to that lesson has expired.
</ParamField>

<ParamField path="delivery_date" type="string">
  Date when the lesson will be accessible to the current user, if it's not immediately available. Format: `YYYY-MM-DD`.
</ParamField>

## Scope

It's accessible through a lesson.

<Frame>
  ```mermaid theme={null}
  graph TD
      A[Global Context] --> B[all_lessons]
      B --> C[lesson]
      C --> D[lesson_user_data]
      style A fill:#f9f9f9,stroke:#333,stroke-width:2px,color:#333,stroke-dasharray: 5 5
      style B fill:#4B96FF,stroke:#333,stroke-width:1px,color:white,font-weight:bold;
      style C fill:#FFFFFF,stroke:#333,stroke-width:1px,color:#666;
      style D fill:#FFFFFF,stroke:#333,stroke-width:1px,color:#666;
      linkStyle 0 stroke:#4B96FF,stroke-width:2px
  ```
</Frame>

<Panel>
  <Tabs>
    <Tab title="Example">
      <CodeGroup>
        ```json Active lesson theme={null}
        {
          "progress": 75,
          "visible": true,
          "expired": false,
          "delivery_date": "2023-10-15"
        }
        ```

        ```json To be delivered theme={null}
        {
          "progress": 0,
          "visible": true,
          "expired": false,
          "delivery_date": "2090-10-15"
        }
        ```

        ```json Expired theme={null}
        {
          "progress": 75,
          "visible": true,
          "expired": true,
          "delivery_date": ""
        }
        ```

        ```json Not accessible theme={null}
        {
          "progress": 0,
          "visible": false,
          "expired": false,
          "delivery_date": ""
        }
        ```
      </CodeGroup>
    </Tab>
  </Tabs>
</Panel>
