Ask Kevin is smarter.
OmniDimension
Knowledge base

Upload file to knowledge base

Upload a PDF file. The file content must be Base64 encoded.

POST/knowledge_base/create
Body
2 fields
·

Base64-encoded file content.

Filename including the `.pdf` extension.

curl -X POST 'https://backend.omnidim.io/api/v1/knowledge_base/create' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "filename": "sample.pdf"
}'
Example response
{
  "success": true,
  "message": "File uploaded successfully",
  "file": {
    "id": 964,
    "name": "sample.pdf",
    "original_filename": "sample.pdf",
    "file_size": 524288,
    "mime_type": "application/pdf",
    "upload_status": "uploaded",
    "upload_date": "05/08/2026 10:30:00",
    "user_id": 1234,
    "user_name": "Demo User",
    "organization_id": 14
  }
}

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token authentication. Obtain your API key from the OmniDimension dashboard.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json