# Create Customer

## POST /v0/customers

> Create a new customer

```json
{"openapi":"3.0.0","info":{"title":"Customers API","version":"0"},"servers":[{"url":"https://api.alignlabs.dev","description":"Production server"},{"url":"https://api-sandbox.alignlabs.dev","description":"Sandbox server"}],"paths":{"/v0/customers":{"post":{"summary":"Create a new customer","parameters":[{"name":"Api-Key","in":"header","description":"Your secret API key, available in the developer dashboard. Include this header on every request to authenticate your application.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerRequestBodyModel"}}}},"responses":{"201":{"description":"Customer created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerResponseSuccessModel"}}}}}}}},"components":{"schemas":{"CreateCustomerRequestBodyModel":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"The unique email address of the customer"},"first_name":{"type":"string","description":"The first name of the customer (required for individual customers)"},"last_name":{"type":"string","description":"The last name of the customer (required for individual customers)"},"company_name":{"type":"string","description":"The name of the company (required for corporate customers)"},"type":{"type":"string","enum":["individual","corporate"],"description":"The type of customer"}},"required":["email","type"]},"CreateCustomerResponseSuccessModel":{"type":"object","required":["customer_id","email","type"],"properties":{"customer_id":{"type":"string","format":"uuid","description":"The unique identifier for the customer"},"email":{"type":"string","format":"email","description":"The email address associated with the customer"},"company_name":{"type":"string","description":"The name of the company of the business customer"},"type":{"type":"string","enum":["individual","corporate"],"description":"The type of customer"},"first_name":{"type":"string","description":"The first name of the individual customer"},"last_name":{"type":"string","description":"The last name of the individual customer"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.alignlabs.dev/align-api/customers/create-customer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
