Skip to main content
POST
Create Customer
Create a new customer profile.

Request authentication

This endpoint requires a Secret Key (sk_...) passed in either the x-api-key header or as a Bearer token in the Authorization header.

Request parameters

string
required
The unique email address of the customer.
string
required
The first name of the customer.
string
required
The last name of the customer.
string
The optional phone number of the customer.

Authorizations

x-api-key
string
header
required

Body

application/json
email
string<email>
required
first_name
string
required
last_name
string
required
phone
string

Response

The customer. An existing customer with the same email is returned and updated rather than duplicated.

A single customer.

message
string
data
object