> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myme.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a type

> Returns the full schema for a single type — fields, parent, `display_hints`, `merge_policy`, `version_policy`. Resolves both core and tenant-registered custom types by identifier.



## OpenAPI

````yaml /openapi.json get /types/{id}
openapi: 3.1.0
info:
  title: Marfa API
  version: 4.2.0
  description: Typed data layer for structured personal data
servers: []
security: []
paths:
  /types/{id}:
    get:
      tags:
        - Types
      summary: Get a type
      description: >-
        Returns the full schema for a single type — fields, parent,
        `display_hints`, `merge_policy`, `version_policy`. Resolves both core
        and tenant-registered custom types by identifier.
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Type schema
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  label:
                    type: string
                  description:
                    type: string
                  parent:
                    type: string
                  fields:
                    type: object
                    additionalProperties:
                      nullable: true
                  version:
                    type: number
                  display_hints:
                    type: object
                    properties:
                      title_field:
                        type: string
                      body_field:
                        type: string
                  version_policy:
                    type: object
                    properties:
                      recent_days:
                        type: number
                      daily_snapshot_days:
                        type: number
                      weekly_snapshot_days:
                        type: number
                      max_versions:
                        type: number
                  merge_policy:
                    type: object
                    properties:
                      fields:
                        type: object
                        additionalProperties:
                          type: string
                          enum:
                            - last_writer_wins
                            - keep_both_copies
                      default:
                        type: string
                        enum:
                          - last_writer_wins
                          - keep_both_copies
                required:
                  - id
                  - fields
                  - version
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - unauthorized
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '404':
          description: Type not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - type_not_found
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or OAuth Token
      description: Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

````