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

# Get QWC file for a connection

> Returns a QWC file for the specified connection



## OpenAPI

````yaml /api-reference/openapi.json get /connections/{connection_id}/qwc
openapi: 3.0.0
info:
  title: QuBe Sync API
  description: Integrate with QuickBooks Desktop or QuickBooks Enterprise in a few steps.
  version: 1.0.0
  contact:
    email: support@qubesync.com
servers:
  - url: https://qubesync.com/api/v1
    description: v1 API
  - url: https://dev.qubesync.com/api/v1
    description: Local development server
security: []
tags:
  - name: Connections
    description: Endpoints for managing QuickBooks connections
  - name: Queued Requests
    description: Endpoints for managing queued API requests
  - name: Pre-built Queries
    description: >-
      Endpoints for executing pre-built queries against QuickBooks data. These
      endpoints simplify common data retrieval operations by providing a
      higher-level interface than the raw queued requests API. Each query is
      executed asynchronously and returns a queued request ID that can be used
      to check the status and retrieve results.
paths:
  /connections/{connection_id}/qwc:
    get:
      tags:
        - Connections
      summary: Get QWC file for a connection
      description: Returns a QWC file for the specified connection
      parameters:
        - name: connection_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: ID of the connection
      responses:
        '200':
          description: QWC file generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  qwc:
                    type: string
                    description: The contents of the QWC file
                    example: |-
                      <?xml version="1.0"?>
                      <QBWCXML>
                        <AppName>My App</AppName>
                        <AppID></AppID>
                        <AppURL>https://myapp.com/qbwc</AppURL>
                        <AppDescription>My App Description</AppDescription>
                        <AppSupport>https://myapp.com/support</AppSupport>
                        <UserName>550e8400-e29b-41d4-a716-446655440001</UserName>
                        <OwnerID>{550e8400-e29b-41d4-a716-446655440000}</OwnerID>
                        <FileID>{123e4567-e89b-12d3-a456-426614174000}</FileID>
                        <QBType>QBFS</QBType>
                        <Scheduler>
                          <RunEveryNMinutes>5</RunEveryNMinutes>
                        </Scheduler>
                      </QBWCXML>
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - apiKey: []
components:
  responses:
    Unauthorized:
      description: Authentication required or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Authentication required
    NotFound:
      description: The requested resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: The requested resource was not found
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_request
            message:
              type: string
              example: The request was invalid
            details:
              type: object
              description: Additional error details
  securitySchemes:
    apiKey:
      type: http
      scheme: basic
      description: Use your app's API_KEY as the username, and leave the password blank

````