POST
/
fastedge
/
v1
/
admin
/
prebilling
Get prebilling data
curl --request POST \
  --url https://api.gcore.com/fastedge/v1/admin/prebilling \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "clients": [
    141309,
    1111
  ],
  "flat": true,
  "from": "2022-01-01T00:00:00Z",
  "group_by": [
    "client",
    "region",
    "billing_plan"
  ],
  "metrics": [
    "number_of_calls",
    "total_runtime_mms"
  ],
  "networks": [
    "gcore"
  ],
  "service": "FAST_EDGE",
  "to": "2024-12-31T23:59:59Z"
}'
[
  {
    "metrics": {
      "number_of_calls": 123,
      "total_runtime_mms": 123
    },
    "client": 123,
    "billing_plan": "<string>",
    "region": "<string>"
  }
]

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

clients
integer[]
Example:
[141309, 1111]
flat
boolean
from
string<date-time>
Example:

"2022-01-01T00:00:00Z"

group_by
enum<string>[]
Example:
["client", "region", "billing_plan"]
metrics
string[]
Example:
["number_of_calls", "total_runtime_mms"]
networks
string[]
Example:
["gcore"]
service
string
Example:

"FAST_EDGE"

to
string<date-time>
Example:

"2024-12-31T23:59:59Z"

Response

Ok

metrics
object
client
integer
billing_plan
string
region
string