Pipelines API
Overview
In general, you'll consume this API through one of our source libraries—our JavaScript client library or any of our server packages. But you can also integrate directly with our REST API if you don't want to install one of our libraries or you want to support a source that we don't have a native integration with.
Server addresses: US and EU
Customer.io hosts services in the United States (US) and European Union. Select the appropriate server address for your region.
| Region | Server Address |
|---|---|
| US | https://cdp.customer.io |
| EU | https://cdp-eu.customer.io |
If you're in our EU region, you'll need to specify the EU URL when you initialize our server-side libraries. If you use our JavaScript client library, we'll set your region and route data/calls automatically.
Get an API key
- Go to the tab and click Sources.
- Click Add Source, pick HTTP, and click Next.
- Give the source a Name and copy your API Key. You'll use this key to authenticate with our API. If you don't copy the key now, you can always get it later from the Settings tab when you're done setting up your source.
- (Optional) Test your connection by sending a test call. You can copy your API key into an app like Postman or send a CURL request. If your request is successful, and then you click Test Connection we'll let you know if your request was successful and you've set up your HTTP implementation successfully.
- Click Submit.
Now you can use the key as a username with a blank password to authenticate and send requests to our API.
Authentication & rate limits
Our API uses basic authorization with an API Key provided when you set up a source. If you use Postman or another platform that helps you send API calls, this API key is the Username, and the Password is blank.
Our sources are all authenticated using a API Key that we generate when you create a source.
Rate and payload limits
A request is limited to 32KB. A batch request is limited to 500KB total and 32KB per call in the request. If a request exceeds these limits, you will receive a 200 response, but the request will not go through.
The Data Pipelines API has a rate limit of 3000 requests per 3 seconds for both active data integrations and historical backfill scripts. This limit applies to both our v1 and v2 APIs.
While this rate is not strictly enforced, consistently exceeding it may lead to throttling or dropped data, especially during periods of high system load. If we detect a sustained high volume that could impact other customers, we may contact you to help adjust your integration or, in rare cases, temporarily block requests.
Warning
Rate limits are subject to change. We may adjust these thresholds to ensure stable performance for all customers.
Try out our postman collection
We've generated a Postman collection with all of the endpoints organized as you'll find them on this page, with a starter environment (mainly to contain your API key). For our API endpoints, your API key is your username and your password is blank.
You'll notice that payloads on this page can contain significantly more information than the payloads that appear in our collection. We've limited our collections to the fields that you'll typically use when you send calls to our APIs and libraries, so it's easier to get started. But you can add additional fields to payloads—like context, integrations, and so on—if you want.
If you fork this collection, you might want to disable the Watch original collection option. We automatically update our Postman collection whenever we release changes to our documentation, even if we don't change our APIs—which happens daily! Rather than being flooded with Postman notifications, you can check out our Release Notes for updates to our APIs.
Deletions, suppressions, and other semantic events
You'll notice that this API only contains POST calls; we don't have DELETE operations. For delete operations, and other operations that don't have bespoke endpoints, we use semantic events.
When you need to do things like deleting people, removing relationships, and other sorts of things, you'll send a request to the /track endpoint with a specific event name parameter. The name tells us what to do with the request.
For example, you can send a track event with the name Delete Person to remove a person from your workspace.
See Semantic Events to see Customer.io-specific events.
We also support semantic events for other kinds of destinations. See Semantic Events for other destinations below for more information.
| Event Name | Description |
|---|---|
Device Created or Updated |
Adds or updates a mobile device (by token), and associates it with a person |
Device Deleted |
Deletes a device |
User Deleted |
Removes a person from your workspace |
User Suppressed |
Removes a person from your workspace and suppresses their identifiers so you can't add them back to Customer.io. |
User Unsuppressed |
Unsuppresses an identifier so you can add someone back to Customer.io and message them again. |
Relationship Deleted |
Remove a relationship between a person and an object |
Object Deleted |
Remove an object (like an account or company) from your Customer.io workspace |
Report Delivery Event |
Report delivery events for messages |
Semantic events for other destinations
In addition to events that have special meanings in Customer.io, we have a number of other events that we support across different kinds of destinations. These uniform events ensure that we'll map event data to destinations consistently—so you can move from one provider to another without having to change your event names or payload structures.
For example, our ecommerce events work across any ecommerce platform we integrate with—even if those ecommerce platforms have different APIs or payload structures.
See Semantic Events to learn more.
Backfilling data
By default, Customer.io records a timestamp when we receive requests. If you're sending data to Customer.io in real time, you don't need to worry about the timestamp.
If you want to backfill requests, you can send a timestamp—an ISO 8601 date-time string—telling us when the request occurred. This provides a way to log track and page calls when the activities actually took place.