Experimental
Stat reads metadata for one path.
GET
/v1/files/stat Stat reads metadata for one path.
A metadata read has a different response from the file-content resource.
Connection and access
API connection and authentication guidance
{endpoint}
endpoint: The sandbox API base URL from Sandbox.core.endpoint.uri; preserve its path prefix when appending /v1 routes. HTTP endpoints require a scoped endpoint bearer; direct Unix sockets use socket access control.
Use one of these alternatives. Requirements within an alternative apply together.
sandboxBearer
Parameters
path
query
Required
path is the sandbox path.
Type:
string
All schema constraints and annotations
{
"minLength": 1,
"title": "path",
"type": "string"
}Request and responses
Response
200
Success
application/json
Schema:
FilesStatResponse
Response
default
The structured Error body identifies the failure with a stable code and optional typed details.
application/json
Schema:
Error
Schema example
{
"code": "notFound",
"details": [],
"message": "sandbox not found"
}Referenced schemas
#/components/schemas/FilesStatResponse
Complete operation contract
{
"description": "Stat reads metadata for one path.\nA metadata read has a different response from the file-content resource.",
"operationId": "stat",
"parameters": [
{
"description": "path is the sandbox path.",
"in": "query",
"name": "path",
"required": true,
"schema": {
"minLength": 1,
"title": "path",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FilesStatResponse"
}
}
},
"description": "Success"
},
"default": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "The structured Error body identifies the failure with a stable code and optional typed details."
}
},
"security": [
{
"sandboxBearer": []
}
],
"servers": [
{
"url": "{endpoint}",
"variables": {
"endpoint": {
"default": "https://sandbox.invalid",
"description": "The sandbox API base URL from Sandbox.core.endpoint.uri; preserve its path prefix when appending /v1 routes. HTTP endpoints require a scoped endpoint bearer; direct Unix sockets use socket access control."
}
}
}
],
"summary": "Stat reads metadata for one path.",
"tags": [
"Files"
],
"x-sbx-authenticated-only": false,
"x-sbx-conditional-permissions": [],
"x-sbx-plane": "data",
"x-sbx-required-permissions": [
"sandboxesFilesRead"
],
"x-sbx-serving-surface": "sandboxEndpoint"
}