# Count jobs in queue

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/discord/queue/{id}:
    get:
      summary: Count jobs in queue
      deprecated: false
      description: >-
        The API only works for user with DIY plan, and have linked their Discord
        account.


        The API will return the number of jobs in the queue for the specified
        linked Discord account.
      tags:
        - DIY Plan Endpoints/Queue Management
      parameters:
        - name: id
          in: path
          description: >-
            The token ID from the /tokens endpoint, for the specific Discord
            account.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  waiting:
                    type: number
                    description: The number of waiting jobs in the queue.
                  active:
                    type: number
                    description: The number of active jobs in the queue.
                x-apifox-orders:
                  - waiting
                  - active
                required:
                  - waiting
                  - active
              example:
                waiting: 129
                active: 3
          headers: {}
          x-apifox-name: Success
      security:
        - bearer: []
      x-apifox-folder: DIY Plan Endpoints/Queue Management
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5160896/apis/api-216013255-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.imaginepro.ai
    description: Prod Env
security: []

```
