Skip to content

Get App Usage

GET
/apps/{app_id}/usage

PREVIEW. This endpoint is deployed but gated: it returns 404 unless the hosted app platform is enabled for your organization. It is published here so the contract describes the whole surface, not so it can be called today.

Credits this app consumed in a calendar month, broken down per client org.

The breakdown keys on the client whose DATA was touched, not on who paid — the builder pays for all of them. A month with no usage returns zeroes rather than 404: “nothing happened” is an answer, and a 404 would read as “no such app”.

Authorizations

Parameters

Path Parameters

app_id
required
string

Query Parameters

period
Any of:
string
/^\d{4}-\d{2}$/

Calendar month YYYY-MM. Defaults to the current month.

Header Parameters

X-Org-Id
Any of:
string

Responses

200

Successful Response

object
data
required

Credits an app consumed in one calendar month. Mirrors UsageSummaryDto.

object
app_id
required
string
discount_credits

Everything deducted from list: the builder discount AND any hard-cap clamp. One compound number, not ‘the 25%’.

integer
event_count
required
integer
gross_credits

Undiscounted list total for the period. gross_credits - discount_credits == total_credits.

integer
per_client_credits

Credits per CLIENT org — whose data was touched, not who paid. The builder pays for all of them.

object
key
additional properties
integer
per_operation_credits

Net credits per operation id, so you can see which calls cost money.

object
key
additional properties
integer
per_payer_credits

Net credits per BILLING org, who pays. The mirror of per_client_credits, which is whose data was touched.

object
key
additional properties
integer
period
required

Calendar month, YYYY-MM.

string
total_credits
required
integer
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string