# Get all investments

> Retrieves a list of all investments for the authenticated website

Źródło: https://propertly.io/dokumentacja/api/inwestycje/get-all-investments
Ostatnia aktualizacja: 2026-10-15

`GET https://headless-cms.propertly.io/api/v1/investments`

Retrieves a list of all investments for the authenticated website

Wymaga nagłówka `Authorization: <klucz API>`. Odwołania `$ref` wskazują na `components` w specyfikacji OpenAPI: https://propertly.io/openapi.json

```json
{
  "tags": [
    "Investments"
  ],
  "summary": "Get all investments",
  "description": "Retrieves a list of all investments for the authenticated website",
  "operationId": "get_all_investments_api_v1_investments_get",
  "responses": {
    "200": {
      "description": "Successful response with list of investments",
      "content": {
        "application/json": {
          "schema": {
            "items": {
              "$ref": "#/components/schemas/InvestmentDto"
            },
            "type": "array",
            "title": "Response Get All Investments Api V1 Investments Get"
          },
          "example": [
            {
              "investment_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
              "webpage_id": "a2f6c08c-8dd7-4b11-a2e7-4c3182d28aac",
              "organization_id": "a8098c1a-f86e-11da-bd1a-00112444be1e",
              "name": "Osiedle Słoneczne",
              "description": "Nowoczesne osiedle mieszkaniowe w centrum miasta z pełną infrastrukturą.",
              "is_active": true
            }
          ]
        }
      }
    },
    "401": {
      "description": "Unauthorized",
      "content": {
        "application/json": {
          "examples": {
            "MissingKey": {
              "summary": "No key provided",
              "value": {
                "detail": "API key is required"
              }
            },
            "InvalidKey": {
              "summary": "Invalid key",
              "value": {
                "detail": "Invalid API key"
              }
            },
            "InactiveKey": {
              "summary": "Inactive key",
              "value": {
                "detail": "API key is not active"
              }
            }
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  },
  "security": [
    {
      "APIKeyHeader": []
    }
  ]
}
```
