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

# Create Session

> Creates a new WhatsApp Account Link Session

This endpoint lets you create a new WhatsApp Account Link Session.


## OpenAPI

````yaml api-reference/openapi.json post /api/v1/whatsapp-link-sessions/
openapi: 3.0.3
info:
  title: Wassist API
  version: 1.0.0
  description: API for building WhatsApp AI agents
servers:
  - url: https://backend.wassist.app
    description: Production
  - url: http://localhost:8050
    description: Development
security: []
tags:
  - name: Agents
    description: Create and manage AI agents
  - name: Conversations
    description: Chat conversations and messages
  - name: WhatsApp
    description: WhatsApp Business account management
  - name: Contacts
    description: Contact management
  - name: Integrations
    description: Third-party integrations
paths:
  /api/v1/whatsapp-link-sessions/:
    post:
      tags:
        - api
      description: Create a new WhatsApp Link Session.
      operationId: api_v1_whatsapp_link_sessions_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WhatsAppLinkSession'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatsAppLinkSession'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WhatsAppLinkSession:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        successUrl:
          type: string
          format: uri
        returnUrl:
          type: string
          format: uri
        status:
          allOf:
            - $ref: '#/components/schemas/WhatsAppLinkSessionStatusEnum'
          readOnly: true
        linkUrl:
          type: string
          readOnly: true
      required:
        - id
        - linkUrl
        - returnUrl
        - status
        - successUrl
    WhatsAppLinkSessionStatusEnum:
      enum:
        - PENDING
        - EXPIRED
        - SUCCESS
        - FAILED
      type: string
      description: |-
        * `PENDING` - Pending
        * `EXPIRED` - Expired
        * `SUCCESS` - Success
        * `FAILED` - Failed
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key authentication. Pass your API key in the X-API-Key header.

````