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

# Search the entries related to one card entry

> Returns the entries on the other side of the relation, in the card search response shape. where, sort,
properties, language, limit (1–100, default 25), after, includeEntries, includeTotalCount and
includeSegments apply to the related card definition. Sort by @position alone to follow the relation's
own order. lifecycleIds and facets are not supported and return 400; lifecycles is always empty.
An unknown card definition, entry or relation returns 404. Request limit 1 MiB, response limit 8 MiB.



## OpenAPI

````yaml /api-reference/openapi/ingest.json post /v1/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/search
openapi: 3.1.1
info:
  title: Occtoo Ingest API
  description: >-
    Submit source entries to the authenticated Occtoo tenant. Tenant identity
    always comes from the credential; it is never accepted from the route or
    request body.


    ## Authentication and access


    Select **Authorize** to reuse the existing Occtoo browser session, provide a
    tenant-scoped bearer token, or send an organization API key through
    `x-api-key`. The legacy import operations accept either the established
    `import-datasource` permission or the tenant-application `write:sources`
    scope. `POST /sources/<sourceId>` accepts only `write:sources`.


    Kinde application scopes are projected unchanged by the gateway.
    `AuthorizeAny` gives applications, users, and organization API keys one
    endpoint policy while preserving the established provider permission. Tenant
    applications use `write:sources` as the capability and Occtoo-owned resource
    grants to allow every source or selected sources. Legacy data-provider
    applications remain restricted to their assigned sources.


    The credential-exchange endpoint is an anonymous convenience for server-side
    data-provider integrations. It accepts a provider id and secret in the
    request body and is not an OAuth client-credentials endpoint.


    ## Payload rules


    - Entry keys must be unique within a request, compared case-insensitively.

    - Property ids are canonicalized to lowercase at rest.

    - A property id may repeat only when its language differs.

    - Reserved system properties are rejected.

    - Request, entry and property-value ceilings are tenant-configured and
    returned in validation errors when exceeded.


    `POST /sources/<sourceId>` accepts native JSON strings, numbers, booleans,
    nulls, and string arrays. Configured properties require the matching JSON
    shape. Missing or untyped properties are inferred from their JSON values;
    string arrays use the configured delimiter or `,` when none is set. Values
    are serialized to strings before they enter the existing asynchronous ingest
    pipeline.


    `POST /datasources/<dataSource>/import` returns `202` when accepted for
    asynchronous processing.


    Retry `429` and transient `5xx` responses with bounded exponential backoff.
    Do not retry a successful `202` merely because downstream processing has not
    completed.


    Machine-readable contract:
    [OpenAPI](https://api.occtoo.com/openapi/ingest.json)
  version: 1.0.0
  summary: Validate and ingest tenant-scoped source entries.
servers:
  - url: https://api.occtoo.com
    description: Occtoo public API
security: []
tags:
  - name: Ingest
    description: Submit source-entry payloads for asynchronous processing.
  - name: Sources
    description: Submit strongly typed JSON source entries.
  - name: Authentication
    description: Exchange registered data-provider credentials for an Occtoo bearer token.
  - name: Cards
    description: Indexed card search and saved lifecycle explanations. Requires read:cards.
paths:
  /v1/card-definitions/{cardId}/entries/{entryId}/relations/{relationId}/search:
    post:
      tags:
        - Cards
      summary: Search the entries related to one card entry
      description: >-
        Returns the entries on the other side of the relation, in the card
        search response shape. where, sort,

        properties, language, limit (1–100, default 25), after, includeEntries,
        includeTotalCount and

        includeSegments apply to the related card definition. Sort by @position
        alone to follow the relation's

        own order. lifecycleIds and facets are not supported and return 400;
        lifecycles is always empty.

        An unknown card definition, entry or relation returns 404. Request limit
        1 MiB, response limit 8 MiB.
      operationId: SearchRelatedCardEntries
      parameters:
        - name: cardId
          in: path
          required: true
          schema:
            type: string
        - name: entryId
          in: path
          required: true
          schema:
            type: string
        - name: relationId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchCardEntriesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardEntriesResponse'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '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'
        '413':
          description: Payload Too Large
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '415':
          description: Unsupported Media Type
          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:
    SearchCardEntriesRequest:
      type: object
      properties:
        where:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SearchPredicate'
        language:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Language'
        sort:
          type: array
          items:
            $ref: '#/components/schemas/Sort'
        properties:
          type: array
        lifecycleIds:
          type: array
          items:
            type: string
            format: uuid
        limit:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        after:
          type:
            - 'null'
            - string
        includeEntries:
          type: boolean
        includeTotalCount:
          type: boolean
        includeSegments:
          type: boolean
        facets:
          type: array
          items:
            $ref: '#/components/schemas/FacetQuery'
    CardEntriesResponse:
      required:
        - items
        - after
        - totalCount
        - lifecycleStates
        - facets
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/CardEntryResponse'
        after:
          type:
            - 'null'
            - string
        totalCount:
          type:
            - 'null'
            - integer
          format: int64
        lifecycleStates:
          type: array
          items:
            $ref: '#/components/schemas/LifecycleSearchState'
        facets:
          type: array
          items:
            $ref: '#/components/schemas/CardFacetResponse'
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          description: A URI reference identifying the problem type.
        title:
          type: string
          description: A short summary of the problem.
        status:
          type: integer
        detail:
          type: string
          description: A human-readable explanation of this occurrence.
        instance:
          type: string
          description: A URI reference identifying this occurrence.
        traceId:
          type: string
          description: W3C OpenTelemetry trace id for diagnostics.
    SearchPredicate:
      type: object
      properties:
        and:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/SearchPredicate'
          description: Every child condition must match.
        or:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/SearchPredicate'
          description: At least one child condition must match.
        not:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SearchPredicate'
              description: The child condition must not match.
        text:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TextPredicate'
              description: >-
                A condition on text, including substring, RE2 regex and length
                checks.
        integer:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/IntegerPredicate'
              description: A condition on an integer property.
        decimal:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/DecimalPredicate'
              description: A condition on a decimal property.
        timestamp:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TimestampPredicate'
              description: A condition on a timestamp property.
        boolean:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/BooleanPredicate'
              description: A condition on a boolean property.
        list:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ListPredicate'
              description: A condition on list elements or length.
        hasValue:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/PropertyReference'
              description: >-
                True when a value exists. Empty text, whitespace and empty lists
                count as values.
        segment:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SegmentPredicate'
              description: Membership in a segment.
        relation:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/RelationPredicate'
              description: >-
                Tests distinct live related entries. All nested conditions apply
                to the same child.
        lifecycle:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecyclePredicate'
              description: Saved readiness of the entry under an active lifecycle.
      description: >-
        Holds a typed condition on an entry. Set exactly one branch; `and` and
        `or` need at least one child.
    Language: {}
    Sort:
      required:
        - property
        - direction
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: >-
            Id of the property to sort by: a card property for card entries, a
            source property for source entries. It must be indexed for search
            and have a usable type: the source property's type, or a supported
            conversion configured on it.
        direction:
          $ref: '#/components/schemas/SortDirection'
          description: Sort direction.
        mode:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ListSortMode'
              description: >-
                Which element of a list property the sort compares. Required for
                a list property, and must be null for any other property.
      description: One sort key for entries.
    FacetQuery:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
        contains:
          type:
            - 'null'
            - string
        ignoreCase:
          type: boolean
          default: false
        sort:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/FacetSort'
        first:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
          default: 50
        after:
          type:
            - 'null'
            - string
        exclude:
          type:
            - 'null'
            - array
          items:
            type: string
    CardEntryResponse:
      required:
        - id
        - createdAt
        - updatedAt
        - properties
        - lifecycles
        - segments
      type: object
      properties:
        id:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        properties:
          type: array
          items:
            $ref: '#/components/schemas/CardEntryPropertyResponse'
        lifecycles:
          type: array
          items:
            $ref: '#/components/schemas/EntryReadinessResponse'
        segments:
          type:
            - 'null'
            - array
          items:
            type: string
    LifecycleSearchState:
      required:
        - lifecycleId
        - activeRevision
        - state
      type: object
      properties:
        lifecycleId:
          type: string
          description: >-
            Raw id of the lifecycle (a UUID), as `Lifecycle.lifecycleId` has it;
            not the global `Lifecycle.id`.
          format: uuid
        activeRevision:
          type:
            - 'null'
            - integer
          description: >-
            Number of the lifecycle's active revision; null before its first
            activation.
          format: int64
        state:
          $ref: '#/components/schemas/LifecycleState'
          description: Whether the lifecycle is a draft, initializing or ready.
      description: >-
        The current state of one lifecycle that a `lifecycle` filter in the
        connection's `where` names, even when no entry matches.
    CardFacetResponse:
      required:
        - property
        - items
        - after
        - totalCount
      type: object
      properties:
        property:
          type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/CardFacetBucketResponse'
        after:
          type:
            - 'null'
            - string
        totalCount:
          type: integer
          format: int64
    TextPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        eq:
          type:
            - 'null'
            - string
          description: Equal to this value.
        neq:
          type:
            - 'null'
            - string
          description: Different from this value.
        in:
          type:
            - 'null'
            - array
          items:
            type: string
          description: Equal to any listed value.
        contains:
          type:
            - 'null'
            - string
          description: A literal substring.
        pattern:
          type:
            - 'null'
            - string
          description: A whole-value wildcard pattern using * and ?.
        ignoreCase:
          type: boolean
          description: Whether matching ignores case.
          default: false
        languages:
          type:
            - 'null'
            - array
          description: Every listed language must match. There is no language fallback.
        regex:
          type:
            - 'null'
            - string
          description: >-
            A substring pattern using the supported RE2 subset, validated
            locally.
        length:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CountBounds'
              description: Bounds on the number of Unicode code points.
      description: Tests a text card property.
    IntegerPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        eq:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Equal to this value.
          format: int64
        neq:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Different from this value.
          format: int64
        in:
          type:
            - 'null'
            - array
          items:
            pattern: ^-?(?:0|[1-9]\d*)$
            type:
              - integer
              - string
            format: int64
          description: Equal to any listed value.
        lt:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Less than this value.
          format: int64
        lte:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Less than or equal to this value.
          format: int64
        gt:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Greater than this value.
          format: int64
        gte:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Greater than or equal to this value.
          format: int64
      description: Tests an integer card property.
    DecimalPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        eq:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - 'null'
            - number
            - string
          description: Equal to this value.
          format: double
        neq:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - 'null'
            - number
            - string
          description: Different from this value.
          format: double
        in:
          type:
            - 'null'
            - array
          items:
            pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
            type:
              - number
              - string
            format: double
          description: Equal to any listed value.
        lt:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - 'null'
            - number
            - string
          description: Less than this value.
          format: double
        lte:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - 'null'
            - number
            - string
          description: Less than or equal to this value.
          format: double
        gt:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - 'null'
            - number
            - string
          description: Greater than this value.
          format: double
        gte:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - 'null'
            - number
            - string
          description: Greater than or equal to this value.
          format: double
      description: Tests a decimal card property.
    TimestampPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        eq:
          type:
            - 'null'
            - string
          description: Equal to this value.
          format: date-time
        neq:
          type:
            - 'null'
            - string
          description: Different from this value.
          format: date-time
        in:
          type:
            - 'null'
            - array
          items:
            type: string
            format: date-time
          description: Equal to any listed value.
        lt:
          type:
            - 'null'
            - string
          description: Less than this value.
          format: date-time
        lte:
          type:
            - 'null'
            - string
          description: Less than or equal to this value.
          format: date-time
        gt:
          type:
            - 'null'
            - string
          description: Greater than this value.
          format: date-time
        gte:
          type:
            - 'null'
            - string
          description: Greater than or equal to this value.
          format: date-time
      description: Tests a timestamp card property.
    BooleanPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        eq:
          type:
            - 'null'
            - boolean
          description: Equal to this value.
        neq:
          type:
            - 'null'
            - boolean
          description: Different from this value.
        in:
          type:
            - 'null'
            - array
          items:
            type: boolean
          description: Equal to any listed value.
      description: Tests a boolean card property.
    ListPredicate:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        contains:
          type:
            - 'null'
            - string
          description: An exact list element to match.
        pattern:
          type:
            - 'null'
            - string
          description: A wildcard pattern applied to each element.
        ignoreCase:
          type: boolean
          description: Whether element matching ignores case.
          default: false
        languages:
          type:
            - 'null'
            - array
          description: Every listed language must match. There is no language fallback.
        length:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CountBounds'
              description: Bounds on list length, including duplicate and empty elements.
        only:
          type:
            - 'null'
            - array
          items:
            type: string
          description: >-
            Every list element must be one of these values. An empty or missing
            list doesn't match.
      description: Tests a list card property.
    PropertyReference:
      required:
        - property
      type: object
      properties:
        property:
          $ref: '#/components/schemas/PropertyId'
          description: Id of the card property.
        languages:
          type:
            - 'null'
            - array
          description: Every listed language must match. There is no language fallback.
      description: Tests that a card property has a value.
    SegmentPredicate:
      required:
        - definitionId
        - id
      type: object
      properties:
        definitionId:
          $ref: '#/components/schemas/SegmentDefinitionId'
          description: Raw id of the segment definition (e.g. `campaigns`).
        id:
          $ref: '#/components/schemas/SegmentId'
          description: Raw id of the segment within that segment definition.
      description: Describes membership in a segment.
    RelationPredicate:
      required:
        - id
      type: object
      properties:
        id:
          $ref: '#/components/schemas/RelationId'
          description: Id of the relation. The current card determines its direction.
        where:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SearchPredicate'
              description: >-
                The condition each counted child must satisfy. Null includes all
                live children.
        count:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CountBounds'
              description: >-
                Bounds on distinct matching children. Null requires at least one
                match.
      description: Tests live related entries.
    LifecyclePredicate:
      required:
        - id
      type: object
      properties:
        id:
          type: string
          description: Id of the lifecycle (a UUID).
          format: uuid
        state:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecycleReadinessState'
              description: Readiness of the whole lifecycle for the entry.
        step:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecycleStepPredicate'
              description: Condition on one step.
        firstIncompleteStepId:
          type:
            - 'null'
            - string
          description: Id of the first step that's incomplete for the entry.
          format: uuid
      description: >-
        Matches entries by their saved readiness under an active lifecycle. Set
        exactly one of `state`, `step` or `firstIncompleteStepId`. Entries
        without a saved assessment stay unknown, even under `not`.
    PropertyId:
      type: string
      description: Identifies a card property (e.g. `title`).
    SortDirection:
      enum:
        - Ascending
        - Descending
      type: string
      description: 'Sort order: ascending or descending.'
    ListSortMode:
      enum:
        - Min
        - Max
        - null
    FacetSort:
      required:
        - by
        - direction
      type: object
      properties:
        by:
          $ref: '#/components/schemas/FacetSortField'
          description: What the values are sorted by.
        direction:
          $ref: '#/components/schemas/SortDirection'
          description: Sort direction.
      description: How facet values are sorted.
    CardEntryPropertyResponse:
      required:
        - id
        - value
        - type
        - delimiter
        - lastUpdated
        - language
      type: object
      properties:
        id:
          type: string
        value:
          oneOf:
            - type: string
            - type: number
            - type: boolean
            - type: array
              items:
                type: string
            - type: 'null'
        type:
          $ref: '#/components/schemas/PropertyDataType'
        delimiter:
          type:
            - 'null'
            - string
        lastUpdated:
          type:
            - 'null'
            - string
          format: date-time
        language:
          type:
            - 'null'
            - string
    EntryReadinessResponse:
      required:
        - lifecycleId
        - activeRevision
        - assessment
      type: object
      properties:
        lifecycleId:
          type: string
          format: uuid
        activeRevision:
          type:
            - 'null'
            - integer
          format: int64
        assessment:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CompactAssessmentResponse'
    LifecycleState:
      enum:
        - Draft
        - Initializing
        - Ready
      type: string
      description: Tracks whether a lifecycle is a draft, being initialized or ready.
    CardFacetBucketResponse:
      required:
        - value
        - count
      type: object
      properties:
        value:
          oneOf:
            - type: string
            - type: number
            - type: boolean
            - type: array
              items:
                type: string
            - type: 'null'
        count:
          type: integer
          format: int64
    CountBounds:
      type: object
      properties:
        eq:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Exactly this many.
          format: int64
        gt:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Greater than this value.
          format: int64
        gte:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Greater than or equal to this value.
          format: int64
        lt:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Less than this value.
          format: int64
        lte:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Less than or equal to this value.
          format: int64
      description: Sets an exact count or a range of nonnegative counts.
    SegmentDefinitionId:
      type: string
      description: Identifies a segment definition by its raw id (e.g. `campaigns`).
    SegmentId:
      type: string
      description: Identifies a segment by its raw id within its segment definition.
    RelationId:
      type: string
      description: Identifies a relation definition by its raw id.
    LifecycleReadinessState:
      enum:
        - Complete
        - Incomplete
        - NotApplicable
      type: string
      description: Saved readiness of an assessed entry. Missing assessments have no state.
    LifecycleStepPredicate:
      required:
        - id
      type: object
      properties:
        id:
          type: string
          description: Id of the step in the active revision (a UUID).
          format: uuid
        requirements:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecycleRequirementsFilter'
              description: >-
                Whether the step's own blocking rules pass, whatever earlier
                steps say.
        completion:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecycleCompletionFilter'
              description: Whether the step and every earlier step are complete.
      description: >-
        Matches one step of a lifecycle. Set exactly one of `requirements` or
        `completion`.
    FacetSortField:
      enum:
        - Count
        - Value
      type: string
      description: What facet buckets are sorted by.
    PropertyDataType:
      enum:
        - Text
        - LocalizedText
        - List
        - LocalizedList
        - Boolean
        - Timestamp
        - Integer
        - Decimal
        - Wildcard
        - null
    CompactAssessmentResponse:
      required:
        - revision
        - evaluatedAt
        - state
        - firstIncompleteStepId
        - steps
      type: object
      properties:
        revision:
          type: integer
          format: int64
        evaluatedAt:
          type: string
          format: date-time
        state:
          $ref: '#/components/schemas/LifecycleReadinessState'
        firstIncompleteStepId:
          type:
            - 'null'
            - string
          format: uuid
        steps:
          type: array
          items:
            $ref: '#/components/schemas/CompactStepResponse'
    LifecycleRequirementsFilter:
      enum:
        - Satisfied
        - Failed
        - null
    LifecycleCompletionFilter:
      enum:
        - Complete
        - Incomplete
        - null
    CompactStepResponse:
      required:
        - stepId
        - requirementsSatisfied
        - complete
        - locked
        - completionReason
      type: object
      properties:
        stepId:
          type: string
          format: uuid
        requirementsSatisfied:
          type: boolean
        complete:
          type: boolean
        locked:
          type: boolean
        completionReason:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LifecycleCompletionReason'
    LifecycleCompletionReason:
      enum:
        - RequirementsSatisfied
        - NoApplicableBlockingRequirements
        - null
  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.