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

# Braze campaign observations

> Read campaign metadata from one Braze workspace.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind). Pass `providerEndpoint("braze.campaigns.observations", "https://rest.iad-01.braze.com", "/campaigns/list", auth, data)` as `receivers.provider`
from `@bijectionhq/app-rest`. Use your workspace's REST origin and seal a bearer REST API key with `campaigns.list`.
Pass the same label to the receiver binder and as the app's `data`.

Initialize with `{ profile: { mode: "provider", provider: "braze.campaigns.observations", limit: 100 } }`.

Braze returns numbered pages of up to 100 campaigns, including archived campaigns. Rows publish by campaign API ID. A short or empty page terminates the walk. The next poll restarts at page zero. Each page must fit 36 KiB. Missing campaigns remain published.

[Braze export campaigns list](https://braze.com/docs/api/endpoints/export/campaigns/get_campaigns)

## Profiles, segments, and event counts

Bind one of these modes through `providerEndpoint` on the same workspace
origin and protected label. Seal a bearer API key with the listed scope.

| Mode | Path | Terms and scope |
| - | - | - |
| `braze.profiles.by-id` | `/users/export/ids` | External ID as `selection`, `limit: 1` with `users.export.ids`. |
| `braze.segments.observations` | `/segments/list` | `limit: 100` with `segments.list`. |
| `braze.events.daily-counts` | `/events/data_series` | Exact event name as `selection`, inclusive `start` and `end` of up to 31 UTC dates, and enough `limit` for the window with `events.data_series`. |

Profiles use the external ID and include custom attributes and custom-event
summaries. Segment rows use API IDs and resume numbered pages from page zero
after a short or empty page. Event counts use event name and day, with a
single answer per poll. This API returns counts. Per-event delivery
requires Braze Currents. Each answer fits 36 KiB. Omissions leave earlier
observations in place.

[Braze REST API](https://www.braze.com/docs/api/endpoints/export)

## 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.
Seal a workspace bearer token with `users.track` on the same REST origin.

* Bind `providerWriter` for `braze.profiles.upsert` and pass it as `receivers.writers["braze.profiles.upsert"]`.
  Use action `upsert`. Pass the external user ID as `externalId` and the profile attribute object as `payload`.
* Bind `providerWriter` for `braze.events.create` and pass it as `receivers.writers["braze.events.create"]`.
  Use action `create`. Pass `external_id`, `name` and an ISO timestamp in `time`. Braze must queue one record without a per-object error.

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.

## Individual custom events from Currents

Use `braze.currents.custom-events.s3` through the
[S3 object mount](https://docs.bijection.com/integrations/native-s3.md). Configure Braze Currents to
deliver to an operator-owned versioned bucket. Give Braze the delivery
permissions separately. Bind the mount's read-only S3 credential to the
reviewed prefix for the `users.behaviors.CustomEvent` partition of one
Currents integration. Pass the same protected label to the receiver binder and as the app's `data`. Initialize with `{ format: "braze-currents" }`.

The mount follows S3 object-version positions and stages Files up to 1 MiB
in version-checked 24 KiB ranges. It parses eligible Avro files up to
48 KiB and 128 records. Larger supported Files remain available with their
per-version parse status. Objects above 1 MiB retain metadata. Use
`braze.list` to page unique event IDs and `braze.get({ id })` to read the
first retained event and its source version. A repeated ID may appear
in another raw delivery file. Omissions leave existing rows and Files in
place.

[Braze Currents on S3](https://braze.com/docs/partners/data_and_analytics/cloud_storage/amazon_s3)


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