Skip to main content
MUTATION
customersAdd(state: String, avatar: String, firstName: String, lastName: String, primaryEmail: String, emails: [String], primaryPhone: String, phones: [String], primaryAddress: JSON, addresses: [JSON], ownerId: String, tagIds: [String], leadStatus: String, description: String, isSubscribed: String, links: JSON, customFieldsData: JSON, code: String, sex: Int, birthDate: Date, emailValidationStatus: String, phoneValidationStatus: String): Customer

Arguments

state
String

Optional lifecycle state (e.g. lead vs. customer pipeline) at creation.

avatar
String

Profile image URL.

firstName
String

Given name.

lastName
String

Family name.

primaryEmail
String

Main email address, used for identity matching.

emails
[String]

Additional known email addresses.

primaryPhone
String

Main phone number, used for identity matching.

phones
[String]

Additional known phone numbers.

primaryAddress
JSON

Primary address as free-form JSON.

addresses
[JSON]

Additional addresses as free-form JSON.

ownerId
String

Id of the User to assign as owner.

tagIds
[String]

Ids of Tag records to attach at creation.

leadStatus
String

Initial lead pipeline stage code.

description
String

Free-form notes.

isSubscribed
String

Marketing consent flag, e.g. "Yes" / "No".

Social/external profile links as free-form JSON.

customFieldsData
JSON

Custom field values as an array of { field, value } entries.

code
String

Optional short human-friendly identifier.

sex
Int

Sex/gender code.

birthDate
Date

Date of birth.

emailValidationStatus
String

Initial email verification status, if already known.

phoneValidationStatus
String

Initial phone verification status, if already known.

Returns

state
String

Lifecycle bucket (e.g. lead vs. customer pipelines). Set at creation or via customersChangeState.

createdAt
Date

When this record was created.

modifiedAt
Date

When this record was last updated.

avatar
String

Profile image URL.

integrationId
String

Id of the integration (channel) this customer first came in through, if any.

firstName
String

Given name.

lastName
String

Family name.

birthDate
Date

Date of birth, if known.

sex
Int

Numeric sex/gender code used by the CRM UI (implementation-defined).

email
String

Legacy single email field. Prefer primaryEmail / emails — kept for backward compatibility only.

primaryEmail
String

Main email address used for identity matching and messaging.

emails
[String]

All known email addresses for this customer.

primaryPhone
String

Main phone number (normalized), used for identity matching.

phones
[String]

All known phone numbers for this customer.

primaryAddress
JSON

Primary mailing/shipping address as free-form JSON.

addresses
[JSON]

All known addresses as free-form JSON.

phone
String

Legacy single phone field. Prefer primaryPhone / phones — kept for backward compatibility only.

tagIds
[String]

Ids of Tag records attached to this customer. See customers's tag filter.

customFieldsData
JSON

Custom field values as an array of { field, value } entries.

customFieldsDataByFieldCode
JSON

Custom field values keyed by field code instead of field id.

ownerId
String

Id of the User assigned as owner of this customer.

leadStatus
String

Current pipeline stage code for lead tracking.

leadStageHistory

Ordered history of lead pipeline stage changes.

description
String

Free-form notes about this customer.

isSubscribed
String

Subscription/marketing consent flag (string enum, e.g. "Yes" / "No").

code
String

Short human-friendly identifier. Accepted anywhere _id is accepted on lookups such as customerDetail.

emailValidationStatus
String

Result of the last email verification pass, if any.

phoneValidationStatus
String

Result of the last phone verification pass, if any.

Social/external profile links as free-form JSON.

companies

Company records this customer is related to via conformity.

getTags
[Tag]

Resolved Tag objects for tagIds.

integration
owner

Resolved User for ownerId.

score
Float

Engagement/lead score, when scoring is enabled for this workspace.

Active segment memberships for this customer (segments-v2 only).

_id
String!
conversations
Mutation
Response
آخر تعديل في ١١ أغسطس ٢٠٢٦