CDP API Cookbook › Agent manifest
Tell AI agents how to call your CDP, in one file
The CDP Agent Manifest is a small open file a CDP hosts at /.well-known/cdp-agent.json: the API call for each of five everyday jobs, how to authenticate, and the fields each call needs. An agent reads one file instead of searching the docs for the right page.
In CdpHub’s agent readiness test, 260 of the 268 requests the agent wrote were right: when it could read the page, it got the request right. Finding the page was the hard part.
The file
Host it at https://<your API or main domain>/.well-known/cdp-agent.json, served as application/json with the header Access-Control-Allow-Origin: * so agents running in a browser can read it too. List it in your /.well-known/api-catalog (RFC 9727) as service-meta, and link it from your llms.txt.
The five jobs, the same everywhere so an agent knows what to look for:
send_eventSend an event
one event for a known person
upsert_profileCreate or update a profile
a person's profile, made or changed
send_batchSend a batch
several events (or profiles) in one request
read_profileLook up a profile
a person's profile, read by an identifier
delete_userDelete a person
a privacy erasure
{
"$schema": "https://cdphub.com/cdp-agent-0.1.schema.json",
"cdp_agent": "0.1",
"name": "Segment",
"provider": {
"name": "Twilio"
},
"updated": "2026-11-14",
"docs": "https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/server/http-api",
"contact": "mailto:api-docs@example.com",
"variables": {
"WRITE_KEY": {
"description": "The write key of the source that sends the data.",
"secret": true
}
},
"auth": {
"basic_write_key": {
"type": "basic",
"username": "{WRITE_KEY}",
"password": "",
"description": "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)"
}
},
"jobs": {
"send_event": {
"status": "api",
"method": "POST",
"url": "https://api.segment.io/v1/track",
"hosts": [
"events.eu1.segmentapis.com"
],
"auth": [
[
"basic_write_key"
]
],
"required": {
"body": [
"event",
{
"one_of": [
"userId",
"anonymousId"
]
}
]
},
"docs": "https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/server/http-api"
},
"delete_user": {
"status": "api",
"…": "…"
}
}
}Credentials never appear in the file: {WRITE_KEY} stands for an account’s own value, described under variables and marked secret so an agent doesn’t log it.
What goes in it
The file
| Field | What it is | |
|---|---|---|
cdp_agentrequired | yes | The spec version: "0.1". |
namerequired | yes | The CDP's name as its customers know it. |
updatedrequired | yes | The day the file was last checked against the docs, YYYY-MM-DD. |
docsrequired | yes | The developer docs' home page. |
jobsrequired | yes | The five jobs, each the call or why there is none. A job left out is one the file says nothing about. |
provider | The company behind the CDP, when its name differs: name and url. | |
contact | Where to report a wrong entry: an https:// page or a mailto: address. | |
links | Other descriptions of the APIs: openapi, mcp, llms_txt, status. | |
variables | The account values the file’s templates use, written {NAME}: a description, whether it is secret, an example. | |
auth | The ways to authenticate, by id. Each job names the ones it takes. | |
$schema | https://cdphub.com/cdp-agent-0.1.schema.json, so editors check the file as it is written. |
A job
| Field | What it is | |
|---|---|---|
statusrequired | yes | "api" for one call; "workflow" for several calls, "app" when it is done in the vendor’s app, "none" when it isn’t offered. |
method, urlrequired with a call | api | The call: GET, POST, PUT, PATCH or DELETE, and the whole https:// address. {NAME} is an account value, {name} the request’s own. |
authrequired with a call | api | The ways this call authenticates: a list of options, each a list of auth ids sent together. [] when it takes no credential. |
docsrequired with a call | api | The reference page for this call. |
required | What the call can’t do without: body paths (a[].b is b in each item of the list a), query parameters and headers; {"one_of": [...]} when any one will do. | |
headers, query | What to send besides the credential, such as an API version header. | |
params | The request’s own values in the address, such as {user_id}, each described. | |
hosts | Other hosts that take the same call, such as other regions’. | |
example | A whole request with the shared example: headers, query and body. | |
fields | Where each part of the shared example goes (user_id, email, event, time, order_id, total, currency and so on). | |
notes | Anything else an agent needs, one line each. | |
noterequired without a call | not api | For "workflow", "app" or "none": how it is done instead, or why it isn’t offered. |
A way to authenticate
| type | What it sends | |
|---|---|---|
basicwith username, password | username, password | HTTP Basic: Authorization: Basic base64(username:password). The password may be "". |
bearerwith token | token | Authorization: Bearer token. token_url, grant and scopes say how to get one. |
headerwith name, value | name, value | The credential in a header, such as x-api-key: {API_KEY}. |
querywith name, value | name, value | The credential in a query parameter. |
bodywith name, value | name, value | The credential in a field of the JSON body. |
none | No credential. |
Each also takes a description (what the credential is and where an account gets it) and docs.
Drafts for 29 CDPs
A ready file for each CDP the CDP API Cookbook covers, made from each vendor’s own reference pages (read November 13 and 14, 2026). Every call in them is the cookbook’s checked recipe. Vendors: add your contact, check each call against your docs, and host it. All 29 are also in one file.
Segment: all five jobs as one call. See its recipes or its page in the directory.
{
"$schema": "https://cdphub.com/cdp-agent-0.1.schema.json",
"cdp_agent": "0.1",
"name": "Segment",
"provider": {
"name": "Twilio"
},
"updated": "2026-11-14",
"docs": "https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/server/http-api",
"variables": {
"ACCESS_TOKEN": {
"description": "A Profile API access token.",
"secret": true
},
"PUBLIC_API_TOKEN": {
"description": "A Public API token.",
"secret": true
},
"SPACE_ID": {
"description": "Your Unify space ID."
},
"WRITE_KEY": {
"description": "The write key of the source that sends the data.",
"secret": true
}
},
"auth": {
"basic_write_key": {
"type": "basic",
"username": "{WRITE_KEY}",
"password": "",
"description": "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)"
},
"basic_access_token": {
"type": "basic",
"username": "{ACCESS_TOKEN}",
"password": "",
"description": "HTTP Basic with a Profile API access token as the user name and an empty password"
},
"bearer_public_api_token": {
"type": "bearer",
"token": "{PUBLIC_API_TOKEN}",
"description": "Bearer token for Segment's Public API"
}
},
"jobs": {
"send_event": {
"status": "api",
"method": "POST",
"url": "https://api.segment.io/v1/track",
"hosts": [
"events.eu1.segmentapis.com"
],
"auth": [
[
"basic_write_key"
]
],
"headers": {
"Content-Type": "application/json"
},
"required": {
"body": [
"event",
{
"one_of": [
"userId",
"anonymousId"
]
}
]
},
"fields": {
"user_id": "userId",
"event": "event",
"time": "timestamp (ISO 8601)",
"order_id": "properties.order_id",
"total": "properties.total",
"currency": "properties.currency"
},
"example": {
"headers": {
"Authorization": "Basic base64({WRITE_KEY}:)",
"Content-Type": "application/json"
},
"body": {
"userId": "u_1001",
"event": "Order Completed",
"properties": {
"order_id": "ord_5001",
"total": 49.9,
"currency": "USD"
},
"timestamp": "2026-11-01T12:00:00Z"
}
},
"notes": [
"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."
],
"docs": "https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/server/http-api"
},
"upsert_profile": {
"status": "api",
"method": "POST",
"url": "https://api.segment.io/v1/identify",
"hosts": [
"events.eu1.segmentapis.com"
],
"auth": [
[
"basic_write_key"
]
],
"headers": {
"Content-Type": "application/json"
},
"required": {
"body": [
{
"one_of": [
"userId",
"anonymousId"
]
}
]
},
"fields": {
"user_id": "userId",
"email": "traits.email",
"first_name": "traits.firstName",
"last_name": "traits.lastName",
"plan": "traits.plan"
},
"example": {
"headers": {
"Authorization": "Basic base64({WRITE_KEY}:)",
"Content-Type": "application/json"
},
"body": {
"userId": "u_1001",
"traits": {
"email": "ada@example.com",
"firstName": "Ada",
"lastName": "Lovelace",
"plan": "pro"
}
}
},
"notes": [
"Identify records traits for the user; a later identify updates them.",
"EU workspaces send to events.eu1.segmentapis.com instead of api.segment.io."
],
"docs": "https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/server/http-api"
},
"send_batch": {
"status": "api",
"method": "POST",
"url": "https://api.segment.io/v1/batch",
"hosts": [
"events.eu1.segmentapis.com"
],
"auth": [
[
"basic_write_key"
]
],
"headers": {
"Content-Type": "application/json"
},
"required": {
"body": [
"batch",
"batch[].type",
{
"one_of": [
"batch[].userId",
"batch[].anonymousId"
]
}
]
},
"fields": {
"events": "batch[]",
"user_id": "batch[].userId",
"event": "batch[].event",
"product_id": "batch[].properties.product_id",
"time": "batch[].timestamp"
},
"example": {
"headers": {
"Authorization": "Basic base64({WRITE_KEY}:)",
"Content-Type": "application/json"
},
"body": {
"batch": [
{
"type": "track",
"userId": "u_1001",
"event": "Product Viewed",
"properties": {
"product_id": "sku_1"
},
"timestamp": "2026-11-01T12:00:00Z"
},
{
"type": "track",
"userId": "u_1002",
"event": "Product Viewed",
"properties": {
"product_id": "sku_2"
},
"timestamp": "2026-11-01T12:00:00Z"
}
]
}
},
"notes": [
"Every call in the batch needs a type.",
"Up to 2,500 events and 500 KB a request, 32 KB a call.",
"EU workspaces send to events.eu1.segmentapis.com instead of api.segment.io."
],
"docs": "https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/server/http-api"
},
"read_profile": {
"status": "api",
"method": "GET",
"url": "https://profiles.segment.com/v1/spaces/{SPACE_ID}/collections/users/profiles/user_id:{user_id}/traits",
"auth": [
[
"basic_access_token"
]
],
"params": {
"user_id": "The person's ID in your system (u_1001 in the example)."
},
"fields": {
"lookup": "path …/profiles/user_id:u_1001/traits"
},
"example": {
"headers": {
"Authorization": "Basic base64({ACCESS_TOKEN}:)"
}
},
"notes": [
"The profile is named by an ID type and value joined by a colon (user_id:u_1001); Segment advises against email as the ID.",
"limit returns up to 200 traits (10 by default).",
"EU spaces use profiles.euw1.segment.com."
],
"docs": "https://www.twilio.com/docs/segment/unify/profile-api"
},
"delete_user": {
"status": "api",
"method": "POST",
"url": "https://api.segmentapis.com/regulations",
"auth": [
[
"bearer_public_api_token"
]
],
"headers": {
"Content-Type": "application/json"
},
"required": {
"body": [
"regulationType",
"subjectType",
"subjectIds"
]
},
"fields": {
"identifier": "subjectIds[] (subjectType USER_ID)"
},
"example": {
"headers": {
"Authorization": "Bearer {PUBLIC_API_TOKEN}",
"Content-Type": "application/json"
},
"body": {
"regulationType": "SUPPRESS_WITH_DELETE",
"subjectType": "USER_ID",
"subjectIds": [
"u_1001"
]
}
},
"notes": [
"SUPPRESS_WITH_DELETE also blocks new data and forwards the deletion to destinations that support it; DELETE_INTERNAL deletes only in Segment.",
"A workspace regulation covers every source; POST /regulations/sources/{sourceId} covers one.",
"Up to 5,000 user IDs a call."
],
"docs": "https://www.twilio.com/docs/segment/privacy/user-deletion-and-suppression"
}
}
}
Check a file
Checks the file against the spec and, for a CDP CdpHub has read, each call against CdpHub’s reading of the vendor’s docs: the method, the address, where the credential goes and the required fields. Agents can use it too: GET https://cdphub.com/functions/checkAgentManifest?domain=example.com, or POST { "manifest": … }.
How it fits with other files
- OpenAPI
- Describes a whole API, often hundreds of operations. The manifest names the five calls an agent needs for these jobs and links the OpenAPI file under links.openapi.
- /.well-known/api-catalog
- RFC 9727 lists a domain’s APIs as links. List the manifest there with rel service-meta, next to your OpenAPI file (service-desc) and docs (service-doc).
- llms.txt
- Points language models to the docs to read. Link the manifest from it, so an agent that starts there finds the calls.
- A2A agent cards
- /.well-known/agent-card.json describes an agent that other agents talk to. The manifest describes an API that an agent calls.
- MCP servers
- An MCP server gives an agent tools to call. A CDP with one can name it under links.mcp; the manifest still gives the plain API calls.
- The CDP API Cookbook
- CdpHub’s own record of the five calls at each CDP, read from the docs. The drafts are the cookbook, in the file vendors host themselves.
Version and license
- Version 0.1, November 14, 2026. A file names its version in
cdp_agent; a later version will say what changed, here. - The JSON Schema: cdp-agent-0.1.schema.json (JSON Schema 2020-12). The drafts, for agents and scripts: /functions/agentManifestDraft?cdp=all, or one CDP’s with
?cdp=segment. - The spec’s text is CC BY 4.0. The schema and the drafts are CC0: copy them without asking.
- Suggestions and corrections are welcome at ed@cdphub.com. CdpHub is independent and takes no referral fees or vendor commissions.