Directory › CDP API Cookbook
CDP API Cookbook
The exact request for five everyday jobs at 30 customer data platforms, written from each vendor’s own developer docs. 122 recipes, each checked with the rules that judge the AI agents in CdpHub’s agent readiness test, and where a CDP doesn’t offer a job, the reason. Or paste a request you or an AI agent wrote and check it against the docs.
Every recipe uses the same example: customer u_1001, ada@example.com, Ada Lovelace on the pro plan, order ord_5001 for 49.90 USD at 2026-11-01T12:00:00Z, and a second customer u_1002 for the batch.
Segment (Twilio): Send an event
Record one event from a server: customer u_1001 (ada@example.com) completed order ord_5001, 49.90 USD, at 2026-11-01T12:00:00Z.
POST https://api.segment.io/v1/track
Authorization: Basic <base64(WRITE_KEY:)>
Content-Type: application/json
{
"userId": "u_1001",
"event": "Order Completed",
"properties": {
"order_id": "ord_5001",
"total": 49.9,
"currency": "USD"
},
"timestamp": "2026-11-01T12:00:00Z"
}Authentication: HTTP Basic with the source's write key as the user name and an empty password (the write key may instead go in the body as writeKey)
- A userId or an anonymousId is required.
- timestamp is ISO 8601; leave it out and Segment uses the time it receives the call.
- EU workspaces send to events.eu1.segmentapis.com instead of api.segment.io.
From the vendor’s docs: www.twilio.com/
Placeholders in angle brackets are yours to fill in. Checked with the agent readiness test’s rules; not sent to Segment (Twilio)’s API.
Segment (Twilio)’s integrations in the directory · Compare this job with another CDP ·
How the recipes were made
Each recipe was written by hand from the CDP’s own reference pages, read on November 13 and 14, 2026, and checked with the rules that judge the AI agents in CdpHub’s agent readiness test: the call must be one the vendor documents, on its documented host and with its credential; the body must have the fields the docs require; and the request must carry the example’s person and data. The 17 CDPs of the test’s second round are checked against the very answer keys that judged the agents, the first round’s 13 against keys written again from the same pages. None was sent to a vendor’s API. Field names inside an event’s properties are examples unless the docs fix them.
For AI agents and tools
Every recipe, status and reason is in one JSON file. To check a request before sending it, an agent can post it to https://cdphub.com/functions/checkApiRequest or use the check_api_request tool on CdpHub’s MCP server. Vendors can publish the same calls on their own site: CdpHub has a draft agent manifest for each CDP here. If a recipe is wrong or your docs have changed, please tell us; CdpHub is independent and takes no vendor fees.
