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

# Create a new contact



## OpenAPI

````yaml /openapi.yaml post /kontakte
openapi: 3.1.0
info:
  title: Api
  version: 2.1.4
  description: Pachtify360 API specification
servers:
  - url: /api
    description: Base API path
security:
  - cookieAuth: []
tags:
  - name: health
    description: Health operations
  - name: pachtkonten
    description: Lease account management
  - name: patchobjekte
    description: Patch object management
  - name: kontakte
    description: Contact management
  - name: abrechnung
    description: Billing and invoicing
  - name: audit
    description: Audit log management
  - name: dashboard
    description: Dashboard summary data
  - name: duplikate
    description: Duplicate detection and merge
  - name: einstellungen
    description: Application settings
paths:
  /kontakte:
    post:
      tags:
        - kontakte
      summary: Create a new contact
      operationId: createKontakt
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateKontaktBody'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Kontakt'
components:
  schemas:
    CreateKontaktBody:
      type: object
      properties:
        vorname:
          type: string
        nachname:
          type: string
        anrede:
          type: string
          nullable: true
        kurzbezeichnung:
          type: string
          nullable: true
        firma:
          type: string
          nullable: true
        typ:
          type: string
          enum:
            - pachter
            - verpaechter
            - eigentuemer
            - behoerde
            - dienstleister
            - sonstige
          default: sonstige
        email:
          type: string
          nullable: true
        telefon:
          type: string
          nullable: true
        adresse:
          type: string
          nullable: true
        notizen:
          type: string
          nullable: true
        kreditorennummer:
          type: string
          nullable: true
        ustId:
          type: string
          nullable: true
        sepaMandatsart:
          type: string
          nullable: true
        sepaGlaeubigerId:
          type: string
          nullable: true
        sepaMandatsreferenz:
          type: string
          nullable: true
        sepaAusstellungsdatum:
          type: string
          nullable: true
        strasse:
          type: string
          nullable: true
        hausnummer:
          type: string
          nullable: true
        plz:
          type: string
          nullable: true
        ort:
          type: string
          nullable: true
        bundesland:
          type: string
          nullable: true
        land:
          type: string
          nullable: true
        zahlungsart:
          type: string
          nullable: true
        zahlungsmoral:
          type: integer
          nullable: true
        lastschrifteinzug:
          type: boolean
          nullable: true
        iban:
          type: string
          nullable: true
        bic:
          type: string
          nullable: true
        kontoinhaber:
          type: string
          nullable: true
        feldwerte:
          type: array
          items:
            type: object
            properties:
              kontaktfeldId:
                type: integer
              wert:
                type: string
            required:
              - kontaktfeldId
              - wert
      required:
        - vorname
        - nachname
    Kontakt:
      type: object
      properties:
        id:
          type: integer
        vorname:
          type: string
        nachname:
          type: string
        anrede:
          type: string
          nullable: true
        kurzbezeichnung:
          type: string
          nullable: true
        firma:
          type: string
          nullable: true
        typ:
          type: string
          enum:
            - pachter
            - verpaechter
            - eigentuemer
            - behoerde
            - dienstleister
            - sonstige
        email:
          type: string
          nullable: true
        telefon:
          type: string
          nullable: true
        adresse:
          type: string
          nullable: true
        notizen:
          type: string
          nullable: true
        kreditorennummer:
          type: string
          nullable: true
        ustId:
          type: string
          nullable: true
        sepaMandatsart:
          type: string
          nullable: true
        sepaGlaeubigerId:
          type: string
          nullable: true
        sepaMandatsreferenz:
          type: string
          nullable: true
        sepaAusstellungsdatum:
          type: string
          nullable: true
        strasse:
          type: string
          nullable: true
        hausnummer:
          type: string
          nullable: true
        plz:
          type: string
          nullable: true
        ort:
          type: string
          nullable: true
        bundesland:
          type: string
          nullable: true
        land:
          type: string
          nullable: true
        kundennummer:
          type: string
          nullable: true
        zahlungsart:
          type: string
          nullable: true
        zahlungsmoral:
          type: integer
          nullable: true
        lastschrifteinzug:
          type: boolean
          nullable: true
        iban:
          type: string
          nullable: true
        bic:
          type: string
          nullable: true
        kontoinhaber:
          type: string
          nullable: true
        sevdeskId:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - vorname
        - nachname
        - typ
        - createdAt
        - updatedAt
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: pachtify360.sid
      description: Serverseitige Anwendungssitzung nach Microsoft-Anmeldung.

````

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