---
title: "Read pool demand"
method: GET
path: "/api/actions/provider/v1/demand"
tags: ["Actions"]
---

# Read pool demand

`GET /api/actions/provider/v1/demand`

## Request

- Base URL: `https://git.cafe`
- URL: `https://git.cafe/api/actions/provider/v1/demand`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Returns the token's pool, its oldest queued jobs (routing facts only) and its running job count, for reconciliation, with an ETag. With `If-None-Match` set to an earlier reply's ETag and `wait`, the request is held until the demand differs from that reply or `wait` seconds pass; 304 means nothing changed. An app installed as a runner provider names the pool with `pool` and authenticates with an installation token holding `org:runners` (read or write) on the pool's organization; a pool it cannot read is 404.

## Response `200`

Response for status 200

- object
  - `poolId` string, required
  - `enabled` boolean, required
  - `maxConcurrency` integer, nullable, required
  - `queued` object[], required
    - `jobId` string, required
    - `runId` string, required
    - `repository` string, required
    - `labels` string[], required
    - `queuedAt` string, date-time, required
    - `boundRunnerId` string, nullable, required
  - `truncated` boolean, required
  - `running` integer, required

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `404`: Response for status 404
- `409`: Response for status 409
- `503`: Response for status 503

---

[API](https://skmtc.dev/gitcafe/apis/git-cafe-api.md) - [All operations](https://skmtc.dev/gitcafe/apis/git-cafe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitcafe/apis/git-cafe-api/revisions/9fa233d2986d?raw)
