---
updatedAt: 2026-09-02T17:35:26.000Z
agentTools:
  projectIndex: https://docs.go.v7labs.com/llms.txt
---

# Lists cases

Lists cases

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Cases.ListCasesOrderBy": {
        "description": "List of field names to order by",
        "items": {
          "enum": [
            "id",
            "name",
            "updated_at"
          ],
          "type": "string"
        },
        "title": "Cases.ListCasesOrderBy",
        "type": "array"
      },
      "Common.APIErrorDetails": {
        "description": "Additional structured error context. Shape varies by error code.\n\n- For conflict errors: contains a `conflicts` array with conflicting resources\n- For other errors: may contain arbitrary error-specific context",
        "nullable": true,
        "oneOf": [
          {
            "$ref": "#/components/schemas/Common.ConflictErrorDetails"
          },
          {
            "additionalProperties": true,
            "description": "Generic error details for non-conflict errors",
            "type": "object"
          }
        ],
        "title": "Common.APIErrorDetails"
      },
      "Cases.CaseModelProvider": {
        "description": "The existing sandbox-agent model provider to use for this case.",
        "enum": [
          "open_ai",
          "anthropic",
          "google_ai"
        ],
        "nullable": false,
        "title": "Cases.CaseModelProvider",
        "type": "string"
      },
      "Pagination.Cursor": {
        "description": "A base64 encoded value representing a cursor, or an element ID if applicable",
        "example": "ZXhhbXBsZQo=",
        "nullable": true,
        "title": "Pagination.Cursor",
        "type": "string"
      },
      "Cases.CaseOutput": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "$ref": "#/components/schemas/Common.DateTime"
          },
          "entity_id": {
            "$ref": "#/components/schemas/Common.UUID"
          },
          "id": {
            "$ref": "#/components/schemas/Common.UUID"
          },
          "project_id": {
            "$ref": "#/components/schemas/Common.UUID"
          }
        },
        "required": [
          "id",
          "project_id",
          "entity_id",
          "created_at"
        ],
        "title": "Cases.CaseOutput",
        "type": "object"
      },
      "Pagination.OrderDirections": {
        "description": "List of order directions for the fields in `order_by`. The `*_nulls_last` / `*_nulls_first` variants control where empty values are placed.",
        "example": [
          "desc_nulls_last",
          "asc"
        ],
        "items": {
          "enum": [
            "asc",
            "desc",
            "asc_nulls_last",
            "asc_nulls_first",
            "desc_nulls_last",
            "desc_nulls_first"
          ],
          "type": "string"
        },
        "nullable": true,
        "title": "Pagination.OrderDirections",
        "type": "array"
      },
      "Common.ConflictErrorDetails": {
        "additionalProperties": false,
        "description": "Details for conflict errors",
        "properties": {
          "conflicts": {
            "description": "List of conflicting resources",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "conflicts"
        ],
        "title": "Common.ConflictErrorDetails",
        "type": "object"
      },
      "Cases.ListCasesResponse": {
        "additionalProperties": false,
        "description": "A list of cases",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/Cases.CaseResponseInList"
            },
            "type": "array"
          },
          "metadata": {
            "$ref": "#/components/schemas/Pagination.PageMetadata"
          }
        },
        "required": [
          "data",
          "metadata"
        ],
        "title": "Cases.ListCasesResponse",
        "type": "object"
      },
      "Cases.CaseErrorCode": {
        "description": "The error code of the case. Only present if the case is in an error state. Can be one of:\n- inference_policy_refused - No configured route satisfies the request and its inference policy.\n- agent_timeout - If a case called an agent and it took too long to respond.\n- file_not_found - If a case tried to use a file that was deleted or not found.\n- file_upload_timeout - If a file upload timed out.\n- invalid_html_response - The AI did not return valid HTML.\n- max_iterations_exceeded - The agent reached the maximum number of iterations.\n- max_output_tokens_exceeded - The agent reached the maximum number of output tokens.\n- agent_interrupted - The agent was interrupted by the user.\n- model_unexpected_stop - A model provider sent an unexpected stop signal.\n- model_context_length_exceeded - A model provider returned a context length exceeded error.\n- model_rate_limit_exceeded - A model provider returned a rate limit exceeded error.\n- model_overloaded - The model provider is currently overloaded.\n- usage_limit_exceeded - A case exceeded the usage limit associated with the workspace. It can be billing plan or system limit.\n- no_model_available - No AI model is currently available for the workspace.\n- skill_execution_error - A skill failed to execute.\n- context_assembly_failed - The persisted or request context needed for the chat could not be prepared; the conversation cannot resume and retrying will not help.\n- context_too_long - The chat history no longer fits the model context, even compressed; the conversation cannot resume and retrying will not help.\n- context_compaction_corrupted - The chat's compressed history was corrupted by an earlier crash; the conversation cannot resume.\n- temporary_error - A temporary problem stopped the agent, for example a failed database connection. A later retry can succeed.\n- internal_tool_error - The agent could not prepare or send its request to the model, also after its retries.\n- model_provider_error - A model provider rejected the request with a non-retryable error.\n- agent_crashed - The agent stopped unexpectedly without reporting a usable reason.\n- internal_error - An unhandled error occurred while processing the case.\n",
        "enum": [
          "agent_timeout",
          "file_not_found",
          "file_upload_timeout",
          "invalid_html_response",
          "max_iterations_exceeded",
          "max_output_tokens_exceeded",
          "agent_interrupted",
          "model_unexpected_stop",
          "model_context_length_exceeded",
          "model_rate_limit_exceeded",
          "model_overloaded",
          "usage_limit_exceeded",
          "no_model_available",
          "skill_execution_error",
          "inference_policy_refused",
          "context_assembly_failed",
          "context_too_long",
          "context_compaction_corrupted",
          "temporary_error",
          "internal_tool_error",
          "model_provider_error",
          "agent_crashed",
          "internal_error"
        ],
        "nullable": true,
        "title": "Cases.CaseErrorCode",
        "type": "string"
      },
      "Pagination.PageSize": {
        "description": "The page size or limit of the query. Set to the `first` or `last` parameter when using cursor-based pagination.",
        "example": 50,
        "minimum": 1,
        "title": "Pagination.PageSize",
        "type": "integer"
      },
      "Common.UUID": {
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "Common.UUID",
        "type": "string"
      },
      "Pagination.PageMetadata": {
        "additionalProperties": false,
        "description": "Metadata returns for paginated requests. The values set depend on the type of pagination used",
        "properties": {
          "current_offset": {
            "$ref": "#/components/schemas/Pagination.Offset"
          },
          "end_cursor": {
            "$ref": "#/components/schemas/Pagination.Cursor"
          },
          "has_next_page": {
            "example": true,
            "type": "boolean"
          },
          "has_previous_page": {
            "example": false,
            "type": "boolean"
          },
          "page_size": {
            "$ref": "#/components/schemas/Pagination.PageSize"
          },
          "start_cursor": {
            "$ref": "#/components/schemas/Pagination.Cursor"
          },
          "total_count": {
            "$ref": "#/components/schemas/Pagination.TotalCount"
          }
        },
        "required": [
          "current_offset",
          "page_size",
          "start_cursor",
          "end_cursor",
          "has_next_page",
          "has_previous_page",
          "total_count"
        ],
        "title": "Pagination.PageMetadata",
        "type": "object"
      },
      "Pagination.TotalCount": {
        "description": "The total count of records for the given query. Always `null` when using cursor-based  pagination.",
        "example": 50,
        "nullable": true,
        "title": "Pagination.TotalCount",
        "type": "integer"
      },
      "Cases.CaseReasoningEffort": {
        "description": "Reasoning effort for Go Agent V2. Must be supported by the selected model. On creation, omitted or null defaults to medium when supported, otherwise the model default. On update, null restores the model default; omission preserves the saved choice unless a model change requires normalization. Existing cases with null use the model default.",
        "enum": [
          "disabled",
          "minimal",
          "low",
          "medium",
          "high",
          "xhigh",
          "max",
          "auto"
        ],
        "nullable": true,
        "title": "Cases.CaseReasoningEffort",
        "type": "string"
      },
      "Pagination.Offset": {
        "description": "The offset to use when paginating records",
        "example": 50,
        "minimum": 0,
        "nullable": true,
        "title": "Pagination.Offset",
        "type": "integer"
      },
      "Cases.Status": {
        "enum": [
          "working",
          "input_required",
          "ready",
          "error"
        ],
        "title": "Cases.Status",
        "type": "string"
      },
      "Cases.CaseApp": {
        "additionalProperties": false,
        "description": "The app associated with this chat. Null when the chat has no app association.",
        "nullable": true,
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Common.UUID"
          },
          "name": {
            "$ref": "#/components/schemas/Common.String"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "Cases.CaseApp",
        "type": "object"
      },
      "Pagination.Last": {
        "description": "The number of records to return for before the provided cursor; used in combination with `before`",
        "example": 50,
        "nullable": true,
        "title": "Pagination.Last",
        "type": "integer"
      },
      "Common.DateTime": {
        "description": "DateTime in RFC3339 format",
        "example": "2020-01-20T14:00:00Z",
        "format": "date-time",
        "title": "Common.DateTime",
        "type": "string"
      },
      "Pagination.First": {
        "description": "The number of records to return after the provided cursor; used in combination with `after`",
        "example": 50,
        "nullable": true,
        "title": "Pagination.First",
        "type": "integer"
      },
      "Cases.IsUnread": {
        "description": "Filter by unread status.\nIf not provided, all cases are returned.\n",
        "nullable": true,
        "title": "Cases.IsUnread",
        "type": "boolean"
      },
      "Common.APIError": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "example": "bad_request",
            "type": "string"
          },
          "details": {
            "$ref": "#/components/schemas/Common.APIErrorDetails"
          },
          "message": {
            "example": "Bad Request",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "Common.APIError",
        "type": "object"
      },
      "Cases.CaseResponseInList": {
        "additionalProperties": false,
        "description": "A single case in a list",
        "properties": {
          "allowed_mcp_integration_ids": {
            "description": "Optional sandbox MCP allowlist. `null` means all authenticated MCP integrations, `[]` means none.",
            "items": {
              "$ref": "#/components/schemas/Common.UUID"
            },
            "nullable": true,
            "type": "array"
          },
          "app": {
            "$ref": "#/components/schemas/Cases.CaseApp"
          },
          "created_at": {
            "$ref": "#/components/schemas/Common.DateTime"
          },
          "error_code": {
            "$ref": "#/components/schemas/Cases.CaseErrorCode"
          },
          "error_reason": {
            "$ref": "#/components/schemas/Common.NullableString"
          },
          "id": {
            "$ref": "#/components/schemas/Common.UUID"
          },
          "is_unread": {
            "type": "boolean"
          },
          "model": {
            "$ref": "#/components/schemas/Cases.CaseModel"
          },
          "model_provider": {
            "$ref": "#/components/schemas/Cases.CaseModelProvider"
          },
          "name": {
            "$ref": "#/components/schemas/Common.NullableString"
          },
          "outputs": {
            "items": {
              "$ref": "#/components/schemas/Cases.CaseOutput"
            },
            "type": "array"
          },
          "reasoning_effort": {
            "$ref": "#/components/schemas/Cases.CaseReasoningEffort"
          },
          "resumable": {
            "nullable": true,
            "type": "boolean"
          },
          "sandbox_agent": {
            "description": "Whether this case uses sandbox agent mode (Claude Code handles all processing).",
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/Cases.Status"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Common.DateTime"
          },
          "user_id": {
            "$ref": "#/components/schemas/Common.UUID"
          }
        },
        "required": [
          "id",
          "name",
          "user_id",
          "status",
          "outputs",
          "is_unread",
          "error_reason",
          "error_code",
          "model_provider",
          "model",
          "sandbox_agent",
          "allowed_mcp_integration_ids",
          "app",
          "created_at",
          "updated_at"
        ],
        "title": "Cases.CaseResponseInList",
        "type": "object"
      },
      "Cases.CaseModel": {
        "description": "The concrete Go Agent V2 model. Both current and legacy frontend selections are accepted during migration.",
        "enum": [
          "claude_5_5_opus",
          "claude_5_opus",
          "claude_5_sonnet",
          "claude_5_5_sonnet",
          "claude_4_5_haiku",
          "claude_5_5_haiku",
          "gemini_3_5_flash_lite",
          "gpt_5_6_sol",
          "gemini_3_1_pro",
          "claude_4_6_sonnet",
          "gpt_5_6_terra",
          "gemini_3_8_flash",
          "gemini_4_argon",
          "gemini_4_carbon",
          "gpt_5_6_luna",
          "gpt_6_astra",
          "gpt_6_sol",
          "gpt_6_1_sol",
          "gpt_6_1_terra",
          "gpt_6_luna",
          "gpt_5_5",
          "gpt_5_4_mini",
          "claude_4_8_opus",
          "gemini_3_flash"
        ],
        "nullable": true,
        "title": "Cases.CaseModel",
        "type": "string"
      },
      "Common.UUIDList": {
        "default": [],
        "items": {
          "$ref": "#/components/schemas/Common.UUID"
        },
        "nullable": true,
        "title": "Common.UUIDList",
        "type": "array"
      },
      "Common.NullableString": {
        "nullable": true,
        "title": "Common.NullableString",
        "type": "string"
      },
      "Pagination.Limit": {
        "description": "The maximum number of records to return when using `offset` pagination",
        "example": 50,
        "minimum": 0,
        "nullable": true,
        "title": "Pagination.Limit",
        "type": "integer"
      },
      "Common.String": {
        "title": "Common.String",
        "type": "string"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      },
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "V7 Go API",
    "version": "0.1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/workspaces/{workspace_id}/cases": {
      "get": {
        "callbacks": {},
        "description": "Lists cases",
        "operationId": "case-list-cases",
        "parameters": [
          {
            "description": "",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Common.UUID"
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "agent_ids",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Common.UUIDList"
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "name_contains",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Common.NullableString"
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "owner_ids",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Common.UUIDList"
            }
          },
          {
            "description": "Filter by unread status.\nIf not provided, all cases are returned.\n",
            "in": "query",
            "name": "is_unread",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Cases.IsUnread"
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "hub_ids",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Common.UUIDList"
            }
          },
          {
            "description": "List of field names to order by",
            "in": "query",
            "name": "order_by",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Cases.ListCasesOrderBy"
            }
          },
          {
            "description": "List of order directions for the fields in `order_by`. The `*_nulls_last` / `*_nulls_first` variants control where empty values are placed.",
            "in": "query",
            "name": "order_directions",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.OrderDirections"
            }
          },
          {
            "description": "The maximum number of records to return when using `offset` pagination",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.Limit"
            }
          },
          {
            "description": "The offset to use when paginating records",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.Offset"
            }
          },
          {
            "description": "The number of records to return after the provided cursor; used in combination with `after`",
            "in": "query",
            "name": "first",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.First"
            }
          },
          {
            "description": "The number of records to return for before the provided cursor; used in combination with `before`",
            "in": "query",
            "name": "last",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.Last"
            }
          },
          {
            "description": "A base64 encoded value representing a cursor, or an element ID if applicable",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.Cursor"
            }
          },
          {
            "description": "A base64 encoded value representing a cursor, or an element ID if applicable",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cases.ListCasesResponse"
                }
              }
            },
            "description": "Cases.ListCasesResponse"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          }
        },
        "summary": "Lists cases",
        "tags": [
          "Cases"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "description": "EU",
      "url": "https://go.v7labs.com",
      "variables": {}
    },
    {
      "description": "US",
      "url": "https://go.us.v7labs.com",
      "variables": {}
    },
    {
      "description": "UAE",
      "url": "https://go.uae.v7labs.com",
      "variables": {}
    }
  ]
}
```