MCP is live.Set upAsk the community
OmniDimension
Knowledge base

Upload file to knowledge base

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

POST/knowledge_base/create
Body
3 fields
·

Reseller keys only: act as one of your clients by its user id. Omit it to act on your own account. [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).

Base64-encoded file content.

Filename including the .pdf extension.

curl -X POST 'https://omnidim.io/api/v1/knowledge_base/create' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "user_id": 1234,
  "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
headerAuthorizationBearer <token>

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

Request Body

application/json
user_id?ClientUserId

Reseller keys only: act as one of your clients by its user id. Omit it to act on your own account. How acting for a client works.

file*string

Base64-encoded file content.

filename*string

Filename including the .pdf extension.

Response body

application/json

Response Body

Uploaded file metadata.

application/json
success?boolean
message?string
file?

A file uploaded to the knowledge base.

Was this page helpful?