Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Space

Get account usage metrics and storage limits

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
200

OK

application/json
bandwidth_inintegerOptional
bandwidth_outintegerOptional
lfs_storage_totalintegerOptional
pushesintegerOptional
root_space_idintegerOptional
root_space_identifierstringOptional
storage_totalintegerOptional
get/usage/metric
GET /code/api/v1/usage/metric?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
  "bandwidth_in": 1,
  "bandwidth_out": 1,
  "lfs_storage_total": 1,
  "pushes": 1,
  "root_space_id": 1,
  "root_space_identifier": "text",
  "storage_limits": {
    "account_storage_enforced": true,
    "critical_percent": 1,
    "limit_bytes": "text",
    "repo_size_hard_enforced": true,
    "repo_size_hard_limit_bytes": "text",
    "repo_size_soft_limit_bytes": "text",
    "tier": "text",
    "used_bytes": "text",
    "used_percent": 1,
    "warn_percent": 1
  },
  "storage_total": 1
}

Last updated

Was this helpful?