name or host (aliases), and either type or recordType (aliases). At least one of each pair is required.x-api-key: ********************{
"domain": "b2bforcelabs.com",
"type": "TXT",
"recordType": "TXT",
"name": "@",
"host": "@",
"value": "v=spf1 include:_spf.google.com ~all",
"ttl": 3600,
"priority": null
}curl --location '/v1/dns-records' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"domain": "b2bforcelabs.com",
"type": "TXT",
"recordType": "TXT",
"name": "@",
"host": "@",
"value": "v=spf1 include:_spf.google.com ~all",
"ttl": 3600,
"priority": null
}'{
"status": 201,
"message": "DNS record created successfully.",
"data": {
"id": "clz1abc4",
"cloudflareId": "abc123cloudflare",
"type": "TXT",
"recordType": "TXT",
"name": "@",
"host": "@",
"value": "v=spf1 include:_spf.google.com ~all",
"ttl": 3600,
"priority": null,
"domainId": "cmg9l788c0001la04ctg7t1j4"
}
}