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

Haystack / deepset Files API

Upload, list, delete, and annotate files; manage upload sessions.

Haystack / deepset Files API is one of 6 APIs that Haystack / deepset 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, API documentation, and an API reference.

This API exposes 7 operations across 5 paths, and defines 4 schemas. It is described by OpenAPI 3.0.1, at version 1.0.

Requests are made against 2 base URLs: https://api.cloud.deepset.ai, https://api.us.deepset.ai.

7 operations 5 paths 4 schemas 1 DELETE2 GET1 PATCH2 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
1.0
Base URL
https://github.com/deepset-ai/haystack
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

Haystack / deepset Files API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — API key generated in the deepset AI Platform UI, sent as a Bearer token.

Paths & Operations 7

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

Files 7

Upload, list, delete, and annotate files; manage upload sessions.

GET
/api/v1/workspaces/{workspace_name}/files
List files
listFiles 2 params → 200
POST
/api/v1/workspaces/{workspace_name}/files
Upload a file
uploadFile 2 params body → 201
DELETE
/api/v1/workspaces/{workspace_name}/files/{file_id}
Delete a file
deleteFile 2 params → 204
PATCH
/api/v1/workspaces/{workspace_name}/files/{file_id}/meta
Update file metadata
updateFileMeta 2 params body → 200
POST
/api/v1/workspaces/{workspace_name}/upload_sessions
Create an upload session
createUploadSession 1 param → 201
GET
/api/v1/workspaces/{workspace_name}/upload_sessions/{session_id}
Get upload session details
getUploadSession 2 params → 200
PUT
/api/v1/workspaces/{workspace_name}/upload_sessions/{session_id}
Close an upload session
closeUploadSession 2 params body → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are File (5 properties), UploadSession (3 properties), FileList (2 properties), FileUpload (2 properties). Each schema is shown below with its type and property counts.

FileUpload
object
2 properties
FileList
object
2 properties
UploadSession
object
3 properties
File
object
5 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

haystack-ai-files-api-openapi.yml Raw ↑

Other APIs Haystack / deepset publishes across the network.

Haystack Framework (Open Source)
Hayhooks REST Deployment
Haystack / deepset Pipelines API
Haystack / deepset Search API
Haystack / deepset Workspaces API