---
title: How to · Cloudflare Fundamentals docs
description: Using the Cloudflare API requires authentication so that Cloudflare knows who is making requests and what permissions you have. Create an API token to grant access to the API to perform actions.
lastUpdated: 2024-10-31T11:42:05.000Z
source_url:
  html: https://77261bbd.preview.developers.cloudflare.com/fundamentals/api/how-to/index.md
  md: https://77261bbd.preview.developers.cloudflare.com/fundamentals/api/how-to/
---

Using the Cloudflare API requires authentication so that Cloudflare knows who is making requests and what permissions you have. [Create an API token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/) to grant access to the API to perform actions.

Note

You can also authenticate with [API keys](https://developers.cloudflare.com/fundamentals/api/get-started/keys/), but these keys have [several limitations](https://developers.cloudflare.com/fundamentals/api/get-started/keys/#limitations) that make them less secure than API tokens. Whenever possible, use API tokens to interact with the Cloudflare API.

* [Make API calls](https://developers.cloudflare.com/fundamentals/api/how-to/make-api-calls/)
* [Create tokens via API](https://developers.cloudflare.com/fundamentals/api/how-to/create-via-api/)
* [Control API Access](https://developers.cloudflare.com/fundamentals/api/how-to/control-api-access/)
* [Restrict tokens](https://developers.cloudflare.com/fundamentals/api/how-to/restrict-tokens/)
* [Roll tokens](https://developers.cloudflare.com/fundamentals/api/how-to/roll-token/)
