---
updatedAt: 2026-07-22T12:59:17.000Z
agentTools:
  projectIndex: https://developer.doit.com/llms.txt
---

# List allocations

Returns a list of allocations that your account has access to.
Allocations are listed in reverse chronological order by default.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "DoiT Cloud Intelligence",
    "description": "Programmatic access to DoiT Platform",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.doit.com"
    }
  ],
  "security": [
    {
      "api_key": []
    },
    {
      "tenantId": [],
      "api_key": []
    }
  ],
  "tags": [
    {
      "name": "Allocations",
      "description": "Define how costs are distributed across your organization."
    }
  ],
  "paths": {
    "/analytics/v1/allocations": {
      "get": {
        "tags": [
          "Allocations"
        ],
        "summary": "List allocations",
        "description": "Returns a list of allocations that your account has access to.\nAllocations are listed in reverse chronological order by default.",
        "operationId": "listAllocations",
        "parameters": [
          {
            "$ref": "#/components/parameters/maxResults"
          },
          {
            "$ref": "#/components/parameters/pageToken"
          },
          {
            "name": "filter",
            "in": "query",
            "description": "An expression for filtering the results.\nValid fields: **type**, **owner**, **name**, **folderId**.",
            "example": "type:custom",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/nameContains"
          },
          {
            "name": "sortBy",
            "in": "query",
            "description": "A field by which the results will be sorted.",
            "schema": {
              "type": "string",
              "enum": [
                "id",
                "name",
                "owner",
                "description",
                "type",
                "createTime",
                "updateTime"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/sortOrder"
          }
        ],
        "responses": {
          "200": {
            "description": "OK - The request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pageToken": {
                      "type": "string",
                      "description": "Page token, returned by a previous call, to request the next page of results."
                    },
                    "rowCount": {
                      "type": "integer",
                      "description": "Total number of allocations in the result set."
                    },
                    "allocations": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AllocationListItem"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AllocationListItem": {
        "type": "object",
        "description": "Summary information for an allocation.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Allocation ID."
          },
          "name": {
            "type": "string",
            "description": "Allocation name."
          },
          "owner": {
            "type": "string",
            "description": "Allocation owner."
          },
          "description": {
            "type": "string",
            "description": "Allocation description."
          },
          "type": {
            "type": "string",
            "description": "Type of allocation (preset or custom)."
          },
          "allocationType": {
            "type": "string",
            "description": "Composition type of allocation (single or group).",
            "enum": [
              "single",
              "group"
            ]
          },
          "createTime": {
            "type": "integer",
            "description": "The time when the allocation was created (in UNIX timestamp).",
            "format": "int64"
          },
          "updateTime": {
            "type": "integer",
            "description": "Last time the allocation was modified (in UNIX timestamp).",
            "format": "int64"
          },
          "urlUI": {
            "type": "string",
            "description": "URL to view the allocation in the DoiT console."
          },
          "folderId": {
            "type": "string",
            "description": "Identifier of the folder that contains the allocation. Set to \"root\" if the allocation is at the top level (not in a folder).",
            "default": "root",
            "example": "root"
          },
          "anomalyDetection": {
            "type": "boolean",
            "description": "Whether anomaly detection is enabled for this allocation. Only applicable to single allocations."
          }
        }
      },
      "Error": {
        "type": "object",
        "description": "Standard error response structure.",
        "properties": {
          "error": {
            "type": "string",
            "description": "Detailed error message."
          }
        },
        "example": {
          "error": "The request could not be completed."
        }
      }
    },
    "responses": {
      "400": {
        "description": "Bad Request - The server cannot process the request, often due to a malformed request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "401": {
        "description": "Unauthorized - Invalid API key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "403": {
        "description": "Forbidden - The client is not authorized to perform the request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "404": {
        "description": "Not Found - The requested resource does not exist.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "parameters": {
      "maxResults": {
        "name": "maxResults",
        "in": "query",
        "description": "The maximum number of results to return in a single page. Use the page tokens to iterate through the entire collection.",
        "schema": {
          "type": "integer",
          "format": "int64",
          "default": 50
        }
      },
      "pageToken": {
        "name": "pageToken",
        "in": "query",
        "description": "Page token, returned by a previous call, to request the next page of results",
        "schema": {
          "type": "string"
        }
      },
      "nameContains": {
        "name": "nameContains",
        "in": "query",
        "description": "Case-insensitive substring match against the resource name. Combined with the \"filter\" parameter using AND semantics.",
        "example": "monthly spend",
        "schema": {
          "type": "string"
        }
      },
      "sortOrder": {
        "name": "sortOrder",
        "in": "query",
        "description": "Specifies the sort direction; accepts asc for ascending (lowest to highest) or desc for descending (highest to lowest).",
        "schema": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ]
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "Authorization",
        "description": "Use the \"Bearer <API_KEY>\" format or sign in for autofill",
        "in": "header"
      },
      "tenantId": {
        "type": "apiKey",
        "name": "X-Tenant-Id",
        "description": "Customer (tenant) ID for the request. Separate from your API token: always authenticate with `Authorization: Bearer <token>` (personal or service account). See [Get Started](https://developer.doit.com/docs/start). Omit when your token is scoped to a single customer (resolved automatically). A service account can select an active direct or nested descendant of its home customer; the endpoint's normal permissions, entitlements, and resource-ownership checks still apply. A service-account target outside that customer subtree returns `403 Forbidden`. Prefer this header over the legacy `customerContext` query parameter, which only applies to legacy API keys and is ignored by personal and service account tokens.",
        "in": "header"
      }
    }
  },
  "x-samples-languages": [
    "curl",
    "go",
    "node",
    "python"
  ],
  "x-cli-config": {
    "security": "oauth2",
    "params": {
      "client_id": "cli"
    }
  }
}
```