---
updatedAt: 2026-09-16T12:15:40.000Z
agentTools:
  projectIndex: https://docs.hud.io/llms.txt
---

# List service session quotas

List per-service session quotas for known services in an environment.

`complete_sessions_limit` counts sessions with metrics and forensics; `forensics_sessions_limit` counts forensics-only sessions on top of those. Both are `null` when the service has no quota.

`tag_quota` splits the service's sessions by a session tag (for example `region`): default Complete/Forensics limits for each tag value, plus per-value overrides. It is `null` when the service has none.

**Query:**
- `environment` (required)
- `service_name` (optional, repeatable)

**Auth:** requires `throttling:read` (operator keys).

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "HUD Public API",
    "description": "Public API for accessing HUD issues and metrics",
    "version": "1.0.0"
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "API key for authentication (validated by API Gateway)"
      }
    }
  },
  "paths": {
    "/v1/throttling/session-quotas": {
      "get": {
        "operationId": "listSessionQuotas",
        "summary": "List service session quotas",
        "tags": [
          "throttling"
        ],
        "description": "List per-service session quotas for known services in an environment.\n\n`complete_sessions_limit` counts sessions with metrics and forensics; `forensics_sessions_limit` counts forensics-only sessions on top of those. Both are `null` when the service has no quota.\n\n`tag_quota` splits the service's sessions by a session tag (for example `region`): default Complete/Forensics limits for each tag value, plus per-value overrides. It is `null` when the service has none.\n\n**Query:**\n- `environment` (required)\n- `service_name` (optional, repeatable)\n\n**Auth:** requires `throttling:read` (operator keys).",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "in": "query",
            "name": "environment",
            "required": true,
            "description": "Environment name to list session quotas for (e.g., production)"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1
                },
                {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              ]
            },
            "in": "query",
            "name": "service_name",
            "required": false,
            "description": "Optional service name filter. Accepts a single value or repeated query params."
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "environment": {
                      "type": "string",
                      "description": "Environment the quotas were listed for"
                    },
                    "session_quotas": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "service_name": {
                            "type": "string",
                            "minLength": 1,
                            "description": "Service name"
                          },
                          "complete_sessions_limit": {
                            "nullable": true,
                            "description": "Complete-session limit, or null when unset",
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "forensics_sessions_limit": {
                            "nullable": true,
                            "description": "Forensics-only session limit, or null when unset",
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "tag_quota": {
                            "nullable": true,
                            "description": "Tag (e.g. region) quota, or null when the service has none",
                            "type": "object",
                            "properties": {
                              "tag_key": {
                                "type": "string",
                                "description": "Session tag the quota is split by (e.g. region)"
                              },
                              "default_complete_sessions_limit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "Complete-session limit for each tag value without an override"
                              },
                              "default_forensics_sessions_limit": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "Forensics-only session limit for each tag value without an override"
                              },
                              "overrides": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "value": {
                                      "type": "string",
                                      "minLength": 1,
                                      "description": "Tag value, e.g. eu-west-1"
                                    },
                                    "complete_sessions_limit": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991,
                                      "description": "Complete-session limit for this tag value"
                                    },
                                    "forensics_sessions_limit": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991,
                                      "description": "Forensics-only session limit for this tag value"
                                    }
                                  },
                                  "required": [
                                    "value",
                                    "complete_sessions_limit",
                                    "forensics_sessions_limit"
                                  ],
                                  "additionalProperties": false
                                },
                                "description": "Per-value limits that replace the default for that value"
                              }
                            },
                            "required": [
                              "tag_key",
                              "default_complete_sessions_limit",
                              "default_forensics_sessions_limit",
                              "overrides"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "service_name",
                          "complete_sessions_limit",
                          "forensics_sessions_limit",
                          "tag_quota"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Known services and their session quotas for the environment"
                    }
                  },
                  "required": [
                    "environment",
                    "session_quotas"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Error message describing what went wrong"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false,
                  "description": "Invalid request"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Error message describing what went wrong"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false,
                  "description": "Unauthorized"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Error message describing what went wrong"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false,
                  "description": "Forbidden"
                }
              }
            }
          },
          "500": {
            "description": "InternalServerError",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Error message describing what went wrong"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "additionalProperties": false,
                  "description": "InternalServerError"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.hud.io",
      "description": "Production server"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "throttling",
      "description": "Session quota reads and writes for operator API keys"
    }
  ]
}
```