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

# Create creditor profile contact

> Create a contact for an editable creditor profile. A profile can have at most three contacts.



## OpenAPI

````yaml /api/ecomailhub.openapi.yaml post /manage-creditor-profiles/{creditorProfile}/contacts
openapi: 3.1.0
info:
  title: YouNegotiate EcoMail Hub API
  version: '2.0'
  description: Stateless API endpoints for EcoMail Hub / EcoPortal users.
servers:
  - url: https://api.ecomailhub.younegotiate.com
    description: Production
security: []
tags:
  - name: System
    description: Public EcoMail Hub domain system and health endpoints.
  - name: Authentication
    description: EcoMail Hub login, logout, password reset, and password change endpoints.
  - name: Profile
    description: Authenticated EcoMail Hub user profile endpoints.
  - name: Dashboard
    description: EcoMail Hub dashboard summary and notice-response bucket endpoints.
  - name: Manage Consumers
    description: >-
      EcoMail Hub consumer identity grouping and notice-response count
      endpoints.
  - name: Manage Creditors
    description: >-
      EcoMail Hub creditor profile and company-only member profile table
      endpoints.
  - name: Import Creditor Profiles
    description: EcoMail Hub creditor profile CSV import endpoints.
  - name: Manage Notice Response
    description: >-
      EcoMail Hub top-level notice-response review, reassignment, and close
      endpoints.
  - name: Manage Users
    description: EcoMail Hub user account management endpoints.
  - name: Reports
    description: EcoMail Hub one-time and scheduled CSV report endpoints.
  - name: Communications
    description: EcoMail Hub communication template editor endpoints.
paths:
  /manage-creditor-profiles/{creditorProfile}/contacts:
    post:
      tags:
        - Manage Creditors
      summary: Create creditor profile contact
      description: >-
        Create a contact for an editable creditor profile. A profile can have at
        most three contacts.
      operationId: ecomailhubCreateManageCreditorProfileContact
      parameters:
        - name: creditorProfile
          in: path
          required: true
          schema:
            type: integer
          description: Creditor profile ID from the manage creditors list.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManageCreditorProfileContactRequest'
            example:
              first_name: Nancy
              last_name: Williams
              email: nancy@example.test
              phone: '8186011111'
      responses:
        '201':
          description: Creditor profile contact created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManageCreditorProfileContactResponse'
              example:
                message: Contact has been saved successfully to the creditor profile.
                data:
                  id: 3
                  first_name: Nancy
                  last_name: Williams
                  email: nancy@example.test
                  phone: '8186011111'
                  phone_label: (818) 601-1111
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Creditor profile is read-only or already has three contacts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
              examples:
                activeProfile:
                  value:
                    message: Sorry, you cannot edit the profile of an active company.
                maxContacts:
                  value:
                    message: You can not create more then 3 contact.
        '422':
          $ref: '#/components/responses/ValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    ManageCreditorProfileContactRequest:
      type: object
      required:
        - first_name
        - last_name
        - email
        - phone
      properties:
        first_name:
          type: string
          minLength: 2
          maxLength: 20
          example: Nancy
        last_name:
          type: string
          minLength: 2
          maxLength: 30
          example: Williams
        email:
          type: string
          format: email
          maxLength: 255
          example: nancy@example.test
        phone:
          type: string
          description: US phone number.
          example: '8186011111'
    ManageCreditorProfileContactResponse:
      type: object
      required:
        - message
        - data
      properties:
        message:
          type: string
          example: Contact has been saved successfully to the creditor profile.
        data:
          $ref: '#/components/schemas/EcomailhubCreditorProfileContact'
    MessageResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    EcomailhubCreditorProfileContact:
      type: object
      required:
        - id
        - first_name
        - last_name
        - email
        - phone
        - phone_label
      properties:
        id:
          type: integer
          example: 3
        first_name:
          type: string
          example: Nancy
        last_name:
          type: string
          example: Williams
        email:
          type: string
          format: email
          example: nancy@example.test
        phone:
          type: string
          example: '8186011111'
        phone_label:
          type:
            - string
            - 'null'
          example: (818) 601-1111
    ValidationErrorResponse:
      type: object
      required:
        - message
        - errors
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
  responses:
    Unauthenticated:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MessageResponse'
          example:
            message: Unauthenticated.
    NotFound:
      description: Requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MessageResponse'
          example:
            message: Not Found.
    ValidationError:
      description: Request validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
          example:
            message: The given data was invalid.
            errors:
              email:
                - The email field is required.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum

````