CRM
Contact
Field | Type | Description |
---|---|---|
id | ID! | The ID of the contact. |
String! | The email address of the contact. | |
phone | String | The phone number of the contact. |
firstName | String | The first name of the contact. |
lastName | String | The last name of the contact. |
address | ContactAddress | An address object for the contact. |
metadata | ContactMetadata | A key-value pair of metadata for the contact. |
createdAt | Date | The date on which the contact was created. |
updatedAt | Date | The last date on which the contact was updated. |
lastSeenAt | Date | The time when the contact was last seen. |
userId | ID (READONLY) | ID of the eventOne user associated with this contact. |
ContactMetadata
Field | Type | Description |
---|---|---|
key | String | The key of the property. |
value | String | The value of the property. |
type | MetadataDataType (READONLY) | The data type of the property. |
ContactAddress
Field | Type | Description |
---|---|---|
city | String | City, district, suburb, town, or village. |
country | String | Two-letter country code (ISO 3166-1 alpha-2). |
line1 | String | Address line 1 (e.g., street, PO Box, or company name). |
line2 | String | Address line 2 (e.g., apartment, suite, unit, or building). |
postalCode | String | ZIP or postal code. |
state | String | State, county, province, or region. |
MetadataDataType
Name | Description |
---|---|
number | |
date | |
boolean | |
null | |
array | |
string |
Example
{
"id": "5ee147ddc0864c0ef9eacf8d",
"email": "[email protected]",
"phone": "+1123456789",
"firstName": "Noah",
"lastName": "Prail",
"address": {
"city": "Example",
"country": "US",
"line1": "1234 Example St.",
"line2": null,
"postalCode": "12345",
"state": "IN"
},
"metadata": [
{
"key": "My Custom Field",
"value": "Any value!",
"type": "string"
},
{
"key": "is_member",
"value": "true",
"type": "boolean"
}
],
"createdAt": "2020-06-10T20:53:36.148Z",
"updatedAt": "2020-06-10T20:53:43.505Z",
"lastSeenAt": "2020-06-10T20:53:59.201Z",
"id": "5f11ce55bc25550548e44863"
}