Create Object Schema
POSThttps://a.klaviyo.com/api/object-schemas
Create an object schema.
- Revision header
revision: 2026-10-15required- Scopes
custom-objects:write- Rate limits
- Burst:
3/sSteady:60/m
Query parameters
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2026-10-15
Request body
Content type: application/vnd.api+jsonrequired
Show 3 fields
Show 6 fields
The title for this object schema
Properties of the object schema
Show 4 fields
The ID of the schema property. Must be a postive integer.
Enter a whole number. Until you do, the example request uses the example value.
The name of the schema property
The type of the schema property
The description of the schema property
The description of this object schema
The status to create this object schema in. Defaults to
draft. Settingactiveactivates the schema immediately; while activation is in progress, reads may report apublishingstatus.Properties that are required on the object schema
The source mapping to create with this object schema
Show 1 field
Show 2 fields
Show 2 fields
A mapping of source property IDs to source mappings
Option 1:
ConstantPropertyMappingProperty ID. Must be a positive integer.
Enter a whole number. Until you do, the example request uses the example value.
String literal for serialization
Constant value assigned to every record
Enter a whole number. Until you do, the example request uses the example value.
Option 2:
SimplePropertyMappingProperty ID
Enter a whole number. Until you do, the example request uses the example value.
String literal for serialization
A mapping of source relationship IDs to source mappings
Show 3 fields
Object schema relationship ULID ID
String literal for serialization
Data source mapping
Responses
201Success
Content type: application/vnd.api+json
Show 5 fields
The ULID ID of the object schema
Show 7 fields
The title for this object schema
The description of this object schema
The status of this object schema
Properties of the object schema
Properties that are required on the object schema
The datetime when this object schema was activated
The visibility of this object schema
Show 3 fields
Show 1 field
Response-level metadata
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json