| Name |
Type |
Description |
Notes |
| id |
String |
Unique contact identifier with contact_ prefix. Format: `contact_` + 22 alphanumeric characters Usage: - Use this ID for all subsequent API calls - Unique across the entire SendX platform - Never changes once created |
[optional] |
| first_name |
String |
First name of the contact |
[optional] |
| last_name |
String |
Last name of the contact |
[optional] |
| email |
String |
Email address of the contact (unique within team) |
[optional] |
| company |
String |
Company name of the contact |
[optional] |
| custom_fields |
Hash<String, String> |
Custom fields with field_ prefixed keys. Format: All keys have `field_` prefix in responses Example Structure: ```json { "field_MnuqBAG2NPLm7PZMWbjQxt": "Engineering", "field_QqfhckbdcvQinLPlduIbHq": "Senior", "field_MnuqBAG2NPLm7PZMWbjQxt": "$75000" } ``` |
[optional] |
| lists |
Array<String> |
Associated lists with list_ prefixed identifiers. Format: All IDs have `list_` prefix in responses |
[optional] |
| tags |
Array<String> |
Associated tags with tag_ prefixed identifiers. Format: All IDs have `tag_` prefix in responses |
[optional] |
| unsubscribed |
Boolean |
Whether the contact has unsubscribed from emails |
[optional] |
| bounced |
Boolean |
Whether emails to this contact have bounced |
[optional] |
| spam |
Boolean |
Whether the contact has marked emails as spam |
[optional] |
| blocked |
Boolean |
Whether the contact is blocked from receiving emails |
[optional] |
| dropped |
Boolean |
Whether emails to this contact have been dropped |
[optional] |
| created |
Time |
Contact creation timestamp (ISO 8601 format) |
[optional] |
| updated |
Time |
Contact last update timestamp (ISO 8601 format) |
[optional] |
| track_data |
String |
Email tracking data and UTM parameters. Contains: - UTM parameters from campaigns - Attribution data - Custom tracking parameters |
[optional] |
| contact_source |
Integer |
Source type of the contact creation. Values: - `1` - API/Manual - `2` - Import - `3` - Form - `4` - Integration |
[optional] |
| page_source |
String |
URL of the page where contact was created |
[optional] |
| last_tracked_ip |
String |
Last tracked IP address of the contact |
[optional] |
| ltv |
Integer |
Lifetime Value of the contact in cents. Example: 7500 = $75.00 |
[optional] |
require 'sendx-ruby-sdk'
instance = SendX::RestRContact.new(
id: contact_BnKjkbBBS500CoBCP0oChQ,
first_name: John,
last_name: Doe,
email: john.doe@example.com,
company: Example Corp,
custom_fields: {field_MnuqBAG2NPLm7PZMWbjQxt=Engineering, field_QqfhckbdcvQinLPlduIbHq=Senior},
lists: [list_OcuxJHdiAvujmwQVJfd3ss, list_xyz789ghi012],
tags: [tag_UhsDkjL772Qbj5lWtT62VK, tag_UhsDkjL772Qbj5lWtT62VK],
unsubscribed: false,
bounced: false,
spam: false,
blocked: false,
dropped: false,
created: 2024-01-10T14:20:00Z,
updated: 2024-01-15T09:15:00Z,
track_data: utm_source=website&utm_campaign=signup&utm_medium=banner,
contact_source: 1,
page_source: https://example.com/signup?ref=google-ads,
last_tracked_ip: 203.0.113.42,
ltv: 7500
)