Skip to content

Count the bound project publication uploads.

GET
/api/artifacts/publications/counted
curl --request GET \
--url https://example.com/api/artifacts/publications/counted \
--header 'Authorization: Bearer <token>'

Count the uploads stored against publications of the project bound to the presented project credential, plus the distinct files its sibling processes hold in flight.

x-artifact-journal-slot
integer | null format: int32

The journal slot this request speaks for, 0 to 7; a scope label between cooperating processes of one credential, never an authenticator

Project publication counters

Media typeapplication/json

The bound project’s counted publication uploads.

object
counted
required

Uploads stored against this project’s publications.

integer format: int64
reserved

Distinct files OTHER journal slots of this credential have in flight right now: reserved receipts of a still-reserved publication whose file slot has not gone back. The caller’s own slot is excluded, because its process already counts its own live reservations and retained attempts. Additive: a client that does not know the field reserves without it, and an older server never sends it.

integer format: int64

Example generated

{
"counted": 1,
"reserved": 1
}