---
title: "Get file details"
method: GET
path: "/api/v1alpha1/assistant/trademe/files/{file_id}"
tags: ["v1alpha1"]
---

# Get file details

`GET /api/v1alpha1/assistant/trademe/files/{file_id}`

## Request

- Base URL: `https://api.trademeai.co.nz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.trademeai.co.nz/api/v1alpha1/assistant/trademe/files/{file_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/trademeai/apis/trade-me-ai-platform/docs/api/v1alpha1/assistant/trademe/files/:file_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns one file's details, including a pending upload. A file that belongs to another member, another assistant or does not exist answers the same 404.

## Path parameters

- `file_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- FileResource: Metadata for one file — the shape both ``GET /files`` (list) and ``GET /files/{file_id}`` (single) return. Never carries a signed URL; resolving bytes is ``GET /files/{file_id}/content``'s job alone.
  - `fileId` string, required
  - `ref` string, required
  - `state` string, required
  - `contentType` string, required
  - `sizeBytes` integer, nullable
  - `createdAt` string, date-time, nullable
  - `caption` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-08-17** `4a6ad0ee6b5e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trademeai/apis/trade-me-ai-platform/changes/api/v1alpha1/assistant/trademe/files/:file_id/get.md)

---

[API](https://skmtc.dev/trademeai/apis/trade-me-ai-platform.md) - [All operations](https://skmtc.dev/trademeai/apis/trade-me-ai-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/trademeai/apis/trade-me-ai-platform/revisions/1164c8a5c534?raw)
