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

# List setup attempts

> List retained WhatsApp setup-link attempts for this customer, newest first.



## OpenAPI

````yaml /api/platform/v1/openapi-platform.yaml get /customers/{customer_id}/setup_attempts
openapi: 3.1.0
info:
  title: Kapso Platform API
  version: 0.2.0
  description: >
    Build WhatsApp messaging into your product. Manage customers, connect phone
    numbers, send broadcasts, and handle conversations.
servers:
  - url: https://api.kapso.ai/platform/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Customers
    description: Manage customer accounts
  - name: Setup Links
    description: WhatsApp onboarding via embedded signup
  - name: Phone Numbers
    description: Connect and manage WhatsApp numbers
  - name: Webhooks
    description: Subscribe to WhatsApp events
  - name: Display Names
    description: Update WhatsApp business display names
  - name: Broadcasts
    description: |
      Send template messages at scale

      **Alpha**: This API is in alpha and subject to change
  - name: Conversations
    description: Manage conversation state
  - name: Media
    description: Upload media files for WhatsApp messaging
  - name: Users
    description: Manage project team members
  - name: Inbox Embeds
    description: Create and manage embeddable inbox access links
  - name: Webhook Deliveries
    description: View webhook delivery attempts and their status
  - name: External API Logs
    description: View logs of external API calls made by the project
  - name: Log Search
    description: Search log events across API, Meta, workflow, and webhook sources
  - name: Events
    description: Emit and query project-scoped events
  - name: Provider Models
    description: List available AI provider models
  - name: WhatsApp Flows
    description: Build interactive WhatsApp Flows for surveys and forms
  - name: Contacts
    description: Manage WhatsApp contacts
  - name: Findings
    description: Detect recurring problems in conversations and investigate them with AI
  - name: Notifications
    description: >-
      Route project alerts to shared inboxes and Slack channels connected from
      the Kapso app
  - name: WhatsApp Migrations
    description: >-
      Add existing accounts to an active Multi-partner Solution or move a number
      between solutions
  - name: WhatsApp Funding
    description: >-
      Read Kapso funding status and recorded messaging and calling usage, and
      stop portfolio funding
  - name: Business Verification
    description: >-
      Send business verification documents to Meta for a customer's business
      portfolio
paths:
  /customers/{customer_id}/setup_attempts:
    get:
      tags:
        - Setup Links
      summary: List setup attempts
      description: >-
        List retained WhatsApp setup-link attempts for this customer, newest
        first.
      operationId: listCustomerSetupAttempts
      parameters:
        - name: customer_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: setup_link_id
          in: query
          schema:
            type: string
            format: uuid
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
        - name: after
          in: query
          schema:
            type: string
        - name: before
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Setup attempts and cursor pagination.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupAttemptListResponse'
        '400':
          description: Invalid pagination parameters.
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  schemas:
    SetupAttemptListResponse:
      type: object
      required:
        - data
        - paging
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/SetupAttempt'
        paging:
          type: object
          required:
            - cursors
            - next
            - previous
          properties:
            cursors:
              type: object
              properties:
                before:
                  type:
                    - string
                    - 'null'
                after:
                  type:
                    - string
                    - 'null'
            next:
              type:
                - string
                - 'null'
            previous:
              type:
                - string
                - 'null'
    SetupAttempt:
      type: object
      required:
        - id
        - status
        - current_step
        - created_at
        - blocker_codes
      properties:
        id:
          type: string
          format: uuid
        customer_setup_link_id:
          type:
            - string
            - 'null'
          format: uuid
        status:
          type: string
          enum:
            - created
            - awaiting_meta
            - awaiting_selection
            - queued
            - processing
            - completed
            - completed_with_recovery
            - failed
            - cancelled
            - expired
        current_step:
          type: string
        connection_type:
          type:
            - string
            - 'null'
          enum:
            - coexistence
            - dedicated
            - null
        created_at:
          type: string
          format: date-time
        oauth_callback_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Observed browser authorization callback time, when recorded.
        queued_at:
          type:
            - string
            - 'null'
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Time the attempt recorded a terminal outcome, including failures and
            expirations.
        waba_id:
          type:
            - string
            - 'null'
        phone_number_id:
          type:
            - string
            - 'null'
        meta_session_id:
          type:
            - string
            - 'null'
        failure_code:
          type:
            - string
            - 'null'
        failure_message:
          type:
            - string
            - 'null'
        blocker_codes:
          type:
            - array
            - 'null'
          description: Blockers recorded at completion. Null when no snapshot was stored.
          items:
            type: string
            examples:
              - meta_missing_whatsapp_permissions
              - managed_billing_attention
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  responses:
    UnauthorizedError:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFoundError:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

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