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

# Create partner



## OpenAPI

````yaml https://dev.enneo.dev/api/mind/docs/open-api post /partner
openapi: 3.0.0
info:
  version: '1'
  title: enneo.MIND API
  description: This describes the API of enneo Mind, the main ticketing backend
  contact:
    name: enneo GmbH
    email: richard@enneo.ai
  license:
    name: Proprietary software
    url: https://enneo.ai
servers:
  - url: https://demo.enneo.ai/api/mind
    description: Production server, demo client
  - url: https://main.enneo.dev/api/mind
    description: Development main branch
  - url: http://localhost:8005/api/mind
    description: Local development server
security:
  - bearerAuth:
      - api
  - cookieAuth:
      - api
paths:
  /partner:
    post:
      tags:
        - Partner
      summary: Create partner
      operationId: createPartner
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/partner'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                allOf:
                  - type: object
                    properties:
                      id:
                        type: integer
                        example: 1
                      success:
                        type: boolean
                        example: true
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    partner:
      type: object
      required:
        - business
        - id
      properties:
        id:
          readOnly: true
          type: integer
          description: The unique identifier of the partner
          nullable: false
          example: 1
        email:
          type: string
          description: The email of the partner
          nullable: false
          example: mia.jones@gmail.com
        lastUsage:
          type: string
          readOnly: true
          format: date-time
          description: The last usage of the partner
          nullable: true
          example: '2022-12-13 22:18:06'
        zip:
          type: string
          description: The postal code of the partner's address
          nullable: true
          example: '10409'
        city:
          type: string
          description: The city of the partner's address
          nullable: true
          example: Berlin
        phone:
          type: string
          description: The partner's phone number
          nullable: true
          example: '+4915324567843'
        tagIds:
          type: array
          items:
            type: integer
          description: A list of tag IDs associated with the partner
          example: []
        address:
          type: string
          description: The street and house number of the partner's address
          nullable: true
          example: null
        company:
          type: string
          description: The name of the company the partner is associated with, if any
          nullable: true
          example: null
        country:
          type: string
          description: The country of the partner
          nullable: true
          example: Germany
        business:
          type: boolean
          description: Whether the partner is a business entity
          example: false
        lastname:
          type: string
          description: The partner's last name
          nullable: true
          example: Jones
        firstname:
          type: string
          description: The partner's first name
          nullable: true
          example: Mia
        serviceId:
          type: string
          description: The service ID of the partner
          nullable: true
          example: '5353543'
        link:
          type: string
          description: The link of the partner
          nullable: true
          example: null
        salutation:
          type: string
          description: The salutation (e.g., Mr., Mrs.) of the partner
          nullable: true
          example: null
        contractIds:
          type: array
          items:
            type: integer
          description: A list of contract IDs associated with the partner
          example: []
        emailMatches:
          type: array
          items:
            type: string
          description: Possible email matches associated with the partner
          nullable: true
          example: null
        description:
          type: string
          description: The description of the partner
          nullable: true
          example: null
        additionalData:
          type: string
          description: Any additional data related to the partner
          nullable: true
          example: null
        billingAddress:
          type: string
          description: The partner's billing address
          nullable: true
          example: null
        deliveryAddress:
          type: string
          description: The partner's delivery address
          nullable: true
          example: null
    Error:
      type: object
      description: Data format of Enneo error messages
      properties:
        error:
          type: string
          example: Contract 121 could not be processed
          description: Readable error message that should be shown to the user
        details:
          type: string
          example: >-
            Uncatched null point exception in testFunction() in
            /app/src/file:212
          description: Not easily readable error message that is for the developer
        txId:
          type: string
          example: c916167c94
          description: >-
            Internal transaction id. Useful for debugging. Corresponds to the
            OpenTelemetry trace ID.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT-based authentication
      x-scopes:
        api: Full access to the API
    cookieAuth:
      type: apiKey
      in: cookie
      name: connect.sid
      description: Cookie-based authentication
      x-scopes:
        api: Full access to the API

````