---
title: "List tenant plans sorted by creation date"
method: GET
path: "/plans"
tags: ["Plan"]
---

# List tenant plans sorted by creation date

`GET /plans`

Returns the first page of plans belonging to the specified tenant, sorted by creation date descending (most recent first). Call this to retrieve the current plan catalogue for a tenant. The caller must hold the READ_PLAN permission. **Note:** the current implementation always queries page 0 with a fixed page size of 10; pagination parameters are not exposed on this endpoint, so if the tenant has more than 10 plans, only the 10 most recent are returned. If the tenant has no plans, `data` is empty and `totalCount` is 0 (a downstream 404 is silently mapped to an empty result).

## Headers

- `tenant-id` string, required

## Response `200`

Envelope containing the tenant's plans for the current (fixed) page.

- GetAllPlansResponse
  - `totalCount` integer — Total number of plans matching the request, across all pages.
  - `data` object[] — The current page of plan records (at most 10).
    - `id` string — Server-assigned unique identifier for the plan.
    - `tenantId` string — Identifier of the tenant that owns this plan.
    - `payerId` string — Identifier of the payer this plan is associated with. Extracted server-side from `data.payer` at creation time.
    - `data` object — The plan's domain data, validated against the Plan JSON schema at creation/update time.

## Other responses

- `400` — Returned when the required `tenant-id` header is missing.
- `401` — Returned if the request is unauthorized. Authentication required.
- `403` — Returned if the caller lacks the READ_PLAN permission.
- `500` — Returned for an unexpected internal error.
- `502` — Returned when the downstream data service (DAL) responds with an error status.
- `503` — Returned when the downstream data service (DAL) cannot be reached.

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/563848e0ecc0/schema)
