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

---
id: cee756d7-5002-4542-8a12-9c19647a7081
---

# Create a new custom object schema.

> Create a new custom object schema by defining its properties and associations.

export const ScopesList = ({scopes = [], description = "This API requires one of the following scopes:"}) => {
  if (!scopes || scopes.length === 0) {
    return null;
  }
  const sortedScopes = scopes.sort((a, b) => a.localeCompare(b));
  return <div>
      <div className="text-sm mb-2">{description}</div>
      <div>
        {sortedScopes.map((scope, index) => <div key={index}>
            <code>
              <span className="text-xs">{scope}</span>
            </code>
          </div>)}
      </div>
    </div>;
};

export const SupportedProducts = ({marketing, sales, service, cms, data, commerce, marketingLevel, salesLevel, serviceLevel, cmsLevel, dataLevel, commerceLevel}) => {
  const translations = {
    description: "Requires one of the following products or higher.",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub",
      data: "Data Hub",
      commerce: "Revenue Hub"
    },
    tiers: {
      free: "Free",
      starter: "Starter",
      professional: "Professional",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/marketing-bolt.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/sales-star.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/service-heart.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/content-play.svg",
    alt: "Content Hub"
  }, {
    name: data ? translations.productNames.data : '',
    level: translateTier(dataLevel),
    icon: "https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/subscription_key_icons/operations_icon.svg",
    alt: "Data Hub"
  }, {
    name: commerce ? translations.productNames.commerce : '',
    level: translateTier(commerceLevel),
    icon: "https://developers.hubspot.com/hubfs/Knowledge_Base/subscription_key_icons/commerce_icon.svg",
    alt: "Revenue Hub"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<AccordionGroup>
  <Accordion title="Supported products" defaultOpen="true" icon="cubes">
    <SupportedProducts marketing={true} sales={true} service={true} cms={true} marketingLevel="ENTERPRISE" salesLevel="ENTERPRISE" serviceLevel="ENTERPRISE" cmsLevel="ENTERPRISE" />
  </Accordion>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'crm.schemas.custom.write'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/2026-03/crm-schemas-v2026-03.json POST /crm-object-schemas/2026-03/schemas
openapi: 3.0.1
info:
  title: Schemas
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: ENTERPRISE
    sales: ENTERPRISE
    service: ENTERPRISE
    cms: ENTERPRISE
    commerce: ENTERPRISE
    crmHub: ENTERPRISE
    dataHub: ENTERPRISE
  x-hubspot-api-use-case: >-
    Create a new object for storing information about cars at a car dealership.
    Your object definition could include properties to store information as well
    as the filters available on the custom object index page.
  x-hubspot-introduction: >-
    Use the custom objects schema API to define new types of CRM records in your
    account. After setting up an object schema, you'll then be able to create
    records for that custom object both in HubSpot and using the objects API.
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Advanced
  - name: Basic
  - name: Batch
paths:
  /crm-object-schemas/2026-03/schemas:
    post:
      tags:
        - Basic
      summary: Create a new custom object schema.
      description: >-
        Create a new custom object schema by defining its properties and
        associations.
      operationId: post-/crm-object-schemas/2026-03/schemas_create
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ObjectSchemaEgg'
        required: true
      responses:
        '201':
          description: successful operation
          headers:
            Location:
              description: URL of the newly created resource
              style: simple
              explode: false
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectSchema'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - crm.schemas.custom.write
components:
  schemas:
    ObjectSchemaEgg:
      required:
        - allowsSensitiveProperties
        - associatedObjects
        - labels
        - name
        - properties
        - requiredProperties
        - searchableProperties
        - secondaryDisplayProperties
        - shouldCreateSameObjectAssociation
      type: object
      properties:
        allowsSensitiveProperties:
          type: boolean
          description: >-
            Determines if the object type can include properties that are marked
            as sensitive.
        associatedObjects:
          type: array
          description: Associations defined for this object type.
          items:
            type: string
        description:
          type: string
          description: A brief explanation of the object type.
        labels:
          $ref: '#/components/schemas/ObjectTypeDefinitionLabels'
        name:
          type: string
          description: A unique name for this object. For internal use only.
        primaryDisplayProperty:
          type: string
          description: >-
            The name of the primary property for this object. This will be
            displayed as primary on the HubSpot record page for this object
            type.
        properties:
          type: array
          description: Properties defined for this object type.
          items:
            $ref: '#/components/schemas/ObjectTypePropertyCreate'
        requiredProperties:
          type: array
          description: >-
            The names of properties that should be **required** when creating an
            object of this type.
          items:
            type: string
        searchableProperties:
          type: array
          description: >-
            Names of properties that will be indexed for this object type in by
            HubSpot's product search.
          items:
            type: string
        secondaryDisplayProperties:
          type: array
          description: >-
            The names of secondary properties for this object. These will be
            displayed as secondary on the HubSpot record page for this object
            type.
          items:
            type: string
        shouldCreateSameObjectAssociation:
          type: boolean
    ObjectSchema:
      required:
        - allowsSensitiveProperties
        - archived
        - associations
        - fullyQualifiedName
        - id
        - labels
        - name
        - objectTypeId
        - properties
        - requiredProperties
        - searchableProperties
        - secondaryDisplayProperties
      type: object
      properties:
        allowsSensitiveProperties:
          type: boolean
        archived:
          type: boolean
        associations:
          type: array
          description: Associations defined for a given object type.
          items:
            $ref: '#/components/schemas/AssociationDefinition'
        createdAt:
          type: string
          description: When the object schema was created.
          format: date-time
        createdByUserId:
          type: integer
          format: int32
        description:
          type: string
        fullyQualifiedName:
          type: string
          description: >-
            An assigned unique ID for the object, including portal ID and object
            name.
        id:
          type: string
          description: >-
            A unique ID for this schema's object type. Will be defined as
            {meta-type}-{unique ID}.
        labels:
          $ref: '#/components/schemas/ObjectTypeDefinitionLabels'
        name:
          type: string
          description: A unique name for the schema's object type.
        objectTypeId:
          type: string
        primaryDisplayProperty:
          type: string
          description: >-
            The name of the primary property for this object. This will be
            displayed as primary on the HubSpot record page for this object
            type.
        properties:
          type: array
          description: Properties defined for this object type.
          items:
            $ref: '#/components/schemas/Property'
        requiredProperties:
          type: array
          description: >-
            The names of properties that should be **required** when creating an
            object of this type.
          items:
            type: string
        searchableProperties:
          type: array
          description: >-
            Names of properties that will be indexed for this object type in by
            HubSpot's product search.
          items:
            type: string
        secondaryDisplayProperties:
          type: array
          description: >-
            The names of secondary properties for this object. These will be
            displayed as secondary on the HubSpot record page for this object
            type.
          items:
            type: string
        updatedAt:
          type: string
          description: When the object schema was last updated.
          format: date-time
        updatedByUserId:
          type: integer
          format: int32
    ObjectTypeDefinitionLabels:
      type: object
      properties:
        plural:
          type: string
          description: >-
            The word for multiple objects. (There’s no way to change this
            later.)
        singular:
          type: string
          description: The word for one object. (There’s no way to change this later.)
    ObjectTypePropertyCreate:
      required:
        - fieldType
        - label
        - name
        - type
      type: object
      properties:
        description:
          type: string
          description: >-
            A description of the property that will be shown as help text in
            HubSpot.
        displayOrder:
          type: integer
          description: >-
            The order that this property should be displayed in the HubSpot UI
            relative to other properties for this object type. Properties are
            displayed in order starting with the lowest positive integer value.
            A value of -1 will cause the property to be displayed **after** any
            positive values.
          format: int32
        externalOptionsReferenceType:
          type: string
          description: >-
            Specifies the reference type for external options associated with
            the property.
        fieldType:
          type: string
          description: Controls how the property appears in HubSpot.
        formField:
          type: boolean
          description: Whether the property can be used in a HubSpot form.
        groupName:
          type: string
          description: The name of the group this property belongs to.
        hasUniqueValue:
          type: boolean
          description: >-
            Whether or not the property's value must be unique. Once set, this
            can't be changed.
        hidden:
          type: boolean
          description: Hidden options won't be shown in HubSpot.
        label:
          type: string
          description: A human-readable property label that will be shown in HubSpot.
        name:
          type: string
          description: >-
            The internal property name, which must be used when referencing the
            property from the API.
        numberDisplayHint:
          type: string
          description: Controls how numeric properties are formatted in the HubSpot UI
          enum:
            - currency
            - duration
            - formatted
            - percentage
            - probability
            - unformatted
        optionSortStrategy:
          type: string
          description: Controls how the property options will be sorted in the HubSpot UI.
          enum:
            - ALPHABETICAL
            - DISPLAY_ORDER
        options:
          type: array
          description: >-
            A list of available options for the property. This field is only
            required for enumerated properties.
          items:
            $ref: '#/components/schemas/OptionInput'
        referencedObjectType:
          type: string
          description: >-
            Defines the options this property will return, e.g. OWNER would
            return name of users on the portal.
        searchableInGlobalSearch:
          type: boolean
          description: >-
            Allow users to search for information entered to this field (limited
            to 3 properties)
        showCurrencySymbol:
          type: boolean
          description: >-
            Whether the property will display the currency symbol in the HubSpot
            UI.
        textDisplayHint:
          type: string
          description: Controls how text properties are formatted in the HubSpot UI
          enum:
            - domain_name
            - email
            - ip_address
            - multi_line
            - phone_number
            - physical_address
            - postal_code
            - unformatted_single_line
        type:
          type: string
          description: The data type of the property.
          enum:
            - bool
            - date
            - datetime
            - enumeration
            - number
            - phone_number
            - string
    AssociationDefinition:
      required:
        - fromObjectTypeId
        - id
        - toObjectTypeId
      type: object
      properties:
        createdAt:
          type: string
          description: When the association was defined.
          format: date-time
        fromObjectTypeId:
          type: string
          description: ID of the primary object type to link from.
        id:
          type: string
          description: A unique ID for this association.
        name:
          type: string
          description: A unique name for this association.
        toObjectTypeId:
          type: string
          description: ID of the target object type ID to link to.
        updatedAt:
          type: string
          description: When the association was last updated.
          format: date-time
      description: The definition of an association
    Property:
      required:
        - description
        - fieldType
        - groupName
        - label
        - name
        - options
        - type
      type: object
      properties:
        archived:
          type: boolean
          description: Whether or not the property is archived.
        archivedAt:
          type: string
          description: When the property was archived.
          format: date-time
        calculated:
          type: boolean
          description: >-
            For default properties, true indicates that the property is
            calculated by a HubSpot process. It has no effect for custom
            properties.
        calculationFormula:
          type: string
          description: The formula used for calculated properties.
        createdAt:
          type: string
          description: When the property was created
          format: date-time
        createdUserId:
          type: string
          description: >-
            The internal ID of the user who created the property in HubSpot.
            This field may not exist if the property was created outside of
            HubSpot.
        currencyPropertyName:
          type: string
          description: The name of the related currency property.
        dataSensitivity:
          type: string
          description: >-
            Indicates the sensitivity level of the property, such as
            "non_sensitive", "sensitive", or "highly_sensitive".
          enum:
            - highly_sensitive
            - non_sensitive
            - sensitive
        dateDisplayHint:
          type: string
          description: >-
            Controls how date properties are displayed in the HubSpot UI, with
            options such as 'absolute', 'absolute_with_relative', 'time_since',
            and 'time_until'.
          enum:
            - absolute
            - absolute_with_relative
            - time_since
            - time_until
        description:
          type: string
          description: >-
            A description of the property that will be shown as help text in
            HubSpot.
        displayOrder:
          type: integer
          description: >-
            The order that this property should be displayed in the HubSpot UI
            relative to other properties for this object type. Properties are
            displayed in order starting with the lowest positive integer value.
            A value of -1 will cause the property to be displayed **after** any
            positive values.
          format: int32
        externalOptions:
          type: boolean
          description: >-
            For default properties, true indicates that the options are stored
            externally to the property settings.
        fieldType:
          type: string
          description: Controls how the property appears in HubSpot.
        formField:
          type: boolean
          description: Whether or not the property can be used in a HubSpot form.
        groupName:
          type: string
          description: The name of the property group the property belongs to.
        hasUniqueValue:
          type: boolean
          description: >-
            Whether or not the property's value must be unique. Once set, this
            can't be changed.
        hidden:
          type: boolean
          description: Hidden options won't be shown in HubSpot.
          example: false
        hubspotDefined:
          type: boolean
          description: This will be true for default object properties built into HubSpot.
        label:
          type: string
          description: A human-readable property label that will be shown in HubSpot.
        modificationMetadata:
          $ref: '#/components/schemas/PropertyModificationMetadata'
        name:
          type: string
          description: >-
            The internal property name, which must be used when referencing the
            property via the API.
        numberDisplayHint:
          type: string
          description: >-
            Hint for how a number property is displayed and validated in
            HubSpot's UI. Can be: "unformatted", "formatted", "currency",
            "percentage", "duration", or "probability".
          enum:
            - currency
            - duration
            - formatted
            - percentage
            - probability
            - unformatted
        options:
          type: array
          description: >-
            A list of valid options for the property. This field is required for
            enumerated properties, but will be empty for other property types.
          items:
            $ref: '#/components/schemas/Option'
        referencedObjectType:
          type: string
          description: >-
            If this property is related to other object(s), they'll be listed
            here.
        sensitiveDataCategories:
          type: array
          description: >-
            When sensitiveData is true, lists the type of sensitive data
            contained in the property (e.g., "HIPAA").
          items:
            type: string
        showCurrencySymbol:
          type: boolean
          description: >-
            Whether the property will display the currency symbol set in the
            account settings.
        textDisplayHint:
          type: string
          description: >-
            Hint for how the text is displayed and validated in HubSpot's UI.
            Can be: "unformatted_single_line", "multi_line", "email",
            "phone_number", "domain_name", "ip_address", "physical_address", or
            "postal_code".
          enum:
            - domain_name
            - email
            - ip_address
            - multi_line
            - phone_number
            - physical_address
            - postal_code
            - unformatted_single_line
        type:
          type: string
          description: The property data type.
        updatedAt:
          type: string
          description: When the object type was last updated.
          format: date-time
        updatedUserId:
          type: string
          description: >-
            The internal user ID of the user who updated the property in
            HubSpot. This field may not exist if the property was updated
            outside of HubSpot.
      description: A HubSpot property
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: The error category
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Context about the error condition
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            A unique identifier for the request. Include this value with any
            error reports or support tickets
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: further information about the error
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            A map of link names to associated URIs containing documentation
            about the error or recommended remediation steps
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate
          example: An error occurred
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    OptionInput:
      required:
        - displayOrder
        - hidden
        - label
        - value
      type: object
      properties:
        description:
          type: string
          description: A description of the option.
        displayOrder:
          type: integer
          description: >-
            Options are shown in order starting with the lowest positive integer
            value. Values of -1 will cause the option to be displayed after any
            positive values.
          format: int32
        hidden:
          type: boolean
          description: Hidden options won't be shown in HubSpot.
        label:
          type: string
          description: A human-readable option label that will be shown in HubSpot.
        value:
          type: string
          description: >-
            The internal value of the option, which must be used when setting
            the property value through the API.
    PropertyModificationMetadata:
      required:
        - archivable
        - readOnlyDefinition
        - readOnlyValue
      type: object
      properties:
        archivable:
          type: boolean
          description: Indicates whether the property can be archived.
        readOnlyDefinition:
          type: boolean
          description: Indicates whether the property's definition is read-only.
        readOnlyOptions:
          type: boolean
          description: Indicates whether the property's options are read-only.
        readOnlyValue:
          type: boolean
          description: Indicates whether the property's value is read-only.
    Option:
      required:
        - hidden
        - label
        - value
      type: object
      properties:
        description:
          type: string
          description: A description of the option.
        displayOrder:
          type: integer
          description: >-
            Options are displayed in order starting with the lowest positive
            integer value. Values of -1 will cause the option to be displayed
            after any positive values.
          format: int32
        hidden:
          type: boolean
          description: Hidden options will not be displayed in HubSpot.
        label:
          type: string
          description: A human-readable option label that will be shown in HubSpot.
        value:
          type: string
          description: >-
            The internal value of the option, which must be used when setting
            the property value through the API.
      description: A HubSpot property option
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: The status code associated with the error detail
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Context about the error condition
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: The name of the field or parameter in which the error was found.
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            crm.objects.custom.highly_sensitive.read.v2: ''
            crm.objects.custom.read: ''
            crm.objects.custom.sensitive.read.v2: ''
            crm.schemas.custom.read: ''
            crm.schemas.custom.write: ''
            oauth: ''

````