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

# Criar atendimento



## OpenAPI

````yaml https://api.juridiq.com.br/api-docs/client/openapi.json post /consulting/
openapi: 3.1.0
info:
  title: Juridiq API — Documentação para Integradores
  description: >-
    API REST para integradores autenticados com chave (`x-juridiq-api-key`).


    ## Rate limit


    A API aberta limita **120 requisições a cada 60s por chave**.

    Ao exceder, a resposta é `429 Too Many Requests` com os headers
    `x-ratelimit-limit`, `x-ratelimit-remaining`, `x-ratelimit-reset` e
    `retry-after`.

    Respeite o `retry-after` antes de tentar de novo. Sincronizações em lote
    devem paginar e tratar 429 com backoff.
  version: 1.0.0
servers:
  - url: https://api.juridiq.com.br
    description: Production server
security:
  - apiKeyAuth: []
tags: []
paths:
  /consulting/:
    post:
      tags:
        - Consulting
      summary: Criar atendimento
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                officeId:
                  type: string
                  description: 'Ignorado: o escritório vem da credencial (JWT ou API key)'
                personId:
                  type: string
                  description: ID da pessoa
                subject:
                  type: string
                  description: Assunto
                registers:
                  type: array
                  items:
                    type: object
                    properties:
                      content:
                        type: string
                        description: Texto do registro
                    required:
                      - content
                    additionalProperties: false
                  description: Registros iniciais
                lawSuitId:
                  type: string
                  description: ID do processo
                isPrivate:
                  type: boolean
                  default: false
                  description: Atendimento privado
                consultingColumnId:
                  type: string
                  format: uuid
                  description: ID da coluna do funil
                taskIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                  description: IDs de tarefas já existentes
                tags:
                  type: array
                  items:
                    type: string
                    format: uuid
                  description: IDs de etiquetas
                responsibleIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                  description: IDs dos responsáveis
                customFields:
                  type: array
                  items:
                    type: object
                    properties:
                      fieldId:
                        type: string
                        format: uuid
                        description: ID do campo personalizado
                      value:
                        anyOf:
                          - type: string
                            maxLength: 10000
                          - type: number
                          - type: array
                            items:
                              type: string
                              maxLength: 100
                            maxItems: 100
                        nullable: true
                        description: Valor do campo — null limpa o valor gravado
                    required:
                      - fieldId
                      - value
                    additionalProperties: false
                  maxItems: 100
                  description: Campos personalizados
              required:
                - personId
                - subject
                - registers
              additionalProperties: false
        required: true
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: ID do atendimento criado
                required:
                  - id
                additionalProperties: true
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      message:
                        type: string
                      issues: {}
                    required:
                      - message
                    additionalProperties: false
                  - type: object
                    properties:
                      message:
                        type: string
                      statusCode:
                        type: number
                      translateMessage:
                        type: string
                    required:
                      - message
                      - statusCode
                      - translateMessage
                    additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-juridiq-api-key
      description: >-
        Chave de API do escritório (criada no painel). Envie o valor no header
        x-juridiq-api-key. A API aberta aplica rate limit por chave (veja a
        documentação de integradores).

````

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