POST
/
customers

Authorizations

Authorization
string
headerrequired

Default authentication mechanism

Body

application/json
email
string | null

Email of the customer in the client's app.

name
string | null

Name of the customer in the client's app. If not provided, a random name will be generated.

avatar
string | null

Avatar URL of the customer in the client's app.

externalId
string
required

Unique identifier for the customer in the client's app.

Response

201 - application/json
id
string
required

The unique identifier of the customer in Dub.

externalId
string
required

Unique identifier for the customer in the client's app.

name
string
required

Name of the customer.

email
string | null

Email of the customer.

avatar
string | null

Avatar URL of the customer.

createdAt
string
required

The date the customer was created.