Skip to main content
Follow the REST app guide. Pass providerEndpoint("customer-io.campaigns.observations", "https://api.customer.io", "/v1/campaigns", auth, data) as receivers.provider from @bijectionhq/app-rest. For the EU region use https://api-eu.customer.io. Seal a workspace App API key as bearer auth. Pass the same label to the receiver binder and as the app’s data. Initialize with { profile: { mode: "provider", provider: "customer-io.campaigns.observations", limit: 100 } }. Each poll reads the unpaged automation list and keys rows by campaign ID. The entire answer must fit 100 rows and 36 KiB. Missing automations remain published. Customer.io list automations

Profiles, segments, and events

Use the same protection and a sealed App API bearer key for the workspace’s regional endpoint. Bind one of these modes. The events mode asks for activity type event and reuses Customer.io’s next token as start at the installed path. Exhaustion restarts the sweep. Customer.io guarantees only 30 days of activity history. Answers fit 36 KiB. Missing rows leave earlier observations in place. Customer.io App API

Writes

Follow the native write guide and bind the same protected label on the REST mount and writer receivers. Use https://track.customer.io or https://track-eu.customer.io with a sealed private Track bearer credential.
  • Bind providerWriter for customer-io.profiles.upsert and pass it as receivers.writers["customer-io.profiles.upsert"]. Use action upsert. Pass the exact URL-safe customer ID as externalId and its attributes as payload.
  • Bind providerWriter for customer-io.events.create and pass it as receivers.writers["customer-io.events.create"]. Use action create. Set scope to one URL-safe customer ID and submit an event with name and the provider deduplication ULID in id. HTTP 200 acknowledges the request.
Each command binds its key to the exact inputs and admits up to 24 KiB. The mount retains receipt evidence and dispatches once. An unresolved dispatch stays unknown.