# Get all branches

> Retrieves a list of all branches for the authenticated website

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

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

Retrieves a list of all branches 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": [
    "Branches"
  ],
  "summary": "Get all branches",
  "description": "Retrieves a list of all branches for the authenticated website",
  "operationId": "get_all_branches_api_v1_branches_get",
  "responses": {
    "200": {
      "description": "Successful response with list of branches",
      "content": {
        "application/json": {
          "schema": {
            "items": {
              "$ref": "#/components/schemas/BranchDto"
            },
            "type": "array",
            "title": "Response Get All Branches Api V1 Branches Get"
          },
          "example": [
            {
              "branch_id": "c33b31ae-747a-4366-ae86-5f399e2daa5e",
              "webpage_id": "a2f6c08c-8dd7-4b11-a2e7-4c3182d28aac",
              "organization_id": "a8098c1a-f86e-11da-bd1a-00112444be1e",
              "name": "Propertly Warszawa",
              "description": "Oddział w Warszawie oferujący pełen zakres usług nieruchomościowych.",
              "address": "ul. Warszawska 1, 00-001 Warszawa",
              "cover_image_url": "https://cdn.propertly.io/app/branches/c33b31ae-747a-4366-ae86-5f399e2daa5e/cover.jpg",
              "logo_url": "https://cdn.propertly.io/app/branches/c33b31ae-747a-4366-ae86-5f399e2daa5e/logo.png",
              "email": "warszawa@propertly.pl",
              "phone_number": "+48 123 456 789",
              "open_time": {
                "monday": [
                  {
                    "from_time": "09:00",
                    "to_time": "17:00"
                  }
                ],
                "tuesday": [
                  {
                    "from_time": "09:00",
                    "to_time": "17:00"
                  }
                ],
                "wednesday": [
                  {
                    "from_time": "09:00",
                    "to_time": "17:00"
                  }
                ],
                "thursday": [
                  {
                    "from_time": "09:00",
                    "to_time": "17:00"
                  }
                ],
                "friday": [
                  {
                    "from_time": "09:00",
                    "to_time": "17:00"
                  }
                ],
                "saturday": [],
                "sunday": []
              },
              "location": {
                "address_city": "Warszawa",
                "address_community": "Warszawa",
                "address_country": "Polony",
                "address_county": "Warszawa",
                "address_district": "Warszawa",
                "address_subdistrict": "Warszawa",
                "address_state": "Warszawa",
                "address_street": "Warszawa",
                "address_street_number": "Warszawa",
                "address_flat_number": "Warszawa",
                "address_zip_code": "Warszawa",
                "community_type": "Warszawa",
                "location_latitude": 52.2297,
                "location_longitude": 21.0122,
                "location_approximation": 0
              }
            }
          ]
        }
      }
    },
    "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": []
    }
  ]
}
```
