# Stat a task file

`GET /tasks/{id}/files/metadata/{path}`

:::code-group
```bash title="cURL"
curl --request GET \
  --url https://{host}/api/tasks/{id}/files/metadata/{path} \
  --header 'Authorization: Bearer <token>'
```

```json title="200"
{
  "is_dir": true,
  "is_file": true,
  "size": 123,
  "modified": 123
}
```
:::

## Authorizations

- `Authorization` (header, string, required) — Bearer authentication header of the form `Bearer <token>`.

## Path Parameters

- `id` (path, string, required) — Task id.
- `path` (path, string, required) — Relative path within the tree. Matches greedily, so it may contain `/`.

## Headers

- `X-Pinecone-Api-Version` (header, string) — Date-based contract version, echoed back on the same header. Omit for the default (`2026-07`); send `unstable` for the in-development surface. An unrecognized value is rejected with `400 unsupported_api_version`.

## Response

- `200` — File metadata — the archived or the live shape, depending on task state
- `404` — Not found

## Related pages

- [Read a task file (raw bytes)](./data-plane-task-files-read-a-task-file-raw-bytes.md)
- [List a task's files under a path](./data-plane-task-files-list-a-tasks-files-under-a-path.md)
- [List a task's working-directory files](./data-plane-task-files-list-a-tasks-working-directory-files.md)
- [Delete a task file](./data-plane-task-files-delete-a-task-file.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
