---
title: "Get Object Schema"
description: "How to call Get Object Schema (GET /api/object-schemas/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2026-07-15/reference/get_object_schema"
revision: "2026-07-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_object_schema"
operationId: "get_object_schema"
method: "GET"
endpoint: "https://a.klaviyo.com/api/object-schemas/{id}"
authentication: "privateKey"
scopes: ["custom-objects:read"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json"
jsonApi: {"include":["object-schemas","profile-object-schemas","source-mapping"],"fields":{"object-schema":["description","id","properties","published_at","required","status","title","visibility"],"profile-object-schema":["id"],"source-mapping":["id","property_mappings","relationship_mappings"]}}
related: ["https://developers.klaviyo.com/en/v2026-07-15/reference/custom-objects/llms.txt","https://developers.klaviyo.com/en/v2026-07-15/reference/create_object_schema.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_object_schema.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_source_mapping_for_object_schema.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_source_mapping_id_for_object_schema.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_object_schema_relationships.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_object_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_object_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_object_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_profile_schema_relationships.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_profile_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_profile_schema_relationship.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_profile_schema_relationship.md"]
---

# Get Object Schema

> This is the Markdown version of https://developers.klaviyo.com/en/v2026-07-15/reference/get_object_schema

```http
GET https://a.klaviyo.com/api/object-schemas/{id}
```

Get the object schema with the given ID.

- Revision header: `revision: 2026-07-15` (required)
- Scopes: `custom-objects:read`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json)

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/object-schemas/01K61DKJ7EKJ0ES9VE456XF5JG' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-07-15'
```

## Path parameters

- `id` (string, required): The ULID ID of the object schema. Example: `01K61DKJ7EKJ0ES9VE456XF5JG`

## Query parameters

- `fields[object-schema]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `description`, `id`, `properties`, `published_at`, `required`, `status`, `title`, `visibility`
- `fields[profile-object-schema]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `id`
- `fields[source-mapping]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `id`, `property_mappings`, `relationship_mappings`
- `include` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `object-schemas`, `profile-object-schemas`, `source-mapping`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-07-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `object-schema`
  - `id` (string, required): The ULID ID of the object schema Example: `01K61DKJ7EKJ0ES9VE456XF5JG`
  - `attributes` (object, required)
    - `title` (string, required): The title for this object schema
    - `description` (string, required): The description of this object schema
    - `status` (string, required): The status of this object schema Allowed values: `active`, `draft`, `publishing`, `undefined`
    - `properties` (object[], required): Properties of the object schema
      - `id` (integer, required): The ID of the schema property. Must be a postive integer. Example: `1`
      - `name` (string, required): The name of the schema property Example: `service_plan`
      - `type` (string, required): The type of the schema property Allowed values: `boolean`, `float`, `int`, `list_str`, `string`, `timestamp`
      - `description` (string, nullable): 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` (string, required): The visibility of this object schema Allowed values: `private`, `shared`
  - `relationships` (object)
    - `source-mapping` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json).
    - `object-schemas` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json).
    - `profile-object-schemas` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `included` (oneOf[])
  - One of:
    - Option 1: `ObjectSchemaRelationshipResponseObjectResource`
      - `type` (string, required): Allowed values: `object-schema`
      - `id` (string, required): A compound ID uniquely identifying this relationship, in the format '{related_schema_id}:::{relationship_name}'. Example: `01JXKYCN9A5M3QPVR8T2WE4BLD:::subscription`
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.
      - `meta` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json).
    - Option 2: `SourceMappingResponseObjectResource`
      - `type` (string, required): Allowed values: `source-mapping`
      - `id` (string, required): The ULID ID of the source mapping Example: `01K5HQC66PGHV35SYJC5ZV3DZA`
      - `attributes` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json).
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.
    - Option 3: `ProfileObjectSchemaRelationshipResponseObjectResource`
      - `type` (string, required): Allowed values: `profile-object-schema`
      - `id` (string, required): The ID of the related profile schema.
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.
      - `meta` (ObjectSchemaRelationshipMeta): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_object_schema.json).
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": {
    "type": "object-schema",
    "id": "01K61DKJ7EKJ0ES9VE456XF5JG",
    "attributes": {
      "title": "string",
      "description": "string",
      "status": "active",
      "properties": [
        {
          "id": 1,
          "name": "service_plan",
          "type": "boolean",
          "description": ""
        }
      ],
      "required": [
        "string"
      ],
      "published_at": "2022-11-08T00:00:00+00:00",
      "visibility": "private"
    },
    "relationships": {
      "source-mapping": {
        "data": {
          "type": "source-mapping",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "object-schemas": {
        "data": [
          {
            "type": "object-schema",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "profile-object-schemas": {
        "data": [
          {
            "type": "profile-object-schema",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "included": [
    {
      "type": "object-schema",
      "id": "01JXKYCN9A5M3QPVR8T2WE4BLD:::subscription",
      "links": {
        "self": "https://www.example.com"
      },
      "meta": {
        "relationship_id": "01K5YKKQKM819VVGCPZZKGE6D4",
        "name": "subscription",
        "description": "The subscription this pet is enrolled in"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
