---
title: "Create Object Type"
description: "How to call Create Object Type (POST /api/object-types) 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/create_object_type"
revision: "2026-07-15"
latestUrl: "https://developers.klaviyo.com/en/reference/create_object_type"
operationId: "create_object_type"
method: "POST"
endpoint: "https://a.klaviyo.com/api/object-types"
authentication: "privateKey"
scopes: ["custom-objects:write"]
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/create_object_type.json"
jsonApi: {"fields":{"object-type":["created_at","description","id","namespace","status","title","updated_at"]}}
related: ["https://developers.klaviyo.com/en/v2026-07-15/reference/custom-objects/llms.txt","https://developers.klaviyo.com/en/v2026-07-15/reference/get_object_types.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_object_type.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_object_type.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_current_schema_for_object_type.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_current_schema_id_for_object_type.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_draft_schema_for_object_type.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_draft_schema_id_for_object_type.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_schema_versions_for_object_type.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_schema_version_ids_for_object_type.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_object_type_relationships.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_profile_type_relationships.md"]
---

# Create Object Type

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

```http
POST https://a.klaviyo.com/api/object-types
```

Create an object type.

- Revision header: `revision: 2026-07-15` (required)
- Scopes: `custom-objects:write`
- 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/create_object_type.json)

## Example request

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/object-types' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-07-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "object-type",
    "attributes": {
      "title": "Pet Care Subscription",
      "visibility": "private",
      "namespace": "custom-objects"
    }
  }
}'
```

## Query parameters

- `fields[object-type]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `created_at`, `description`, `id`, `namespace`, `status`, `title`, `updated_at`

## Headers

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

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `object-type`
  - `attributes` (object, required)
    - `title` (string, required): The title for this object type. Note that this title moves in lockstep with the associated object-schema title. Example: `Pet Care Subscription`
    - `description` (string, nullable): The description of this object type. Note that this description moves in lockstep with the associated object-schema description. Default: ``
    - `visibility` (string, nullable): The visibility of this object type Allowed values: `private`, `shared` Default: `private` Example: `private`
    - `namespace` (string, nullable): The namespace of this object type. Either `custom-objects` or `applications/<application_id>`, where `<application_id>` is the ULID of the OAuth application that owns the object type. Defaults to `custom-objects`. Default: `custom-objects` Example: `custom-objects`
    - `object-schema` (object, nullable): The object schema to create with this object type
      - `data` (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/create_object_type.json).

### Example request body

```json
{
  "data": {
    "type": "object-type",
    "attributes": {
      "title": "Pet Care Subscription",
      "visibility": "private",
      "namespace": "custom-objects"
    }
  }
}
```

## Responses

### 201: Success

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

- `data` (object, required)
  - `type` (string, required): Allowed values: `object-type`
  - `id` (string, required): The ULID ID of the object type Example: `01JXKYCN9A5M3QPVR8T2WE4BLD`
  - `attributes` (object, required)
    - `title` (string, required): The title for this object type Example: `Pet Care Subscription`
    - `description` (string, required): The description of this object type
    - `status` (string, required): The status of the schema associated with this object type Allowed values: `active`, `draft`, `publishing`, `undefined`
    - `namespace` (string, required): The namespace of this object type. Either `custom-objects` or `applications/<application_id>`, where `<application_id>` is the ULID of the OAuth application that owns the object type.
    - `created_at` (string<date-time>, required): The date and time when this object type was created Example: `2022-11-08T00:00:00+00:00`
    - `updated_at` (string<date-time>, required): The date and time when this object type was last updated Example: `2022-11-08T00:00:00+00:00`
  - `relationships` (object)
    - `current-schema` (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/create_object_type.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/create_object_type.json).
    - `draft-schema` (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/create_object_type.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/create_object_type.json).
    - `schema-versions` (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/create_object_type.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/create_object_type.json).
    - `object-types` (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/create_object_type.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/create_object_type.json).
    - `profile-object-types` (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/create_object_type.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/create_object_type.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `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-type",
    "id": "01JXKYCN9A5M3QPVR8T2WE4BLD",
    "attributes": {
      "title": "Pet Care Subscription",
      "description": "string",
      "status": "active",
      "namespace": "string",
      "created_at": "2022-11-08T00:00:00+00:00",
      "updated_at": "2022-11-08T00:00:00+00:00"
    },
    "relationships": {
      "current-schema": {
        "data": {
          "type": "object-schema",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "draft-schema": {
        "data": {
          "type": "object-schema",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "schema-versions": {
        "data": [
          {
            "type": "object-schema",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "object-types": {
        "data": [
          {
            "type": "object-type",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "profile-object-types": {
        "data": [
          {
            "type": "profile-object-type",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "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"
      }
    }
  ]
}
```
