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

# Create Customer

> Required permissions: `customers.create.*`




## OpenAPI

````yaml openapi.yaml post /customers
openapi: 3.0.3
info:
  title: MeetBit Public API
  version: '2.0'
servers:
  - url: https://{primary_domain}/api/public/v2.0
    variables:
      primary_domain:
        default: example.com
        description: Your tenant's primary
security:
  - AccessKeyId: []
    AccessKeySecret: []
paths:
  /customers:
    post:
      tags:
        - Customers
      summary: Create Customer
      description: |
        Required permissions: `customers.create.*`
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Customer'
      responses:
        '200':
          $ref: '#/components/responses/CustomerResponse'
        '400':
          $ref: '#/components/responses/ValidationErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '429':
          $ref: '#/components/responses/RateLimitedErrorResponse'
        '500':
          $ref: '#/components/responses/UnexpectedErrorResponse'
components:
  schemas:
    Customer:
      type: object
      required:
        - id
        - first_name
        - middle_name
        - last_name
        - email
        - contact_number
        - address
        - created_at
        - updated_at
      properties:
        id:
          type: integer
          nullable: false
          format: int64
          readOnly: true
        first_name:
          type: string
          maxLength: 255
          nullable: true
          readOnly: false
        middle_name:
          type: string
          maxLength: 255
          nullable: true
          readOnly: false
        last_name:
          type: string
          maxLength: 255
          nullable: true
          readOnly: false
        email:
          type: string
          format: email
          maxLength: 255
          nullable: true
          readOnly: false
        contact_number:
          type: string
          description: In E.164 format.
          nullable: true
          readOnly: false
        address:
          $ref: '#/components/schemas/Address'
          nullable: true
          readOnly: false
        name:
          type: string
          nullable: false
          readOnly: true
        created_at:
          type: string
          format: date-time
          nullable: false
          readOnly: true
        updated_at:
          type: string
          format: date-time
          nullable: false
          readOnly: true
        deleted_at:
          type: string
          format: date-time
          nullable: true
          readOnly: true
    Address:
      type: object
      properties:
        line_1:
          type: string
          maxLength: 255
          nullable: true
        line_2:
          type: string
          maxLength: 255
          nullable: true
        city:
          type: string
          maxLength: 255
          nullable: true
        region:
          type: string
          maxLength: 255
          nullable: true
        region_code:
          type: string
          maxLength: 255
          nullable: true
        country:
          type: string
          maxLength: 255
          nullable: true
        country_code:
          type: string
          maxLength: 255
          nullable: true
        postal_code:
          type: string
          maxLength: 255
          nullable: true
    ValidationError:
      type: object
      additionalProperties:
        type: array
        items:
          type: string
      example:
        attribute:
          - The {attribute} field is required.
    UnauthenticatedError:
      type: string
      example: Invalid or missing access key.
    UnauthorizedError:
      type: string
      example: Access denied.
    RateLimitedError:
      type: string
      example: Too many requests.
    ServerError:
      type: string
      example: An unexpected error occurred.
  responses:
    CustomerResponse:
      description: ''
      content:
        application/json:
          schema:
            required:
              - message
              - data
            properties:
              message:
                type: string
              data:
                $ref: '#/components/schemas/Customer'
                description: A Customer resource object.
    ValidationErrorResponse:
      description: Invalid request parameters or body.
      content:
        application/json:
          schema:
            required:
              - message
              - errors
            properties:
              message:
                type: string
              errors:
                $ref: '#/components/schemas/ValidationError'
    UnauthorizedErrorResponse:
      description: Client does not have the appropriate permissions.
      content:
        text/plain:
          schema:
            anyOf:
              - $ref: '#/components/schemas/UnauthenticatedError'
              - $ref: '#/components/schemas/UnauthorizedError'
    RateLimitedErrorResponse:
      description: Too many requests have been made.
      headers:
        Retry-After:
          schema:
            type: integer
            description: Number of seconds to wait before making another request.
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/RateLimitedError'
    UnexpectedErrorResponse:
      description: An unexpected error occurred.
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/ServerError'
  securitySchemes:
    AccessKeyId:
      type: apiKey
      name: X-Access-Key-Id
      in: header
    AccessKeySecret:
      type: apiKey
      name: X-Access-Key-Secret
      in: header

````