---
title: "GET /api/v1/layout"
method: GET
path: "/api/v1/layout"
tags: ["PublicLayout"]
---

# GET /api/v1/layout

`GET /api/v1/layout`

## Request

- Base URL: `https://api.habitpocket.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.habitpocket.io/api/v1/layout`
- Auth: API key in header `X-API-KEY`

## Response `200`

OK

- PublicLayoutModel
  - `sections` PublicLayoutSectionModel[], nullable
    - `id` string, uuid
    - `name` string, nullable
    - `order` integer
    - `habits` PublicLayoutHabitModel[], nullable
      - `id` string, uuid
      - `name` string, nullable
      - `order` integer

## Other responses

- `401`: Unauthorized
- `402`: Payment Required

---

[API](https://skmtc.dev/habitpocket/apis/metricspocket-public-api.md) - [All operations](https://skmtc.dev/habitpocket/apis/metricspocket-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/habitpocket/apis/metricspocket-public-api/revisions/28a2063c7bbe?raw)
