Nhost · Schema

FileMetadata

Metadata for a file stored in Nhost Storage, including identity, size, type, and bucket association.

GraphQLPostgreSQLAuthenticationFile StorageServerless FunctionsReal-TimeOpen-SourceFirebase AlternativeBackend-as-a-Service

Properties

Name Type Description
id string Unique identifier for the file.
name stringnull Original file name as provided at upload time.
size integernull File size in bytes.
mimeType stringnull MIME type of the file content.
etag stringnull ETag hash of the file content for cache validation.
createdAt stringnull ISO 8601 timestamp when the file was created in storage.
updatedAt stringnull ISO 8601 timestamp when the file metadata was last updated.
isUploaded booleannull Whether the file upload has been completed successfully.
bucketId stringnull Identifier of the bucket containing this file.
uploadedByUserId stringnull ID of the user who uploaded this file.
View JSON Schema on GitHub

JSON Schema

nhost-file-metadata-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nhost.io/schemas/file-metadata",
  "title": "FileMetadata",
  "description": "Metadata for a file stored in Nhost Storage, including identity, size, type, and bucket association.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for the file.",
      "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    },
    "name": {
      "type": ["string", "null"],
      "description": "Original file name as provided at upload time.",
      "example": "profile-photo.jpg"
    },
    "size": {
      "type": ["integer", "null"],
      "description": "File size in bytes.",
      "example": 204800
    },
    "mimeType": {
      "type": ["string", "null"],
      "description": "MIME type of the file content.",
      "example": "image/jpeg"
    },
    "etag": {
      "type": ["string", "null"],
      "description": "ETag hash of the file content for cache validation.",
      "example": "\"d41d8cd98f00b204e9800998ecf8427e\""
    },
    "createdAt": {
      "type": ["string", "null"],
      "format": "date-time",
      "description": "ISO 8601 timestamp when the file was created in storage.",
      "example": "2024-03-15T14:22:00Z"
    },
    "updatedAt": {
      "type": ["string", "null"],
      "format": "date-time",
      "description": "ISO 8601 timestamp when the file metadata was last updated.",
      "example": "2024-03-15T14:22:00Z"
    },
    "isUploaded": {
      "type": ["boolean", "null"],
      "description": "Whether the file upload has been completed successfully.",
      "example": true
    },
    "bucketId": {
      "type": ["string", "null"],
      "description": "Identifier of the bucket containing this file.",
      "example": "default"
    },
    "uploadedByUserId": {
      "type": ["string", "null"],
      "format": "uuid",
      "description": "ID of the user who uploaded this file.",
      "example": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
    }
  },
  "required": ["id"]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/nhost-file-metadata"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.