Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Nhost files API

File management operations

Nhost files API is one of 14 APIs that Nhost publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include files. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 5 operations across 2 paths, and defines 7 schemas. It is described by OpenAPI 3.0.0, at version 1.0.0.

Requests are made against a single base URL, https://{subdomain}.auth.{region}.nhost.run/v1.

5 operations 2 paths 7 schemas 1 DELETE1 GET1 HEAD1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
1.0.0
Base URL
https://{subdomain}.nhost.run/v1/graphql
Authentication
HTTP Bearer, HTTP Bearer
Resource Areas
1

Authentication & Security 2

Nhost files API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (BearerAuth). It accepts HTTP bearer tokens (BearerAuthElevated).

  • BearerAuth — Bearer authentication with JWT access token. Used to authenticate requests to protected endpoints.
  • BearerAuthElevated — Bearer authentication that requires elevated permissions. Used for sensitive operations that may require additional security measures such as recent authentica…

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 1 GET, 1 HEAD, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

files 5

File management operations

POST
/files
Upload files
uploadFiles body → 201default
DELETE
/files/{id}
Delete file
deleteFile 1 param → 204default
GET
/files/{id}
Download file
getFile 11 params → 200206304412default
HEAD
/files/{id}
Check file information
getFileMetadataHeaders 10 params → 200304412default
PUT
/files/{id}
Replace file
replaceFile 1 param body → 200default

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are FileMetadata (11 properties), UploadFileMetadata (3 properties), UpdateFileMetadata (2 properties), ErrorResponseWithProcessedFiles (2 properties). Each schema is shown below with its type and property counts.

OutputImageFormat
string
Output format for image files. Use 'auto' for content negotiation based on Accept header
RFC2822Date
string
Date in RFC 2822 format
ErrorResponse
object
Error information returned by the API.
1 property
FileMetadata
object
Comprehensive metadata information about a file in storage.
11 properties 9 required
UploadFileMetadata
object
Metadata provided when uploading a new file.
3 properties
ErrorResponseWithProcessedFiles
object
Error information returned by the API.
2 properties
UpdateFileMetadata
object
Metadata that can be updated for an existing file.
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

nhost-files-api-openapi.yml Raw ↑

Other APIs Nhost publishes across the network.

Nhost GraphQL API
Nhost Serverless Functions API
Nhost AI API
Nhost authentication API
Nhost documentation API
Nhost excludeme API
Nhost operations API
Nhost security API
Nhost session API
Nhost storage API
Nhost system API
Nhost user API