create_push_import
Creates a draft push import from OneSignal, Braze, Customer.io, or CSV, returning warnings so you can validate the source before any devices are read.
Instructions
Create a draft push import and return its warnings; nothing is read until start_push_import. Requirements by source: onesignal needs apiKey (App API key) and onesignalAppId; braze needs apiKey (REST key with users.export.segment), brazeRestEndpoint and brazeSegmentId; customer_io needs apiKey (App API key), customerIoSegmentId and optionally customerIoRegion; csv takes the file as csv (token and platform columns, plus external_id or email; at most 5 MB, send more with add_push_import_rows and set csvParts to the total part count so a partial upload can never start). Opted-in devices are linked to contacts by external ID or email (unmatched devices get a new contact, quietly: no lists, no sequences; push-only with no email or phone when the device has only an external ID); opted-out devices are kept as unsubscribed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>"
},
"name": "create_push_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | csv source only: the CSV text (or its first part). | |
| apiKey | No | Source API key (not for csv). Stored encrypted and never returned; deleted once devices are read or the import is canceled (a failed import keeps it for resume). | |
| appIds | No | Only import devices of these source apps (Braze app name, Customer.io app_identifier, CSV app_id). | |
| source | Yes | Where the devices come from. | |
| csvParts | No | csv source only: how many parts you will send, including this first one. When set, start_push_import is refused until every part has been added, so an interrupted upload is never imported partially. Recommended whenever you send more than one part. | |
| companyId | No | Company ID. If not provided, uses the currently selected company. | |
| platforms | No | Platforms to import (default both). Web push cannot be imported: browsers tie those subscriptions to the previous provider's VAPID keys. | |
| brazeSegmentId | No | API identifier of a Braze segment with the users to import. Required for braze. | |
| onesignalAppId | No | OneSignal App ID (UUID). Required for onesignal. | |
| customerIoRegion | No | Customer.io account region (default us). | |
| importAttributes | No | Copy source tags/attributes onto contacts, only for keys a contact lacks (default true). | |
| brazeRestEndpoint | No | Braze REST endpoint such as rest.iad-01.braze.com. Required for braze. | |
| customerIoSegmentId | No | ID of a Customer.io segment with the people to import. Required for customer_io. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Additional context about the result. | |
| items | No | Fallback array wrapper used only when a tool returns a bare array. | |
| value | No | Fallback object wrapper used only when a tool returns a non-object value. | |
| import | No | The push import (draft, with warnings) record returned by Sequenzy. | |
| message | No | What to do next. | |
| success | No | Whether the Sequenzy operation succeeded. | |
| warnings | No | Non-fatal cautions about content, permissions, or follow-up actions. |