---
title: "Get prebilling data"
method: POST
path: "/fastedge/v1/admin/prebilling"
tags: ["Billing"]
---

# Get prebilling data

`POST /fastedge/v1/admin/prebilling`

## Request body

- object
  - `clients` integer[]
  - `flat` boolean — This field is not actually used, it is here only to comply with Billing API. If specified, it must be set to true.
  - `from` string, date-time, required — Start date-time in RFC3339 format
  - `group_by` string[]
  - `metrics` string[], required
  - `networks` string[]
  - `service` string, required — Must containt `FAST_EDGE` value
  - `to` string, date-time, required — End date-time in RFC3339 format

## Response `200`

Returns prebilling response data for the specified period

- PrebillingObject[]
  - `metrics` PrebillingMetric, required
    - `number_of_calls` integer — Number of app calls
    - `exec_time` integer — Total app execution time, in seconds
    - `total_runtime_mms` number — Total app execution time, in million milliseconds (1000 seconds) units
    - `kv_read_count` integer — Number of read operations
    - `kv_write_size` integer — Volume of write operations, in bytes
    - `kv_storage_size` number, double — Storage size used over time, in MB*hours
    - `kv_del_count` integer — Number of delete operations
  - `client` integer
  - `billing_plan` string
  - `region` string

## Other responses

- `400` — Bad request
- `503` — Service unavailable

---

[API](https://skmtc.dev/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.dev/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/revisions/09e652815095/schema)
