---
title: "Counts the number of global, pending jobs on the server."
method: GET
path: "/jobs/pending/count"
tags: ["Jobs"]
---

# Counts the number of global, pending jobs on the server.

`GET /jobs/pending/count`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/jobs/pending/count`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/jobs/pending/count/get.ts> (a function with typed inputs; its response is checked against the schema)

Counts the number of global, pending jobs on the server.

## Response `200`

Successful operation

- CountWithQueueDetails
  - `count` integer, required
  - `queue_infos` QueueDetails[], required
    - `name` string, required
    - `length` integer, required

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `default`: Unexpected error

## Changes

- **2026-11-06** `a82a117320f4`: 2 info
  - added the optional property `error_type` to the response with the `401` status
  - added the optional property `error_type` to the response with the `default` status

[Operation history](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/changes/jobs/pending/count/get.md)

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
