API and graphql and following 2 blog posts - Cloudflare Developers