---
title: API
description: Access R2 storage through the S3-compatible API or the Workers API.
image: https://developers.cloudflare.com/dev-products-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/r2/llms.txt  
> Use this file to discover all available pages before exploring further.

[Skip to content](#%5Ftop) 

# API

* [ Authentication ](https://developers.cloudflare.com/r2/api/tokens/)
* [ Workers API ](https://developers.cloudflare.com/r2/api/workers/)
* [ S3 ](https://developers.cloudflare.com/r2/api/s3/)
* [ Error codes ](https://developers.cloudflare.com/r2/api/error-codes/)

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/r2/","name":"R2"}},{"@type":"ListItem","position":3,"item":{"@id":"/r2/api/","name":"API"}}]}
```
