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

# Quiz journey of a lead

> The quiz steps a lead went through in order, with the time spent on each, the answers given per step and whether the session ended in a submit. Partial leads are masked without the Partial Leads add-on.



## OpenAPI

````yaml https://backend-v2.landerlab.workers.dev/api/v2/openapi.json get /api/v2/organizations/{organizationId}/leads/{id}/journey
openapi: 3.1.0
info:
  title: LanderLab API
  version: 2.0.0
  description: >-
    LanderLab public API. Authenticate with an API key using the X-API-Key
    header.
servers:
  - url: https://api.landerlab.dev
    description: Production
security: []
tags:
  - name: Account
    description: >-
      Discover the organization and workspaces your API key can access. Start
      here.
  - name: Workspaces
    description: List and manage workspaces.
  - name: Landers
    description: Create, update, publish and manage landers.
  - name: A/B Testing
    description: Manage variants and split-test weights.
  - name: Editor
    description: Load and save lander content and settings.
  - name: Analytics
    description: Query unified analytics across workspaces, landers and variants.
  - name: Engagement
    description: >-
      Per-lander engagement reports: engagement rate, scroll depth, attention,
      clicks, web vitals, JS errors and live visitors.
  - name: Leads
    description: Retrieve captured leads.
  - name: Integrations
    description: Manage account-level integrations.
  - name: Lander Integrations
    description: Attach and toggle integrations on landers.
  - name: Domains
    description: Manage custom domains.
  - name: Folders
    description: Organize landers into folders.
paths:
  /api/v2/organizations/{organizationId}/leads/{id}/journey:
    get:
      tags:
        - Leads
      summary: Quiz journey of a lead
      description: >-
        The quiz steps a lead went through in order, with the time spent on
        each, the answers given per step and whether the session ended in a
        submit. Partial leads are masked without the Partial Leads add-on.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Lead journey
          content:
            application/json:
              schema:
                type: object
                properties:
                  lead:
                    type: object
                    properties:
                      id:
                        type: number
                      status:
                        type: string
                      quizId:
                        type:
                          - string
                          - 'null'
                      quizEventSessionId:
                        type:
                          - string
                          - 'null'
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                    required:
                      - id
                      - status
                      - quizId
                      - quizEventSessionId
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                  quiz:
                    anyOf:
                      - type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          steps:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  type: string
                                index:
                                  type: number
                              required:
                                - id
                                - name
                                - index
                              additionalProperties: false
                        required:
                          - id
                          - name
                          - steps
                        additionalProperties: false
                      - type: 'null'
                  outcome:
                    type: string
                    enum:
                      - submitted
                      - finalized
                      - abandoned
                  start:
                    anyOf:
                      - type: object
                        properties:
                          stepId:
                            type: string
                          stepName:
                            type: string
                          index:
                            type: number
                          inferred:
                            type: boolean
                            const: true
                        required:
                          - stepId
                          - stepName
                          - index
                          - inferred
                        additionalProperties: false
                      - type: 'null'
                  steps:
                    type: array
                    items:
                      type: object
                      properties:
                        stepId:
                          type: string
                        stepName:
                          type: string
                        index:
                          type:
                            - number
                            - 'null'
                        enteredAt:
                          type: string
                        msOnStep:
                          type:
                            - number
                            - 'null'
                        direction:
                          type: string
                          enum:
                            - start
                            - forward
                            - back
                            - jump
                        submitted:
                          type: boolean
                        answers:
                          type: array
                          items:
                            type: object
                            properties:
                              key:
                                type: string
                              label:
                                type: string
                              value:
                                type: string
                            required:
                              - key
                              - label
                              - value
                            additionalProperties: false
                      required:
                        - stepId
                        - stepName
                        - index
                        - enteredAt
                        - msOnStep
                        - direction
                        - submitted
                        - answers
                      additionalProperties: false
                  totalMs:
                    type:
                      - number
                      - 'null'
                required:
                  - lead
                  - quiz
                  - outcome
                  - start
                  - steps
                  - totalMs
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key with ll_live_ prefix

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.