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

# Accept Invite

> Invite acceptance runs its own Bearer-only auth path so we link the
created `merchant_users` row to the actual Supabase auth.users.id,
not to a synthetic legacy record.



## OpenAPI

````yaml /api-reference/openapi.json post /api/dashboard/invites/accept
openapi: 3.1.0
info:
  title: Agentic Commerce API
  description: |2-

        Agentic Commerce API - E-commerce Backend

        ## APIs

        ### Dashboard API (`/api/dashboard`)
        Authenticated endpoints for merchant management:
        - Products, Variants, Options
        - Inventory management
        - Orders and fulfillment
        - Customers
        - Collections

        ### Storefront API (`/api/storefront`)
        Public endpoints for client websites:
        - Product catalog
        - Collections
        - Cart management
        - Checkout

        ### Sync API (`/api/sync`)
        Integration endpoints for zunkiree-search:
        - Product sync
        - Availability checks
        - Order creation from AI widget
        
  version: 1.0.0
servers: []
security: []
paths:
  /api/dashboard/invites/accept:
    post:
      tags:
        - Dashboard
        - Auth
      summary: Accept Invite
      description: |-
        Invite acceptance runs its own Bearer-only auth path so we link the
        created `merchant_users` row to the actual Supabase auth.users.id,
        not to a synthetic legacy record.
      operationId: accept_invite_api_dashboard_invites_accept_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InviteAcceptRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InviteAcceptResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    InviteAcceptRequest:
      properties:
        token:
          type: string
          maxLength: 255
          minLength: 1
          title: Token
      type: object
      required:
        - token
      title: InviteAcceptRequest
    InviteAcceptResponse:
      properties:
        merchant_id:
          type: string
          format: uuid
          title: Merchant Id
        role:
          type: string
          title: Role
      type: object
      required:
        - merchant_id
        - role
      title: InviteAcceptResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````