Add Device

customer_io.add_device
ActionCRM & salesconnection required

Calls the Customer.io API with the connection's credentials.

Register or refresh a push device token on a person's profile so push campaigns can reach that device.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Customer.io
Secret shape
{"site_id": "…", "api_key": "…", "app_api_key": "…"} — the Site ID and Track API key for the Track nodes, the App API key for the rest
Config it needs
region, workspace_id
Resolved by
config.connection_id, else node.connection_id

Configuration

4 fields, 3 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
identifier
How this person is addressed in the Track API: their id, their email address, or their Customer.io id prefixed with 'cio_'. A phone number is read as an id here, so it will not match.
stringYes——ada@example.com
token
The device token issued by APNs or FCM.
stringYes—credential materialcredential
platform
The device platform the token belongs to.
stringYes—one of "ios", "android"—
last_used
When the device was last seen, as a Unix timestamp in seconds. Customer.io uses the time of receipt when blank.
numberNo—≥ 0—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "identifier": "ada@example.com"
}

Output

One shape.

result

FieldTypeExample
accepted
True when Customer.io queued the write. Track writes are applied asynchronously, so this reports acceptance, not that the change is live.
boolean—
identifier
The identifier the person was addressed by.
string—
device_id
The device token that was registered.
string—
platform
The platform the token was registered for.
string—
{
  "accepted": false,
  "device_id": "",
  "identifier": "",
  "platform": ""
}

See Add Device run in a workflow.

In a technical demo we add the Customer.io connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.