{
  "opencollection": "1.0.0",
  "info": {
    "name": "Affinda Annotations Add x-hidden to endpoints Usage API",
    "version": "3.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Usage",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get usage",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{region}.affinda.com/v3/usage",
            "params": [
              {
                "name": "organization",
                "value": "",
                "type": "query",
                "description": "Organization to report usage for. The caller must be an admin or owner."
              },
              {
                "name": "workspace",
                "value": "",
                "type": "query",
                "description": "Optionally scope the report to a single workspace within the organization."
              },
              {
                "name": "document_type",
                "value": "",
                "type": "query",
                "description": "Optionally scope the report to a single document type within the organization."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Inclusive start date of the report (YYYY-MM-DD). Defaults to 365 days before `end`."
              },
              {
                "name": "end",
                "value": "",
                "type": "query",
                "description": "Inclusive end date of the report (YYYY-MM-DD). Defaults to today."
              }
            ]
          },
          "docs": "Returns daily credits consumption for an organization over a date range. Optionally scope the report to a single workspace or document type.\n`workspace` and `document_type` cannot be combined: usage data is aggregated independently along each axis, so a per-(workspace × document type) slice is not available."
        }
      ]
    }
  ],
  "bundled": true
}