Skip to content

Bytes used by the brand and by the organization, against what the plan includes

GET
/v1/brands/{brand}/drive/usage
curl --request GET \
--url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/drive/usage \
--header 'Authorization: Bearer <token>'
brand
required
string
/^brd_[a-z0-9]{26}$/

Example

brd_01hx0000000000000000000000

Usage

Media typeapplication/json
object
bytes
required

Brand bytes: originals still in R2, including those in the trash. This is the drive_bytes read by billing.

number
files
required
number
orgBytes
required

Sum across all of the organization’s brands (informational: the limit on paid plans is per brand).

number
tier
required
string
limitBytes
required

Drive limit that applies to this brand (paid plans) or to the organization (Free). Null = no limit.

number
nullable
readOnly
required

The brand (paid plans) or the organization (Free) is over the limit: nothing new can be added, nothing is deleted.

boolean
percent
required
number
nullable
history
required

Daily snapshot of the last 30 days.

Array<object>
object
day
required
string
bytes
required
number

Example generated

{
"bytes": 1,
"files": 1,
"orgBytes": 1,
"tier": "example",
"limitBytes": 1,
"readOnly": true,
"percent": 1,
"history": [
{
"day": "example",
"bytes": 1
}
]
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}