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

# Check a distribution is provisioned

> Runs named account-plane checks for one publisher and distributor pair and reports which passed, which failed and which could not be seen. Side defaults to publisher; `account_id` is the counterparty. `path` and `export_name` can be sent in the body and `path` defaults to `gateway`. Root, admin and developer roles.



## OpenAPI

````yaml /api-reference/endpoint/distribution/openapi.json get /accounts/distribution-status
openapi: 3.1.0
info:
  title: quiva.ai Distribution API
  description: >-
    API for distributing products from a publisher account to distributor
    accounts: invitations, the distribution register, product definitions,
    messages between the two sides and config id reservations.
  version: 1.0.0
  contact:
    name: quiva.ai Support
    url: https://app.quiva.ai
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Distribution Invitations
    description: >-
      Mint, deliver, preview and redeem invitations that connect a distributor
      to a publisher
  - name: Distribution Register
    description: The register of distributions between a publisher and its distributors
  - name: Distributor Setup
    description: Distributor features, space template and space bindings
  - name: Distribution Products
    description: Product definitions and the products a distributor may work under
  - name: Distribution Messages
    description: Messages sent between the two sides of a distribution
  - name: Config Reservations
    description: Reservations of record config ids
paths:
  /accounts/distribution-status:
    get:
      tags:
        - Distribution Register
      summary: Check a distribution is provisioned
      description: >-
        Runs named account-plane checks for one publisher and distributor pair
        and reports which passed, which failed and which could not be seen. Side
        defaults to publisher; `account_id` is the counterparty. `path` and
        `export_name` can be sent in the body and `path` defaults to `gateway`.
        Root, admin and developer roles.
      operationId: getDistributionStatus
      parameters:
        - name: account_id
          in: query
          description: The counterparty account id
          required: true
          schema:
            type: string
        - name: side
          in: query
          description: 'The caller''s own side: `publisher` (default) or `distributor`'
          required: false
          schema:
            type: string
        - name: product_id
          in: query
          description: Narrow the checks to one product
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/DistributionStatus'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DistributionStatus:
      type: object
      properties:
        account_id:
          type: string
        side:
          type: string
        export_name:
          type: string
        path:
          type: string
        complete:
          type: boolean
        checks:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              passed:
                type: boolean
              detail:
                type: string
        missing:
          type: array
          items:
            type: string
        account_plane_only:
          type: boolean
        unverified:
          type: array
          items:
            type: string
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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