Get Workspace Metadata
Retrieve workspace metadata by its name or ID (UUID).
- Endpoint:
https://api.repoflow.io/workspace/:workspaceReference - Method: GET
Example Request
GET https://api.repoflow.io/workspace/<your-workspace-name>
or
GET https://api.repoflow.io/workspace/<your-workspace-id>
Example Response
{
"id": "92bbfdcf-78e9-43ac-be77-0076c718b295",
"name": "default",
"storageUsageInByte": 123456789,
"storageLimitInByte": 10737418240,
"transferUsageInByte": 987654321,
"transferLimitInByte": 53687091200,
"packageUsage": 42,
"packageLimit": 500,
"aiUsageCount": 12,
"aiUsageLimit": 1000
}
Response Fields
id: Workspace ID (UUID).name: Workspace name.storageUsageInByte: Current storage usage in bytes.storageLimitInByte: Storage limit in bytes, ornullif no limit is set.transferUsageInByte: Current transfer usage in bytes.transferLimitInByte: Transfer limit in bytes, ornullif no limit is set.packageUsage: Current number of packages in the workspace.packageLimit: Maximum number of packages allowed, ornullif no limit is set.aiUsageCount: Current AI usage count.aiUsageLimit: AI usage limit, ornullif no limit is set.
Error Responses
- 404 Not Found: If the workspace does not exist or you don't have access to it.
- 500 Internal Server Error: If an unexpected error occurs during the request processing.