---
title: "Get an operator fixed-width layout template"
method: GET
path: "/v1/imports/formats/templates/{templateId}"
tags: ["Ingestion"]
---

# Get an operator fixed-width layout template

`GET /v1/imports/formats/templates/{templateId}`

Retrieves one active per-tenant fixed-width layout template by its id. Returns 404 when no active template matches. Tenant from the JWT; never the body.

## Path parameters

- `templateId` string, uuid, required — Layout template ID

## Response `200`

OK

- LayoutTemplateResponse
  - `createdAt` string, date-time, required — Creation timestamp (RFC 3339, UTC)
  - `discriminator` LayoutTemplateDiscriminatorResponse, required
    - `length` integer, required — Discriminator width in bytes
    - `startByte` integer, required — Zero-based byte offset of the record-type discriminator
  - `formatKey` string, required — Canonical format descriptor key (region/family/variant) the template registers under
  - `id` string, uuid, required — Template identifier
  - `recordTypeCount` integer, required — Number of record types the layout declares
  - `recordWidths` object, required — Per-record-type fixed width in bytes, keyed by record type
  - `records` LayoutTemplateRecordResponse[], nullable, required — Record types the layout declares, each with its fixed width and ordered byte-range fields, sorted by record type
    - `fields` LayoutTemplateFieldResponse[], nullable, required — Ordered positional fields of this record type
      - `kind` string, required — Value type: string (raw text), decimal (money/numeric verbatim token, parsed downstream), or date
      - `length` integer, required — Field width in bytes
      - `name` string, required — Canonical field name this byte slice feeds (e.g. external_id, amount, currency, date)
      - `startByte` integer, required — Zero-based byte offset where the field begins
    - `recordType` string, required — Record-type value the discriminator byte slice matches (e.g. "1")
    - `width` integer, required — Fixed width in bytes every record of this type must be
  - `requiredFields` string[], nullable, required — Field names the variant must declare across its record types
  - `variantKey` string, required — In-file variant key the layout is keyed by

## Other responses

- `default` — Error

---

[API](https://skmtc.net/lerian/apis/identity-plugin.md) · [All operations](https://skmtc.net/lerian/apis/identity-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lerian/identity-plugin/revisions/25daba385532/schema)
