Billing Period

Returns the active billing period for the authenticated workspace, plus billing type, plan, and included credits.

GET https://api.platica.mx/v1/usage/period

Query parameters

ParameterTypeDescriptionRequired
workspacestringFilters the response to one workspace. If omitted, returns all accessible workspaces

Response

{
  "workspaces": [
    {
      "id": "g6yCA16pkWl5eXo7KszB",
      "name": "My company",
      "usagePeriod": {
        "billingType": "subscription",
        "plan": {
          "name": "Growth",
          "credits": 6500
        },
        "billingPeriod": {
          "startDate": "2026-06-01T00:00:00.000Z",
          "endDate": "2026-06-30T23:59:59.999Z"
        },
        "resetDate": "2026-06-30T23:59:59.999Z",
        "dataSince": "2026-05-21T06:00:00.000Z"
      }
    }
  ],
  "workspacesCount": 1
}

Response fields

FieldDescription
idWorkspace ID
nameWorkspace name
usagePeriod.billingTypeBilling type: trial, free, subscription, or enterprise
usagePeriod.plan.namePlan name. For enterprise workspaces it is enterprise
usagePeriod.plan.creditsIncluded credits configured for the workspace
usagePeriod.billingPeriodActive window used to measure consumption (startDate and endDate)
usagePeriod.resetDateDate when the current period ends
usagePeriod.dataSinceEarliest reliable date for billable metrics
workspacesCountTotal workspaces returned