Skip to main content
GET
/
workspaces
/
{workspaceSlug}
/
billing
/
{ym}
/
totals
Monthly totals by component, from rated lines
curl --request GET \
  --url https://global.thenile.dev/workspaces/{workspaceSlug}/billing/{ym}/totals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: */*' \
  --data '{
  "id": "<string>",
  "email": "<string>",
  "workspaces": [
    {
      "id": "<string>",
      "name": "<string>",
      "slug": "<string>",
      "stripe_customer_id": "<string>",
      "created": "2023-11-07T05:31:56Z"
    }
  ],
  "databases": [
    "<string>"
  ],
  "kind": "HUMAN"
}'
{
  "ym": "<string>",
  "totals": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceSlug
string
required
ym
string
required

Body

*/*
id
string
email
string
workspaces
object[]
databases
string[]
kind
enum<string>
Available options:
HUMAN,
API

Response

default - application/json

default response

ym
string
totals
object
I