Skip to content

Get a project's close-out checklist

GET
/projects/{id}/closeout
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/projects/example/closeout \
--header 'Authorization: Bearer <token>'

What the project still has open before it closes: tasks, proposed tasks, tickets, live orders and remaining hours, draft or unpaid invoices, portal contacts limited to the project, and its Discord channel, repository, Marker.io mapping, active automations and open delegations or reviews. Each item is done, pending, not_applicable or hidden with a count and the page that resolves it. Every figure is a count, never a list. Tickets, orders and invoices are counted inside the caller’s own reach of each domain, and are hidden, with no count or link, without its .view permission or when the caller reaches none of the project’s. A project outside the caller’s reach answers 404, like a missing one. Requires the projects.view permission; nothing is written.

id
required

Resource identifier (CUID2).

string
>= 1 characters

Resource identifier (CUID2).

The project’s close-out checklist.

Media typeapplication/json
object
data
required

What a project still has open before it closes. Tickets, orders and invoices are counted inside the caller’s own reach and hidden without its .view permission or reach.

object
complete
required

True only when no item is pending and none is hidden from the caller: a hidden item is unknown, not done.

boolean
isClosed
required

Whether the project reads as closed.

boolean
items
required
Array<object>
object
count
required

How many are open or linked; null for a hidden or not applicable item.

Any of:
integer
>= -9007199254740991 <= 9007199254740991
href
required

The page where the item is resolved, a path relative to the workspace base (/app); null for a hidden or not applicable item, and when the caller may not open that page.

string | null
key
required

What the item is about. Open set; known keys: open_tasks, proposed_tasks, open_tickets, live_orders, open_invoices, portal_contacts, discord_channel, repository, marker_mapping, active_automations, open_delegations, open_reviews.

string
status
required

pending when something is still open, done when nothing is, not_applicable when the item means nothing for this project (no company, or its module is off), hidden when the caller may not read it or reaches none of the project’s.

string
Allowed values: done pending not_applicable hidden
projectId
required
string
remainingHours
required

Hours left on the project’s estimate or budget; null when orders are hidden from the caller or no estimate exists.

number | null

Example

{
"data": {
"items": [
{
"status": "done"
}
]
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.