Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2026-07-15/reference/get_object_schema_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15.pre/openapi/beta/apis/get_object_schema_beta.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-07-15

This endpoint is in beta. Call it with the revision header 2026-07-15.pre. Beta endpoints may change before they're generally available. See our versioning and deprecation policy for more information.

You're reading the reference for API revision 2026-07-15. The latest revision is 2026-10-15. See this page in the latest revision.

Get Object Schema

GEThttps://a.klaviyo.com/api/object-schemas/{id}

Get the object schema with the given ID.

Revision header
revision: 2026-07-15.prerequired
Scopes
custom-objects:read
Rate limits
Burst: 3/sSteady: 60/m

Path parameters

  • id#stringrequired

    The ULID ID of the object schema.

    Example: 01K61DKJ7EKJ0ES9VE456XF5JG

Query parameters

  • fields[object-schema]#string[]

    For more information please visit API overview

    Show 14 allowed values
    • configuration
    • configuration.primary_image_url_property_id
    • configuration.record_explorer_display_property_ids
    • configuration.searchable_property_ids
    • configuration.thumbnail_image_url_property_id
    • configuration.title_property_id
    • description
    • id
    • properties
    • published_at
    • required
    • status
    • title
    • visibility
  • fields[profile-object-schema]#string[]

    For more information please visit API overview

    Allowed values:
    • id
  • fields[source-mapping]#string[]

    For more information please visit API overview

    Allowed values:
    • id
    • property_mappings
    • relationship_mappings
  • include#string[]

    For more information please visit API overview

    Allowed values:
    • object-schemas
    • profile-object-schemas
    • source-mapping

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-07-15.pre

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 5 fields
    • type#stringrequired
      Allowed values:
      • object-schema
    • id#stringrequired

      The ULID ID of the object schema

      Example: 01K61DKJ7EKJ0ES9VE456XF5JG

    • attributes#objectrequired
      Show 8 fields
      • title#stringrequired

        The title for this object schema

      • description#stringrequired

        The description of this object schema

      • status#stringrequired

        The status of this object schema

        Allowed values:
        • active
        • draft
        • publishing
        • undefined
      • properties#object[]required

        Properties of the object schema

        Show 4 fields
        • id#integerrequired

          The ID of the schema property. Must be a postive integer.

          Example: 1

        • name#stringrequired

          The name of the schema property

          Example: service_plan

        • type#stringrequired

          The type of the schema property

          Allowed values:
          • boolean
          • float
          • int
          • list_str
          • string
          • timestamp
        • description#stringnullable

          The description of the schema property

          Default:

      • required#string[]required

        Properties that are required on the object schema

      • published_at#string<date-time>nullable

        The datetime when this object schema was activated

        Example: 2022-11-08T00:00:00+00:00

      • visibility#stringrequired

        The visibility of this object schema

        Allowed values:
        • private
        • shared
      • configuration#objectrequired
        Show 5 fields
        • searchable_property_ids#integer[]required

          Property IDs whose values are indexed for full-text search.

        • primary_image_url_property_id#integernullable

          Property ID whose value is the primary image URL for a record.

        • thumbnail_image_url_property_id#integernullable

          Property ID whose value is the thumbnail image URL for a record.

        • record_explorer_display_property_ids#integer[]required

          Ordered list of property IDs to display in the record explorer.

        • title_property_id#integerrequired

          The property ID to use as the Object Record title.

    • relationships#object
      Show 3 fields
      • source-mapping#object
        Show 2 fields
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • source-mapping
          • id#stringrequired

            The source mapping for this object schema

      • object-schemas#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • object-schema
          • id#stringrequired

            The object schema relationships for this object schema

      • profile-object-schemas#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • profile-object-schema
          • id#stringrequired

            The profile object schema relationships for this object schema

  • included#oneOf[]

    One of:

    1. Option 1: ObjectSchemaRelationshipResponseObjectResource
      • type#stringrequired
        Allowed values:
        • object-schema
      • id#stringrequired

        A compound ID uniquely identifying this relationship, in the format '{related_schema_id}:::{relationship_name}'.

        Example: 01JXKYCN9A5M3QPVR8T2WE4BLD:::subscription

      • meta#object
        Show 3 fields
        • relationship_id#stringrequired

          The ULID ID of the relationship.

          Example: 01K5YKKQKM819VVGCPZZKGE6D4

        • name#stringrequired

          The name of the relationship

          Example: subscription

        • description#stringnullable

          The description of the relationship

          Example: The subscription this pet is enrolled in

    2. Option 2: SourceMappingResponseObjectResource
      • type#stringrequired
        Allowed values:
        • source-mapping
      • id#stringrequired

        The ULID ID of the source mapping

        Example: 01K5HQC66PGHV35SYJC5ZV3DZA

      • attributes#objectrequired
        Show 2 fields
        • property_mappings#oneOf[]required

          A mapping of source property IDs to source mappings

          One of:

          1. Option 1: ConstantPropertyMapping
            • id#integerrequired

              Property ID. Must be a positive integer.

              Example: 1

            • type#stringrequired

              String literal for serialization

              Allowed values:
              • constant
            • value#integer | number | string | booleanrequired

              Constant value assigned to every record

              Example: active

          2. Option 2: SimplePropertyMapping
            • id#integerrequired

              Property ID

              Example: 1

            • type#stringrequired

              String literal for serialization

              Allowed values:
              • simple
            • source#objectrequired
              Show 3 fields
              • source_id#stringrequired

                Data source ULID ID

                Example: 01JXKX2HM7NV4QPTR5WE8BF6GY

              • id_path#stringrequired

                JSONPath ID selector

                Example: $['object_record']['subscription_id']

              • data_path#stringrequired

                JSONPath data selector

                Example: $['object_record']['service_plan']

        • relationship_mappings#object[]required

          A mapping of source relationship IDs to source mappings

          Show 3 fields
          • relationship_id#stringrequired

            Object schema relationship ULID ID

            Example: 01K97SE7GH4TE57FVNQY310QAK

          • type#stringrequired

            String literal for serialization

            Allowed values:
            • simple

            Example: simple

          • source#oneOfrequired

            Data source mapping

            One of:

            1. Option 1: CustomObjectRelationshipSource
              • source_id#stringrequired

                Data source ULID ID

                Example: 01JXKX2HM7NV4QPTR5WE8BF6GY

              • type#stringrequired

                String literal for serialization

                Allowed values:
                • custom-object
              • id_path#stringrequired

                JSONPath data selector to owning ID

                Example: $['object_record']['subscription_id']

              • related_id_path#stringrequired

                JSONPath data selector to related ID

                Example: $['object_record']['pet_id']

              • update_strategy#stringnullable

                Strategy for updating relationships with each new RawDataRecord ingestion

                Allowed values:
                • additive
                • replace_from_origin

                Default: replace_from_origin

                Example: replace_from_origin

            2. Option 2: ProfileRelationshipSource
              • source_id#stringrequired

                Data source ULID ID

                Example: 01JXKX2HM7NV4QPTR5WE8BF6GY

              • type#stringrequired

                String literal for serialization

                Allowed values:
                • profile
              • id_path#stringrequired

                JSONPath data selector to owning ID

                Example: $['relationships']['owners'][*]['id']

              • related_id_paths#object[]required

                List of profile identifier mappings to JSONPath data selectors

                Show 2 fields
                • identifier_type#stringrequired

                  Profile identifier type

                  Allowed values:
                  • anonymous
                  • email
                  • external-id
                  • klaviyo-id
                  • phone
                • path#stringrequired

                  JSONPath data selector to related ID

                  Example: $['relationships']['owners'][*]['email']

              • update_strategy#stringnullable

                Strategy for updating relationships with each new RawDataRecord ingestion

                Allowed values:
                • additive
                • replace_from_origin

                Default: replace_from_origin

                Example: replace_from_origin

    3. Option 3: ProfileObjectSchemaRelationshipResponseObjectResource
      • type#stringrequired
        Allowed values:
        • profile-object-schema
      • id#stringrequired

        The ID of the related profile schema.

      • meta#ObjectSchemaRelationshipMeta

        Same fields as the first ObjectSchemaRelationshipMeta above.

  • meta#object

    Response-level metadata

    Show 1 field
    • agent_hints#object

      Optional hints emitted by the API for agent callers

      Show 1 field
      • next_steps#string[]

        Suggested follow-up actions for agents to take after this response

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string