Skip to Content
Upblit
AboutOpen SourceCommunityDeveloperContactPricing
Star on GitHub—Sign in
CTRL K
  • Introduction
    • AI Gateway Overview
    • Documents
    • Tenants
    • API Reference Overview
    • AI Gateway API
    • API Keys API
    • Applications API
    • Authentication
    • Ingest API (SDK)
    • Organizations API
    • Projects API
    • Telemetry API
    • Users API
    • Architecture Overview
    • Database Architecture
    • Multi-Tenancy
    • Security Model
    • Service Boundaries
    • Telemetry Pipeline
  • DeployX CLI
    • Contributing
    • Architecture Rules
    • Coding Guidelines
    • SDK Development
    • Dashboard Overview
    • AI Gateway
    • API Keys
    • Applications
    • Observability
    • Organizations
    • Profile
    • Projects
    • Quickstart
    • Authentication
    • Your First Project
    • Installation
    • Observability Overview
    • Structured Logs
    • Telemetry Flow
    • Distributed Traces
    • SDK Overview
    • Express SDK
    • Go SDK
    • Java SDK (Coming Soon)
    • Python SDK
    • React SDK (Coming Soon)
  • Introduction
    • AI Gateway Overview
    • Documents
    • Tenants
    • API Reference Overview
    • AI Gateway API
    • API Keys API
    • Applications API
    • Authentication
    • Ingest API (SDK)
    • Organizations API
    • Projects API
    • Telemetry API
    • Users API
    • Architecture Overview
    • Database Architecture
    • Multi-Tenancy
    • Security Model
    • Service Boundaries
    • Telemetry Pipeline
  • DeployX CLI
    • Contributing
    • Architecture Rules
    • Coding Guidelines
    • SDK Development
    • Dashboard Overview
    • AI Gateway
    • API Keys
    • Applications
    • Observability
    • Organizations
    • Profile
    • Projects
    • Quickstart
    • Authentication
    • Your First Project
    • Installation
    • Observability Overview
    • Structured Logs
    • Telemetry Flow
    • Distributed Traces
    • SDK Overview
    • Express SDK
    • Go SDK
    • Java SDK (Coming Soon)
    • Python SDK
    • React SDK (Coming Soon)

On This Page

  • Uploading a Document
  • Via Dashboard
  • Via API
  • Supported File Types
  • How Documents Are Stored
  • Listing Documents
  • Deleting Documents
Ai GatewayDocuments

AI Documents

Documents are files uploaded to an AI tenant to serve as a knowledge source.

Uploading a Document

Via Dashboard

  1. Go to /dashboard/ai-gateway
  2. Select a tenant from the list
  3. Click Upload Document or drag a file into the upload area
  4. An animated progress bar shows upload progress
  5. A success or error toast appears on completion

Via API

POST /ai/docs?TenantId={tenantId} Authorization: Bearer {jwt} Content-Type: multipart/form-data file: <your-file>

Response: 200 OK

Supported File Types

Any text-based document format is supported. Common formats:

  • PDF (.pdf)
  • Word documents (.docx)
  • Plain text (.txt)
  • Markdown (.md)

Maximum file size: 10 MB

How Documents Are Stored

  1. The backend receives the multipart upload
  2. The file is sent to Supabase object storage via SupabaseService
  3. The Supabase CDN URL is stored in MongoDB alongside the file metadata
  4. The file is served directly from Supabase’s CDN — not proxied through the backend

Listing Documents

Note: A GET /ai/docs?TenantId={id} endpoint is planned. The dashboard will show uploaded documents per tenant once this is implemented.

Deleting Documents

Note: A DELETE /ai/docs/{docId} endpoint is planned.

Last updated on May 27, 2026
AI Gateway OverviewTenants
Upblit

A student-built observability workbench for logs, traces, metrics, API keys, and AI-assisted incident notes.

OAuthAPI scopesTrace contextRetention notes

Product

  • Architecture
  • Dashboard preview
  • AI docs
  • Security
  • Pricing

Developers

  • Developer docs
  • API reference
  • Changelog
  • GitHub
  • Status

Company

  • Support
  • Contact
  • Docs
  • Dashboard
  • Sign in

Legal

  • Privacy Policy
  • Terms
  • Cookie Policy
  • Acceptable Use
  • Data Retention
  • Data Processing

Copyright 2026 Upblit. All rights reserved.

Built for telemetry review, API operations, and incident response.