---
title: "Count deployments"
method: POST
path: "/hosting/deployments/count"
tags: ["Hosting - Deployments"]
---

# Count deployments

`POST /hosting/deployments/count`

Count deployments for an app or worker

## Request body

- object — Body schema.
  - `appUuid` string, uuid — Identifier of the app whose deployments to count.
  - `workerUuid` string, uuid — Identifier of the worker whose deployments to count.
  - `userUuid` string, uuid — Restrict to deployments created by this user.
  - `statuses` string[] — Deployment statuses to include.
  - `createdAfter` string — Include deployments created after this ISO timestamp.
  - `createdBefore` string — Include deployments created before this ISO timestamp.

## Response `200`

Successful response

- object
  - `count` integer, required — Number of deployments matching the filters.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/getcargo/apis/cargo-api.md) · [All operations](https://skmtc.net/getcargo/apis/cargo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getcargo/cargo-api/revisions/1d5a19e01d83/schema)
