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

# Complete Onboarding Step

> Mark a specific onboarding step as complete.

Idempotent — completing an already-completed step is a no-op.
Returns the updated full onboarding state plus confirmation of the step.

Valid step IDs: connect_first_integration, configure_notifications,
invite_team_member, review_first_pattern, set_alert_rules,
generate_first_report.



## OpenAPI

````yaml /openapi.json post /v1/onboarding/steps/{step}/complete
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/onboarding/steps/{step}/complete:
    post:
      tags:
        - onboarding
      summary: Complete Onboarding Step
      description: |-
        Mark a specific onboarding step as complete.

        Idempotent — completing an already-completed step is a no-op.
        Returns the updated full onboarding state plus confirmation of the step.

        Valid step IDs: connect_first_integration, configure_notifications,
        invite_team_member, review_first_pattern, set_alert_rules,
        generate_first_report.
      operationId: complete_onboarding_step_v1_onboarding_steps__step__complete_post
      parameters:
        - description: Onboarding step ID to mark complete
          in: path
          name: step
          required: true
          schema:
            description: Onboarding step ID to mark complete
            title: Step
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompleteStepResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    CompleteStepResponse:
      properties:
        completed:
          title: Completed
          type: boolean
        onboarding:
          $ref: '#/components/schemas/OnboardingStateResponse'
        step:
          title: Step
          type: string
      required:
        - step
        - completed
        - onboarding
      title: CompleteStepResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    OnboardingStateResponse:
      description: |-
        Flattened onboarding state returned by the API.

        Maps the internal _SEED_ONBOARDING dict to a clean response shape.
        Spec shape (C-022):
          current_step, completed_steps, workspace_created, members_invited,
          connectors_connected, alert_rule_created, first_sync, updated_at
      properties:
        alert_rule_created:
          title: Alert Rule Created
          type: boolean
        completed_steps:
          items:
            type: string
          title: Completed Steps
          type: array
        connectors_connected:
          title: Connectors Connected
          type: integer
        current_step:
          title: Current Step
          type: string
        first_sync:
          $ref: '#/components/schemas/FirstSyncStatus'
        members_invited:
          title: Members Invited
          type: integer
        updated_at:
          title: Updated At
          type: string
        workspace_created:
          title: Workspace Created
          type: boolean
      required:
        - current_step
        - completed_steps
        - workspace_created
        - members_invited
        - connectors_connected
        - alert_rule_created
        - first_sync
        - updated_at
      title: OnboardingStateResponse
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    FirstSyncStatus:
      properties:
        issues_ingested:
          default: 0
          title: Issues Ingested
          type: integer
        status:
          title: Status
          type: string
      required:
        - status
      title: FirstSyncStatus
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````