> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Customer.io automation observations

> Read automation metadata from one Customer.io workspace.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind). 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](https://docs.customer.io/integrations/api/app/tag/automations/listcampaigns/)

## 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.

| Mode | Path | Terms and key |
| - | - | - |
| `customer-io.profiles.by-id` | `/v1/customers/CUSTOMER_ID/attributes` | Exact URL-safe customer ID as `selection` and `limit: 1`. Key is the customer ID. |
| `customer-io.segments.observations` | `/v1/segments` | Single answer up to 100 segment rows, keyed by segment ID. |
| `customer-io.events.observations` | `/v1/customers/CUSTOMER_ID/activities` | Same customer ID in `selection` and up to 100 rows per page. Keys are customer and activity ID. |

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](https://docs.customer.io/integrations/api/app/)

## Writes

Follow the [native write guide](https://docs.bijection.com/integrations/native-connectors.md#provider-writes)
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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.