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

# Read initialization progress

> Shows how far initialization of the active revision has got. Counters are null unless the lifecycle is `Initializing`. 503: progress is temporarily unavailable; retry.



## OpenAPI

````yaml /api-reference/openapi/configuration.json get /v1/lifecycles/{id}/initialization
openapi: 3.2.0
info:
  title: Configuration API
  description: >-
    Manages applications, sources, source properties, source folders, managed
    tags and their values, card definitions, their segments and relation
    definitions; manages destinations, their versions and endpoints, and
    publishes versions; and authors, previews and activates card lifecycles.
    Card property changes are saved as pending changes and take effect when the
    card definition is activated. Source property changes and source deletion
    can finish asynchronously. The tenant comes from the access token.
    Successful responses return the resource itself; lists return a page with
    `items`, the `after` cursor for the next page and, when asked for,
    `totalCount` (`limit` default 50, max 200; lifecycle lists default 25, max
    100). Application updates replace the settings and need the latest `etag`;
    secrets are returned only when created. Errors are problem details
    (`application/problem+json`). Values are PascalCase in REST and UPPER_CASE
    in GraphQL.
  version: 1.0.0
servers:
  - url: https://api.occtoo.com
security: []
tags:
  - name: Applications
  - name: Card definitions
  - name: Card exports
  - name: Destination endpoints
  - name: Destination versions
  - name: Destinations
  - name: Languages
  - name: Lifecycles
  - name: Managed tag values
  - name: Managed tags
  - name: Relation definitions
  - name: Segments
  - name: Sources
paths:
  /v1/lifecycles/{id}/initialization:
    get:
      tags:
        - Lifecycles
      summary: Read initialization progress
      description: >-
        Shows how far initialization of the active revision has got. Counters
        are null unless the lifecycle is `Initializing`. 503: progress is
        temporarily unavailable; retry.
      operationId: GetLifecycleInitialization
      parameters:
        - name: id
          in: path
          description: Id of the lifecycle (a UUID).
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LifecycleInitializationResponse'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/HttpValidationProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying.
              schema:
                minimum: 1
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: Service Unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - kindeOAuth: []
        - bearerAuth: []
        - apiKey: []
components:
  schemas:
    LifecycleInitializationResponse:
      required:
        - lifecycleId
        - activeRevision
        - state
        - activationId
        - startedAt
        - identifiedEntries
        - assessedEntries
        - projectedEntries
        - failedBatches
        - reported
        - scanComplete
      type: object
      properties:
        lifecycleId:
          type: string
          description: Id of the lifecycle (a UUID).
          format: uuid
        activeRevision:
          type:
            - 'null'
            - integer
          description: >-
            Number of the revision being initialized, or of the active one. Null
            before the first activation.
          format: int64
        state:
          $ref: '#/components/schemas/LifecycleState'
          description: State of the lifecycle. Initialization is done when it's `Ready`.
        activationId:
          type:
            - 'null'
            - string
          description: >-
            `requestId` of the activation being initialized. Null unless the
            lifecycle is `Initializing`.
          format: uuid
        startedAt:
          type:
            - 'null'
            - string
          description: >-
            When initialization started (UTC). Null unless the lifecycle is
            `Initializing`.
          format: date-time
        identifiedEntries:
          type:
            - 'null'
            - integer
          description: >-
            Number of entries to assess. Null until all of them have been found
            (`scanComplete`).
          format: int64
        assessedEntries:
          type:
            - 'null'
            - integer
          description: >-
            Number of entries assessed so far. Null unless the lifecycle is
            `Initializing`.
          format: int64
        projectedEntries:
          type:
            - 'null'
            - integer
          description: >-
            Number of entries whose results have been written for search so far.
            Null unless the lifecycle is `Initializing`.
          format: int64
        failedBatches:
          type:
            - 'null'
            - integer
          description: >-
            More than 0 when initialization has recorded an error. Null unless
            the lifecycle is `Initializing`.
          format: int64
        reported:
          type: boolean
          description: >-
            True once initialization has finished and been recorded. Always true
            when `state` is `Ready`.
        scanComplete:
          type: boolean
          description: >-
            True once every entry to assess has been found. False unless the
            lifecycle is `Initializing`.
      description: >-
        Describes the progress of a lifecycle's initialization, which assesses
        every entry under the active revision. Search works meanwhile, covering
        the entries assessed so far. Counters are null unless the lifecycle is
        `Initializing`.
    HttpValidationProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
    LifecycleState:
      enum:
        - Draft
        - Initializing
        - Ready
      description: Tracks whether a lifecycle is a draft, being initialized or ready.
      x-enum-descriptions:
        Draft: >-
          Not live: the lifecycle has never been activated. Its definition is
          pending.
        Initializing: >-
          In progress: the activated revision is assessing every entry. Search
          works, covering the entries assessed so far. Updates and activations
          fail with a conflict until it's ready.
        Ready: 'Live: every entry has been assessed under the active revision.'
  securitySchemes:
    kindeOAuth:
      type: oauth2
      description: >-
        Sign in with the existing Occtoo Studio identity and selected
        organization.
      flows:
        authorizationCode:
          authorizationUrl: >-
            https://auth.occtoo.com/oauth2/auth?audience=https%3A%2F%2Fapi-weu.occtoo.com
          tokenUrl: https://auth.occtoo.com/oauth2/token
          scopes:
            openid: Authenticate the user with OpenID Connect.
            profile: Read the user's basic profile.
            email: Read the user's email address.
            offline: Refresh the access token without another interactive sign-in.
          x-usePkce: SHA-256
          x-scalar-redirect-uri: https://api.occtoo.com/docs/
    bearerAuth:
      type: http
      description: >-
        Tenant-scoped Occtoo access token, including Kinde machine-to-machine
        application tokens.
      scheme: bearer
      bearerFormat: JWT
    apiKey:
      type: apiKey
      description: Occtoo organization API key.
      name: x-api-key
      in: header

````

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