Skip to main content
POST
Get prebilling data

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234_abcdef

Body

application/json

Prebilling request

from
string<date-time>
required

Start date-time in RFC3339 format, inclusive. Must not be in the future. If it falls on a day before today (UTC), it is rounded down to the start of that day (00:00:00 UTC), e.g. "2026-01-01T12:00:00Z" becomes "2026-01-01T00:00:00Z". A value that falls on today is used as is.

Example:

"2026-01-01T00:00:00Z"

metrics
enum<string>[]
required
Available options:
number_of_calls,
total_runtime_mms,
exec_time,
kv_storage_size,
kv_read_count,
kv_write_size,
kv_del_count,
kv_write_count
Example:
service
string
required

Must containt FAST_EDGE value

Example:

"FAST_EDGE"

to
string<date-time>
required

End date-time in RFC3339 format, exclusive. If it falls on a day before today (UTC), it is rounded up to the start of the next day (00:00:00 UTC), so the whole day is included, e.g. "2026-01-31T12:00:00Z" becomes "2026-02-01T00:00:00Z". A value already at 00:00:00 UTC is left unchanged, so "2026-01-31T23:59:59Z" and "2026-02-01T00:00:00Z" are equivalent. A value that falls on today or later is used as is.

Example:

"2026-01-31T23:59:59Z"

clients
integer<int64>[]
Example:
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.

group_by
enum<string>[]
Available options:
client,
region,
billing_plan,
date
Example:
networks
string[]
Example:

Response

Returns prebilling response data for the specified period

metrics
object
required
client
integer<int64>
billing_plan
string
region
string
date
string<date>