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

# Create a customer



## OpenAPI

````yaml post /v1/customers
openapi: 3.0.0
info:
  title: Revstack API
  version: 1.0.0
  description: >-
    Open Source Billing OS for Developers. The scalable, developer-first billing
    engine with subscriptions, invoicing, usage metering, and entitlements.
servers:
  - url: http://localhost:6900
    description: Revstack API (Local Development)
security: []
paths:
  /v1/customers:
    post:
      tags:
        - Customers
      summary: Create a customer
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                environment_id:
                  type: string
                  minLength: 1
                user_id:
                  type: string
                  minLength: 1
                provider_id:
                  type: string
                  minLength: 1
                external_id:
                  type: string
                  minLength: 1
                email:
                  type: string
                  format: email
                name:
                  type: string
                  minLength: 1
                phone:
                  type: string
                metadata:
                  type: object
                  additionalProperties:
                    nullable: true
              required:
                - environment_id
                - user_id
                - provider_id
                - external_id
                - email
                - name
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                required:
                  - id

````