Available Operations
The Platform APIs provide the following endpoints for Serverless Apps:Files
List Root Directory Contents
List Directory Contents
Download File
Upload from URL
Upload Local File
Requests
List Requests by Endpoint
Billing
Per-request billing data for your serverless apps is available through theexpand=billing parameter on List Requests by Endpoint. Each request in the response includes a billable_units field representing the units fal billed for that invocation.
billable_units is the raw unit count for each request. To compute total cost, multiply by your effective per-unit price for the app. For account-level credit balance, see Account Billing.Example
billable_units will be null if a billing event hasn’t been recorded yet for the request (e.g., the request just completed and the billing pipeline hasn’t caught up).
Usage
Usage
This endpoint returns billing and usage data, so it requires a key on the
BILLING, READONLY, or FULL preset. A key on the API preset receives a 403.Filtering by app
Theapp field in the response is your deployed app’s name (e.g. my-app-prod). Two ways to narrow results:
app— exact match on one or more app names. Comma-separated or repeated, up to 50:app=my-app-dev,my-app-prod. Use the value exactly as it appears in the response.search— case-insensitive substring match on the app name, for when you know the name but not the exact environment/version suffix:search=my-appreturns everymy-app*variant.
Summary across all your apps (last 30 days)
One app, daily time series
All variants of an app by name
expand=summary):
Each row is machine-seconds (
unit is always "second"). Surge and non-surge usage of the same app and machine type are returned as separate rows (is_surge), so sum across them for a per-app total. Time-series bucket timestamps are returned in the timezone you request (ISO 8601 with offset, e.g. 2025-01-15T00:00:00-05:00), which also controls how usage is grouped. cost is already net of your discounts.