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

> Get WhatsApp onboarding links for a customer, most recent first.



## OpenAPI

````yaml /api/platform/v1/openapi-platform.yaml get /customers/{customer_id}/setup_links
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 Logs V2 events across API, Meta, workflow, and webhook sources
  - 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
paths:
  /customers/{customer_id}/setup_links:
    parameters:
      - name: customer_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    get:
      tags:
        - Setup Links
      summary: List setup links
      description: Get WhatsApp onboarding links for a customer, most recent first.
      operationId: listCustomerSetupLinks
      parameters:
        - name: status
          in: query
          schema:
            type: string
            enum:
              - active
              - used
              - expired
              - revoked
        - name: created_after
          in: query
          schema:
            type: string
            format: date-time
        - name: created_before
          in: query
          schema:
            type: string
            format: date-time
        - name: per_page
          in: query
          schema:
            type: integer
            minimum: 1
            default: 20
        - name: page
          in: query
          schema:
            type: integer
            minimum: 1
            default: 1
      responses:
        '200':
          description: Success
          headers:
            X-Total:
              schema:
                type: integer
            X-Total-Pages:
              schema:
                type: integer
            X-Per-Page:
              schema:
                type: integer
            X-Page:
              schema:
                type: integer
            Link:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupLinkListResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  schemas:
    SetupLinkListResponse:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/SetupLink'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
    SetupLink:
      type: object
      required:
        - id
        - status
        - created_at
        - url
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - active
            - used
            - expired
            - revoked
        created_at:
          type: string
          format: date-time
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Expires 30 days after creation by default
        url:
          type: string
          format: uri
        success_redirect_url:
          type:
            - string
            - 'null'
          format: uri
        failure_redirect_url:
          type:
            - string
            - 'null'
          format: uri
        allowed_connection_types:
          type: array
          description: |
            `coexistence` - Use with WhatsApp Business App (5 msg/sec)
            `dedicated` - API-only through Kapso (up to 1000 msg/sec)

            Provide one value to auto-select for customer
          items:
            type: string
            enum:
              - coexistence
              - dedicated
          default:
            - coexistence
            - dedicated
        theme_config:
          type:
            - object
            - 'null'
          description: Hex colors for hosted onboarding page
          properties:
            primary_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Primary action buttons (default
            primary_foreground_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Text on primary buttons (default
            background_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Page background (default
            text_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Body text (default
            muted_text_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Secondary text (default
            card_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Card backgrounds (defaults to background_color)
            muted_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Disabled elements (default
            border_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Borders and dividers (default
            secondary_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Secondary buttons (default
            secondary_foreground_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Text on secondary buttons (default
            destructive_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Error/danger buttons (default
            destructive_foreground_color:
              type: string
              pattern: ^#[0-9A-Fa-f]{6}$
              description: Text on destructive buttons (default
        provision_phone_number:
          type:
            - boolean
            - 'null'
          description: Auto-provision number during onboarding
        phone_number_area_code:
          type:
            - string
            - 'null'
          description: US area code for provisioned numbers
        phone_number_country_isos:
          type: array
          description: Allowed countries for provisioning (defaults to ["US"])
          items:
            type: string
            pattern: ^[A-Z]{2}$
        reconnect_phone_number:
          type:
            - string
            - 'null'
          description: >
            Normalized E.164 digits of the customer's existing WhatsApp number
            this link is targeting for reconnect.


            Set this on create to scope the setup flow to a specific existing
            WhatsApp config for the same customer (token refresh / re-auth).
            When present, `provision_phone_number` is forced to `false` and
            `allowed_connection_types` is locked to match the existing config
            (`["dedicated"]` or `["coexistence"]`).
        language:
          type:
            - string
            - 'null'
          description: >-
            ISO 639-1 language code for setup link UI (en, es, pt, hi, id, ar).
            Defaults to user's browser language.
          enum:
            - en
            - es
            - pt
            - hi
            - id
            - ar
            - null
        whatsapp_setup_status:
          type: string
          enum:
            - pending
            - processing
            - completed
            - failed
        whatsapp_setup_error:
          type:
            - string
            - 'null'
        provisioned_phone_number:
          allOf:
            - $ref: '#/components/schemas/PhoneNumberReference'
    PaginationMeta:
      type: object
      required:
        - page
        - per_page
        - total_pages
        - total_count
      properties:
        page:
          type: integer
          minimum: 1
        per_page:
          type: integer
          minimum: 1
        total_pages:
          type: integer
          minimum: 0
        total_count:
          type: integer
          minimum: 0
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    PhoneNumberReference:
      type: object
      required:
        - id
        - phone_number
        - status
        - country_iso
        - country_dial_code
      properties:
        id:
          type: string
          format: uuid
        phone_number:
          type: string
        status:
          type: string
        area_code:
          type:
            - string
            - 'null'
        country_iso:
          type: string
        country_dial_code:
          type: string
        display_number:
          type:
            - string
            - 'null'
  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

````