Cloudflare API

Messtone LLC Manages(Cloudflare):API

Messtone Devices Enables Cloudflare API v4.0.0 API Base URL Client API:https://api.cloudflare.com/client/v4 Security Api Key(api_email) Example: X-Auth-Email:123 API Key(api_key) Example: X-Auth-Key:123 API Key(user_service_key) Example: X-Auth-User-Service-Key :123 Bearer Auth Example: Authorization:Bearer 123 Cloudflare API Installation npm install cloudflare import Cloudflare from ‘cloudflare’;const Cloudflare=new Cloudflare({apiEmail:process.env[‘CLOUDFLARE_EMAIL’],//This is the default and can be omitted apiKey:process. env[‘CLOUDFLARE_API_KEY’],//This the default and can be omitted});Async function main( ){const zone=await Cloudflare.zones.create({account:{id:’023e105f4ecef8ad9ca31a8372d0c353′},name:Messtone.com’,type:’full’,});console.log(zone.id);}main( );all request params and response Example import Cloudflare from ‘cloudflare’;const cloudflare=new Cloudflare({apiEmail:process.env[‘CLOUDFLARE_EMAIL’],//This is the default and can be omitted apiKey:process.env[‘CLOUDFLARE_API_KEY’],//This is the default and can be omitted});async function main( ){const params: Cloudflare.ZoneCreateParams={account:{id:’023e105f4ecef8ad9ca31a8372dOc353′},name:’messtone.com’,type:’full’,};const zone:Cloudflare.Zone=await cloudflare.zones.create(params);main( );