@this-npm-test-org/connection-customerio
v0.1.3
Published
Customer.io: customer messaging across email, push, SMS, and in-app — campaigns, broadcasts, and people data.
Readme
Customer.io Connection
Connects your agent to Customer.io for lifecycle messaging across email, push, SMS, and in-app. Read campaigns and segments, look up people, and trigger transactional sends.
Authentication
App API key (distinct from the Track API key — App is for messaging/data reads).
CUSTOMERIO_APP_API_KEY— App API key, sent as BearerCUSTOMERIO_REGION—us(default) oreu— picksapi.customer.iovsapi-eu.customer.io
Endpoints
People
GET /v1/customers/{id}— Person attributes and segment membershipGET /v1/segments/{id}/membership— People in a segmentPOST /v1/customers/{id}— Update attributes (requires confirmation for bulk)
Segments & campaigns
GET /v1/segments— All segmentsGET /v1/campaigns— All campaignsGET /v1/campaigns/{id}/metrics— Send/open/click metrics
Sending
POST /v1/send/email— Transactional email sendPOST /v1/send/push— Transactional pushPOST /v1/send/sms— Transactional SMS
Broadcasts
GET /v1/broadcasts— Broadcast listPOST /v1/campaigns/{id}/triggers— Trigger a broadcast (requires confirmation)
Rules
- Rate limit: 100 requests/second on App API
- Person/customer emails are PII — always redact in logs
- Triggering broadcasts can reach thousands of recipients — always confirm
