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

# Create a custom field

> Exige a permissão "Gerenciar campos personalizados". A chave (`key`) é única no workspace.



## OpenAPI

````yaml post /v1/custom-fields
openapi: 3.0.0
info:
  title: Kinbox API
  description: Kinbox public API
  version: '2.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/custom-fields:
    post:
      tags:
        - v1CustomFields
      summary: Create a custom field
      description: >-
        Exige a permissão "Gerenciar campos personalizados". A chave (`key`) é
        única no workspace.
      operationId: createCustomField
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCustomFieldPublicDto'
      responses:
        '201':
          description: ''
components:
  schemas:
    CreateCustomFieldPublicDto:
      type: object
      properties:
        name:
          type: string
        entity:
          type: string
          enum:
            - contact
            - deal
            - session
            - organization
            - group
            - channel
            - user
            - product
            - task
          description: '`session` = conversa'
        type:
          type: string
          enum:
            - text
            - textarea
            - select
            - multi-select
            - boolean
            - number
            - decimal
            - day
            - datetime
            - json
        key:
          type: string
          description: >-
            Chave usada em `customFields` (padrão: gerada do nome, sem acento e
            com `_`). Não muda depois.
        options:
          description: Opções de `select` e `multi-select` (obrigatório nesses tipos)
          type: array
          items:
            type: string
        description:
          type: string
        required:
          type: boolean
          description: Obrigatório para resolver a conversa
      required:
        - name
        - entity
        - type

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.