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

# Create object type

> Create an object type for your team. The legacy `/api/v1/create-object-type` route is also accepted.



## OpenAPI

````yaml /openapi.yaml post /api/v1/object-types
openapi: 3.1.0
info:
  title: Voxworks API
  version: 1.0.0
  description: >-
    Public REST API for creating contacts, scheduling calls, retrieving call
    results, managing lists and objects, and receiving automation webhooks.
servers:
  - url: https://api.voxworks.ai
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Health
  - name: Contacts
  - name: Calls
  - name: Lists
  - name: Objects
  - name: Webhooks
paths:
  /api/v1/object-types:
    post:
      tags:
        - Objects
      summary: Create object type
      description: >-
        Create an object type for your team. The legacy
        `/api/v1/create-object-type` route is also accepted.
      operationId: createObjectType
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateObjectTypeRequest'
            example:
              type_name: property
              display_name: Property
              description: Property records imported from a CRM
              validation_mode: strict
              unique_by_contact: false
              schema:
                address: string
                bedrooms: number
      responses:
        '201':
          description: Object type created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  object_type_id:
                    type: string
                  object_type:
                    $ref: '#/components/schemas/ObjectType'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    CreateObjectTypeRequest:
      type: object
      required:
        - type_name
        - display_name
        - schema
      properties:
        type_name:
          type: string
          pattern: ^[a-z][a-z0-9_]*$
        display_name:
          type: string
        description:
          type: string
          maxLength: 1000
        schema:
          type: object
          additionalProperties: true
        validation_mode:
          type: string
          enum:
            - 'off'
            - warn
            - strict
          default: 'off'
        unique_by_contact:
          type: boolean
          default: false
    ObjectType:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        type_name:
          type: string
        display_name:
          type: string
        description:
          type:
            - string
            - 'null'
        schema:
          type: object
          additionalProperties: true
        validation_mode:
          type: string
          enum:
            - 'off'
            - warn
            - strict
        unique_by_contact:
          type: boolean
    ErrorResponse:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
  responses:
    BadRequest:
      description: Missing or invalid request data.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, malformed, or invalid authorization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            invalid:
              value:
                success: false
                message: Invalid API key
    Conflict:
      description: The request conflicts with an existing resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: Rate limit exceeded.
      headers:
        Retry-After:
          schema:
            type: string
        X-RateLimit-Limit:
          schema:
            type: string
        X-RateLimit-Remaining:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            message: Rate limit exceeded
    InternalServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            message: Internal server error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'API key from Voxworks, sent as `Authorization: Bearer YOUR_API_KEY`.'

````