The Lynked Public API is in development. Endpoints will appear here as they go live.

Add a customer

POST
/customers

Adds 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 → 409 customer_identity_conflict, nothing is attached.

Sends customer.joined when the person was not a customer before.

Headers

  • Idempotency-Keystring · uuid

    A UUID (any version; UUIDv7 recommended) that makes a retry of this request safe. See the Idempotency guide.

Request body

application/json RequiredCreateCustomer

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 · emailRequired

    max 180 characters

  • phonestringRequired

    Digits with the country code, optionally starting with +.

    max 50 characters · pattern ^\+?\d+$

  • first_namestringRequired

    max 255 characters

  • last_namestringRequired

    max 255 characters

  • date_of_birthstring · dateRequired
  • genderCustomerGenderRequired

    The 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
    • idinteger

      The customer id.

    • emailstring | null · email

      null when the customer has no real email (added with a phone only).

    • phonestring | null

      Digits only, with the country code, no +.

    • first_namestring
    • last_namestring
    • date_of_birthstring | null · date
    • The customer's gender as they gave it.

      One of "female""male""other""not_specified"

    • is_app_userboolean

      true when the customer has signed in to the Lynked app; false for customers added in the seller app, by an import or through this API who have not signed in yet.

    • groupsarray of CustomerGroupRef

      Customer groups the customer belongs to.

      2 fields
      • idinteger

        The group id.

      • namestring

        The group name, as in the dashboard.

    • created_atstring · date-time

      When the customer's Lynked account was created.

  • 201 CreatedCustomer

    A new customer was created.

    10 fields
    • idinteger

      The customer id.

    • emailstring | null · email

      null when the customer has no real email (added with a phone only).

    • phonestring | null

      Digits only, with the country code, no +.

    • first_namestring
    • last_namestring
    • date_of_birthstring | null · date
    • The customer's gender as they gave it.

      One of "female""male""other""not_specified"

    • is_app_userboolean

      true when the customer has signed in to the Lynked app; false for customers added in the seller app, by an import or through this API who have not signed in yet.

    • groupsarray of CustomerGroupRef

      Customer groups the customer belongs to.

      2 fields
      • idinteger

        The group id.

      • namestring

        The group name, as in the dashboard.

    • created_atstring · date-time

      When the customer's Lynked account was created.

Errors
  • 401 UnauthorizedError

    The API key is missing, invalid or revoked.

    3 fields
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier 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
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier 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
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

  • 422 Unprocessable EntityValidationError

    The request is invalid; errors lists the problems per field.

    4 fields
    • messagestring

      All problems in one line.

    • errorsobject

      Request field path → its problems.

    • error_codestring

      undefined for validation errors for now; see Errors for the list of codes.

    • error_uidstring

      Identifier 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.

    Headers
    • Retry-Afterinteger

      Seconds to wait before the next request.

    4 fields
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

    • retry_afterinteger

      Seconds to wait before the next request; the same value as the Retry-After header.

  • 500 Internal Server ErrorError

    Something failed on Lynked's side. Retry later; if it persists, contact Lynked support with the error_uid.

    3 fields
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

Request
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"
}'
Request body · JSON
{
  "email": "liam@example.com",
  "phone": "+353870000101",
  "first_name": "Liam",
  "last_name": "Walsh",
  "date_of_birth": "1985-02-03",
  "gender": "female"
}
Response 200 OK
HTTP/3 200 OK
Content-Type: application/json
Body
{
  "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"
}