POST /accounts/{account_id}/r2/temp-access-credentials
Creates temporary access credentials on a bucket that can be optionally scoped to prefixes or objects.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
Name | Type | Required | Description |
---|---|---|---|
account_id |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
permission |
String | Yes |
Permissions allowed on the credentials. Possible values:
|
bucket |
String | Yes |
Name of the R2 bucket. |
ttlSeconds |
Number | Yes |
How long the credentials will live for in seconds. Default value: 900 |
prefixes[] |
Array | No |
Optional prefix paths to scope the credentials to. |
parentAccessKeyId |
String | Yes |
The parent access key id to use for signing. |
objects[] |
Array | No |
Optional object paths to scope the credentials to. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.