Events
- Active Campaign
- Acuity
- Axle Health
- Butterfly Labs
- Calendly
- Customer.io
- Elation
- Feathery
- Formsort
- Healthie
- Hubspot
- IntakeQ
- Junction
- Morf
- Segment
Actions
- Active Campaign
- Customer.io
- Facebook
- Freshdesk
- Google
- Healthie
- Hubspot
- IntakeQ
- Intercom
- Mixpanel
- Morf
- Nextdoor
- Open Phone
- Segment
- Slack
- Spruce
- Stedi
- Stripe
- Tiktok
- Twilio
Create Or Update Contact
Documentation for the Create Or Update Contact action for Open Phone
{
"$result_object_key": {
"created_by_user_id": "US123abc",
"custom_fields": [
{
"key": "inbound-lead",
"value": "value1"
}
],
"default_fields": {
"company": "OpenPhone",
"emails": [
{
"id": "email123",
"name": "company email",
"value": "abc@example.com"
}
],
"first_name": "John",
"last_name": "Doe",
"phone_numbers": [
{
"id": "phone123",
"name": "company phone",
"value": "+12345678901"
}
],
"role": "Sales"
},
"external_id": "664d0db69fcac7cf2e6ec",
"id": "664d0db69fcac7cf2e6ec",
"source": "public-api",
"source_url": "https://openphone.co/contacts/664d0db69fcac7cf2e6ec"
}
}
{
"$result_object_key": {
"created_by_user_id": "ID of the user who created the contact",
"custom_fields": {
"key": "Key for the custom field",
"value": "Values for the custom field"
},
"default_fields": {
"company": "Company name of the contact",
"emails": {
"id": "Unique identifier for the email field",
"name": "Name of the email field",
"value": "Email address"
},
"first_name": "First name of the contact",
"last_name": "Last name of the contact",
"phone_numbers": {
"id": "Unique identifier for the phone number field",
"name": "Name of the phone number field",
"value": "Phone number"
},
"role": "Role of the contact"
},
"external_id": "Unique identifier from an external system",
"id": "Unique identifier for the contact",
"source": "Source of the contact",
"source_url": "Link to the contact in the source system"
}
}
Parameters
ID
This field maps to the destination API id
field.
PII
This field maps to the destination API first_name
field.
PII
This field maps to the destination API last_name
field.
PII
This field maps to the destination API company
field.
This field maps to the destination API role
field.
PII
PII
{
"$result_object_key": {
"created_by_user_id": "US123abc",
"custom_fields": [
{
"key": "inbound-lead",
"value": "value1"
}
],
"default_fields": {
"company": "OpenPhone",
"emails": [
{
"id": "email123",
"name": "company email",
"value": "abc@example.com"
}
],
"first_name": "John",
"last_name": "Doe",
"phone_numbers": [
{
"id": "phone123",
"name": "company phone",
"value": "+12345678901"
}
],
"role": "Sales"
},
"external_id": "664d0db69fcac7cf2e6ec",
"id": "664d0db69fcac7cf2e6ec",
"source": "public-api",
"source_url": "https://openphone.co/contacts/664d0db69fcac7cf2e6ec"
}
}
{
"$result_object_key": {
"created_by_user_id": "ID of the user who created the contact",
"custom_fields": {
"key": "Key for the custom field",
"value": "Values for the custom field"
},
"default_fields": {
"company": "Company name of the contact",
"emails": {
"id": "Unique identifier for the email field",
"name": "Name of the email field",
"value": "Email address"
},
"first_name": "First name of the contact",
"last_name": "Last name of the contact",
"phone_numbers": {
"id": "Unique identifier for the phone number field",
"name": "Name of the phone number field",
"value": "Phone number"
},
"role": "Role of the contact"
},
"external_id": "Unique identifier from an external system",
"id": "Unique identifier for the contact",
"source": "Source of the contact",
"source_url": "Link to the contact in the source system"
}
}
Result Object Field Details
You can use the result of the action’s data as inputs to downstream workflow actions.
Each fetch action requires a result object key to be specified which will nest the action’s result data inside the downstream data context in the Workflow.
Here we demonstrate how to refer to this data using the prefix $result_object_key
.
Unique identifier for the contact
$result_object_key.id
"664d0db69fcac7cf2e6ec"
Default fields for the contact
$result_object_key.default_fields
{
"company": "OpenPhone",
"emails": [
{
"id": "email123",
"name": "company email",
"value": "abc@example.com"
}
],
"first_name": "John",
"last_name": "Doe",
"phone_numbers": [
{
"id": "phone123",
"name": "company phone",
"value": "+12345678901"
}
],
"role": "Sales"
}
First name of the contact
$result_object_key.default_fields.first_name
"John"
Last name of the contact
$result_object_key.default_fields.last_name
"Doe"
Company name of the contact
$result_object_key.default_fields.company
"OpenPhone"
List of email addresses for the contact
$result_object_key.default_fields.emails
[
{
"id": "email123",
"name": "company email",
"value": "abc@example.com"
}
]
Mapped array of: Unique identifier for the email field
$result_object_key.default_fields.emails.map(x, x.id)
[
"email123"
]
Mapped array of: Name of the email field
$result_object_key.default_fields.emails.map(x, x.name)
[
"company email"
]
Mapped array of: Email address
$result_object_key.default_fields.emails.map(x, x.value)
[
"abc@example.com"
]
List of phone numbers for the contact
$result_object_key.default_fields.phone_numbers
[
{
"id": "phone123",
"name": "company phone",
"value": "+12345678901"
}
]
Mapped array of: Unique identifier for the phone number field
$result_object_key.default_fields.phone_numbers.map(x, x.id)
[
"phone123"
]
Mapped array of: Name of the phone number field
$result_object_key.default_fields.phone_numbers.map(x, x.name)
[
"company phone"
]
Mapped array of: Phone number
$result_object_key.default_fields.phone_numbers.map(x, x.value)
[
"+12345678901"
]
Role of the contact
$result_object_key.default_fields.role
"Sales"
List of custom fields for the contact
$result_object_key.custom_fields
[
{
"key": "inbound-lead",
"value": "value1"
}
]
Mapped array of: Key for the custom field
$result_object_key.custom_fields.map(x, x.key)
[
"inbound-lead"
]
Mapped array of: Values for the custom field
$result_object_key.custom_fields.map(x, x.value)
[
"value1"
]
ID of the user who created the contact
$result_object_key.created_by_user_id
"US123abc"
Source of the contact
$result_object_key.source
"public-api"
Link to the contact in the source system
$result_object_key.source_url
"https://openphone.co/contacts/664d0db69fcac7cf2e6ec"
Unique identifier from an external system
$result_object_key.external_id
"664d0db69fcac7cf2e6ec"
{
"$result_object_key": {
"created_by_user_id": "US123abc",
"custom_fields": [
{
"key": "inbound-lead",
"value": "value1"
}
],
"default_fields": {
"company": "OpenPhone",
"emails": [
{
"id": "email123",
"name": "company email",
"value": "abc@example.com"
}
],
"first_name": "John",
"last_name": "Doe",
"phone_numbers": [
{
"id": "phone123",
"name": "company phone",
"value": "+12345678901"
}
],
"role": "Sales"
},
"external_id": "664d0db69fcac7cf2e6ec",
"id": "664d0db69fcac7cf2e6ec",
"source": "public-api",
"source_url": "https://openphone.co/contacts/664d0db69fcac7cf2e6ec"
}
}
{
"$result_object_key": {
"created_by_user_id": "ID of the user who created the contact",
"custom_fields": {
"key": "Key for the custom field",
"value": "Values for the custom field"
},
"default_fields": {
"company": "Company name of the contact",
"emails": {
"id": "Unique identifier for the email field",
"name": "Name of the email field",
"value": "Email address"
},
"first_name": "First name of the contact",
"last_name": "Last name of the contact",
"phone_numbers": {
"id": "Unique identifier for the phone number field",
"name": "Name of the phone number field",
"value": "Phone number"
},
"role": "Role of the contact"
},
"external_id": "Unique identifier from an external system",
"id": "Unique identifier for the contact",
"source": "Source of the contact",
"source_url": "Link to the contact in the source system"
}
}