---
title: "Count records"
method: POST
path: "/orchestration/records/count"
tags: ["Orchestration - Records"]
---

# Count records

`POST /orchestration/records/count`

Count orchestration records

## Request body

- object — Request body schema.
  - `workflowUuid` string, uuid, required — Workflow identifier.
  - `userUuid` string, uuid — User identifier to filter by.
  - `ids` string[] — Record IDs to include.
  - `title` string — Record title to match.
  - `titleOrId` string — Record title or ID to match.
  - `releaseUuid` string, uuid — Release identifier to filter by.
  - `batchUuid` string, uuid — Batch identifier to filter by.
  - `statuses` string[] — Record statuses to include.
  - `parentBatchUuid` string, uuid — Parent batch identifier to filter by.
  - `parentRunUuid` string, uuid — Parent run identifier to filter by.
  - `parentNodeUuid` string, uuid — Parent node identifier to filter by.
  - `isGroupParent` boolean — Whether to select group parent records.
  - `executionsFilter` object — Execution filters for matching records.
    - `conjonction` 'or' | 'and', required
    - `groups` object[], required
      - `conjonction` 'or' | 'and', required
      - `conditions` object[], required
        - `kind` 'node', required
        - `nodeSlug` string, required
        - `status` 'absent' | 'pending' | 'success' | 'error', required
        - `value` string
  - `createdAfter` string — Include records created after this timestamp.
  - `createdBefore` string — Include records created before this timestamp.
  - `updatedAfter` string — Include records updated after this timestamp.
  - `updatedBefore` string — Include records updated before this timestamp.

## Response `200`

Successful response

- object
  - `count` number, required — Number of records matching the filter.

## 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)
