POST
/
v1
/
customers
Create a customer
curl --request POST \
  --url https://api.amberflow.io/v1/customers \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "John Doe",
  "email": "john@example.com",
  "language": "en-US",
  "group_id": "grp_pt3vOg59zQGkXXrp"
}'
{
  "id": "cus_mtONwIvCywLadgOu",
  "created_at": "2024-09-23T12:00:00.000Z",
  "name": "John Doe",
  "email": "john@example.com",
  "language": "en-US",
  "group_id": "grp_0JezsPIPQ5rCQpjP"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required
Examples:

"John Doe"

email
string
required
Examples:

"john@example.com"

language
enum<string>
default:nl-NL

The language for the customer. If no language is provided, it will default to English.

Available options:
en-US,
nl-NL
Examples:

"en-US"

"nl-NL"

group_id
string | null
Examples:

"grp_pt3vOg59zQGkXXrp"

Response

Successful Response

id
string
required
Examples:

"cus_mtONwIvCywLadgOu"

created_at
string<date-time>
required
Examples:

"2024-09-23T12:00:00.000Z"

name
string
required
Examples:

"John Doe"

email
string
required
Examples:

"john@example.com"

language
enum<string>
default:nl-NL

The language for the customer. If no language is provided, it will default to English.

Available options:
en-US,
nl-NL
Examples:

"en-US"

"nl-NL"

group_id
string | null
Examples:

"grp_0JezsPIPQ5rCQpjP"