# Usage for the calling workspace
Source: https://docs.simpleserve.ai/docs/api-reference/usage/get-usage

Method: GET /v1/usage
Base URL: https://api.simpleserve.ai

```json
{
  "path": "/v1/usage",
  "method": "GET",
  "tags": [
    "Usage"
  ],
  "operationId": "getWorkspaceUsage",
  "summary": "Usage for the calling workspace",
  "description": "What this workspace spent, how many tasks ran, how many completed, and what\ndrove the cost, for the last 7, 30, or 90 days, with the prior range of equal\nlength for comparison. Sums come from rollup rows written at run settlement.\nTypical cost and time are medians over the newest completed runs in the range\nand are null under 5.\n",
  "parameters": [
    {
      "name": "range",
      "in": "query",
      "required": false,
      "schema": {
        "type": "string",
        "enum": [
          "7d",
          "30d",
          "90d"
        ],
        "default": "30d"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Workspace usage for the range.",
      "headers": {
        "x-request-id": {
          "$ref": "#/components/headers/RequestId"
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/WorkspaceUsage"
          },
          "examples": {
            "default": {
              "$ref": "#/components/examples/WorkspaceUsageExample"
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/BadRequest"
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    }
  }
}
```