Skip to main content
POST
Save a Cloudflare source

Authorizations

Authorization
string
header
required

API key with dtk_live_ prefix. Obtain it from API Keys in the account sidebar. New keys start with all supported scopes selected for the chosen project, and you can narrow them to specific read/write scopes as needed.

Path Parameters

projectId
string<uuid>
required

The project the credential is bound to. Read it from GET /connection.

Body

application/json
zoneId
string
required

The Cloudflare zone id.

Required string length: 1 - 128
label
string
required

A name for the source in AI Traffic settings.

Required string length: 1 - 255
apiToken
string
required
write-only

A Cloudflare API token with Analytics Read on the zone.

Minimum string length: 1

Response

The saved source, without the token

data
object
required
meta
object
required

Sent beside data on every successful response that returns data.