RedImSky
CDCloudflare Developers
•Created by RedImSky on 2/2/2024 in #general-help
API Problem
Hello i have a problem with the cloudflare api v4.
I used the right api token but i got an Authentication error.
$response = Http::withHeaders([
'Content-Type' => 'application/json',
'Authorization' => 'Bearer xxx',
])
->post('https://api.cloudflare.com/client/v4/zones/xxx/dns_records', [
'content' => '1.1.1.1',
'name' => 'test.test.de',
'proxied' => false,
'type' => 'A',
'comment' => 'Record test',
'tags' => ['owner:dns-team'],
'ttl' => 3600,
]);
The curl testing is working at my computer. But I cant use the http api.11 replies
CDCloudflare Developers
•Created by RedImSky on 1/28/2024 in #general-help
Cloudflare as ThirdParty
Hi. Is there any way, for example, as a web host, to set the DNS entries of the customers who have their DNS servers with Cloudflare? Like in a webpanel or something else.
I saw that Microsoft does this with their products and wanted to ask if it was possible.
There you logged in with your data and confirmed it, then the entries were created directly.
4 replies