Commet
  • Pricing
Log InTry out
Batch create customers POSTCreate customer POSTGet customer GETList customers GETUpdate customer PUT
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

Batch create customers

Create up to 100 customers in a single request.

List credit packs GET

List all active credit packs.

Create customer POST

Create a new customer. Idempotent when externalId is provided.

POST
/customers/batch

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

customers*array<>
Items1 <= items <= 100

Response Body

application/json

application/json

curl -X POST "https://commet.co/api/customers/batch" \  -H "Content-Type: application/json" \  -d '{    "customers": [      {        "billingEmail": "user@example.com"      }    ]  }'

Create up to 100 customers in a single request.

{
  "success": true,
  "data": {
    "successful": [
      {
        "id": "string",
        "externalId": "string",
        "billingEmail": "string"
      }
    ],
    "failed": [
      {
        "index": 0,
        "error": "string",







{
  "success": false,
  "code": "string",
  "message": "string",
  "details": null
}
"data": {
"property1": null,
"property2": null
}
}
]
}
}