Add a customer
/customersAdds a customer. Lynked looks for an existing account with this phone, then with this email:
- None → a new account is created:
201 Created. - Found → that account is attached:
200 OK. Their own details (name, email, phone, birthday) are not changed by the request. - The phone and the email belong to two different accounts →
409customer_identity_conflict, nothing is attached.
Sends customer.joined when the person was not a customer before.
Headers
Idempotency-Keystring · uuidA UUID (any version; UUIDv7 recommended) that makes a retry of this request safe. See the Idempotency guide.
Request body
A new customer. If a Lynked account with this phone (else this email) already exists, that account is attached instead, and its own details stay as they are.
6 fields
emailstring · emailRequiredmax 180 characters
phonestringRequiredDigits with the country code, optionally starting with
+.max 50 characters · pattern ^\+?\d+$
first_namestringRequiredmax 255 characters
last_namestringRequiredmax 255 characters
date_of_birthstring · dateRequiredThe customer's gender as they gave it.
One of
"female""male""other""not_specified"
Responses
Success
- 200 OKCustomer
An existing Lynked account was attached.
10 fields
idintegerThe customer id.
emailstring | null · emailnullwhen the customer has no real email (added with a phone only).phonestring | nullDigits only, with the country code, no
+.first_namestringlast_namestringdate_of_birthstring | null · dategenderCustomerGenderThe customer's gender as they gave it.
One of
"female""male""other""not_specified"is_app_userbooleantruewhen the customer has signed in to the Lynked app;falsefor customers added in the seller app, by an import or through this API who have not signed in yet.groupsarray of CustomerGroupRefCustomer groups the customer belongs to.
2 fields
idintegerThe group id.
namestringThe group name, as in the dashboard.
created_atstring · date-timeWhen the customer's Lynked account was created.
- 201 CreatedCustomer
A new customer was created.
10 fields
idintegerThe customer id.
emailstring | null · emailnullwhen the customer has no real email (added with a phone only).phonestring | nullDigits only, with the country code, no
+.first_namestringlast_namestringdate_of_birthstring | null · dategenderCustomerGenderThe customer's gender as they gave it.
One of
"female""male""other""not_specified"is_app_userbooleantruewhen the customer has signed in to the Lynked app;falsefor customers added in the seller app, by an import or through this API who have not signed in yet.groupsarray of CustomerGroupRefCustomer groups the customer belongs to.
2 fields
idintegerThe group id.
namestringThe group name, as in the dashboard.
created_atstring · date-timeWhen the customer's Lynked account was created.
Errors
- 401 UnauthorizedError
The API key is missing, invalid or revoked.
3 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 403 ForbiddenError
The Public API is disabled for this business.
3 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 409 ConflictError
The phone and the email belong to different Lynked accounts (
customer_identity_conflict).3 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 422 Unprocessable EntityValidationError
The request is invalid;
errorslists the problems per field.4 fields
messagestringAll problems in one line.
errorsobjectRequest field path → its problems.
error_codestringundefinedfor validation errors for now; see Errors for the list of codes.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 429 Too Many RequestsRateLimitError
More than 120 requests per minute for this business.
HeadersRetry-AfterintegerSeconds to wait before the next request.
4 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
retry_afterintegerSeconds to wait before the next request; the same value as the
Retry-Afterheader.
- 500 Internal Server ErrorError
Something failed on Lynked's side. Retry later; if it persists, contact Lynked support with the
error_uid.3 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
curl -X POST 'https://api.lynked.ie/api/public/v1/customers' \
-H 'Authorization: Bearer lk_live_...' \
-H 'Idempotency-Key: <unique-key>' \
-H 'Content-Type: application/json' \
-d '{
"email": "liam@example.com",
"phone": "+353870000101",
"first_name": "Liam",
"last_name": "Walsh",
"date_of_birth": "1985-02-03",
"gender": "female"
}'
{
"email": "liam@example.com",
"phone": "+353870000101",
"first_name": "Liam",
"last_name": "Walsh",
"date_of_birth": "1985-02-03",
"gender": "female"
}
HTTP/3 200 OK
Content-Type: application/json
{
"id": 1042,
"email": "anna@example.com",
"phone": "353870000001",
"first_name": "Anna",
"last_name": "Byrne",
"date_of_birth": "1990-05-17",
"gender": "female",
"is_app_user": true,
"groups": [
{
"id": 7,
"name": "VIP"
}
],
"created_at": "2026-01-01T12:00:00Z"
}