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

# État de la file

> Vos tâches en file et en cours, et la limite de concurrence dans laquelle elles comptent.

La lecture ne coûte rien : un programme peut la vérifier avant de soumettre d'autres tâches. `concurrency.used` additionne les tâches en file et en cours, comme la limite de votre plan. Le sens de chaque champ figure dans [Crédits et limites](/fr/concepts/credits-and-limits.md#consulter-votre-file).


## OpenAPI

````yaml GET /v1/async/status
openapi: 3.1.0
info:
  title: querying.ai
  description: >-
    One API for every AI answer engine. Every task is asynchronous: submit, then
    collect the result via webhook or polling.
  version: 1.0.0
servers:
  - url: https://api.querying.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/async/status:
    get:
      tags:
        - Operations
      summary: Get queue status
      description: >-
        Your queued and processing tasks, and the concurrency limit they count
        against. A sub-account's tasks count toward its parent account's.
        `concurrency.used` is queued plus processing tasks, because your plan
        limit counts both: a submit that would pass `max` returns `429
        PLAN_CONCURRENCY_LIMIT`. Reading it costs nothing.
      operationId: getAsyncStatus
      responses:
        '200':
          description: Your queue right now.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueueStatus'
              example:
                success: true
                queuedTasks: 19
                processingTasks: 6
                priorityBreakdown:
                  - priority: 8
                    count: 3
                  - priority: 1
                    count: 16
                concurrency:
                  used: 25
                  max: 200
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            The key belongs to a sub-account. A sub-account queues inside its
            parent account's concurrency limit; the parent account reads the
            queue here, and a sub-account key reads its own task counts at GET
            /stats.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: SUB_ACCOUNT_FORBIDDEN
                  message: >-
                    A sub-account queues inside its parent account's concurrency
                    limit. The parent account reads the queue at GET
                    /v1/async/status; a sub-account key reads its own task
                    counts at GET /stats
                  timestamp: '2026-10-20T00:00:00.000Z'
components:
  schemas:
    QueueStatus:
      type: object
      required:
        - success
        - queuedTasks
        - processingTasks
        - priorityBreakdown
        - concurrency
      properties:
        success:
          type: boolean
          const: true
        queuedTasks:
          type: integer
          description: Your tasks waiting for an engine, with your sub-accounts' tasks.
        processingTasks:
          type: integer
          description: Your tasks an engine is working on, with your sub-accounts' tasks.
        priorityBreakdown:
          type: array
          description: >-
            The queued tasks by the `priority` they were submitted with, highest
            first. Priority does not guarantee the order tasks run in.
          items:
            type: object
            required:
              - priority
              - count
            properties:
              priority:
                type: integer
              count:
                type: integer
        concurrency:
          type: object
          required:
            - used
            - max
          description: The limit on queued and processing tasks together.
          properties:
            used:
              type: integer
              description: '`queuedTasks` plus `processingTasks`.'
            max:
              type: integer
              description: >-
                What your plan allows, or your contract when it sets another
                number. `max - used` is how many more tasks you can submit now.
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          $ref: '#/components/schemas/ErrorDetail'
    ErrorDetail:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Stable, safe to branch on. See the Errors guide for the full list.
        message:
          type: string
          description: For humans. May change.
        details:
          description: >-
            Context for the error. An array of `{field, message}` on most
            `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on
            `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted
            when there is nothing to add.
          oneOf:
            - type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
            - type: object
              additionalProperties: true
        timestamp:
          type: string
          format: date-time
  responses:
    Unauthorized:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: MISSING_API_KEY
              message: Missing or invalid API key
              timestamp: '2026-07-09T04:12:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer <key>`.'

````

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