Skip to main content
GET
/
api
/
admin
/
upload
/
{id}
Get upload by ID
curl --request GET \
  --url https://pria.praxislxp.com/api/admin/upload/{id} \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "data": {
    "_id": "<string>",
    "filename": "<string>",
    "originalname": "<string>",
    "mimetype": "<string>",
    "thumbnail": "<string>",
    "created": "2023-11-07T05:31:56Z",
    "filesize": 123,
    "user": {
      "_id": "<string>",
      "email": "jsmith@example.com",
      "fname": "<string>",
      "lname": "<string>"
    },
    "institution": {
      "_id": "<string>",
      "name": "<string>"
    },
    "account_shared": false,
    "collection": "<string>",
    "file_summary": "<string>",
    "file_title": "<string>",
    "file_authors": "<string>",
    "file_url": "<string>",
    "source_url": "<string>",
    "embed_url": "<string>",
    "file_dimensions": "<string>",
    "tokens_used": 0,
    "is_public": false,
    "is_private": false,
    "embeddings_model": "<string>",
    "summary_model": "<string>",
    "image_analysis_model": "<string>",
    "audio_analysis_model": "<string>",
    "googleDriveFileId": "<string>",
    "googleDriveModifiedTime": "2023-11-07T05:31:56Z",
    "ragHitCount": 0,
    "lastRagHitAt": "2023-11-07T05:31:56Z",
    "vaultHealthScore": 123,
    "downloadCount": 0,
    "lastDownloadAt": "2023-11-07T05:31:56Z",
    "diskMissCount": 0,
    "diskMissFirstAt": "2023-11-07T05:31:56Z",
    "batchId": "<string>",
    "history": "<string>",
    "replacedBy": [
      "<string>"
    ],
    "ingestion": {
      "progress": 0,
      "attempts": 0,
      "heartbeatAt": "2023-11-07T05:31:56Z",
      "claimedBy": "<string>",
      "lastError": "<string>",
      "errorStack": "<string>",
      "enqueuedAt": "2023-11-07T05:31:56Z",
      "startedAt": "2023-11-07T05:31:56Z",
      "completedAt": "2023-11-07T05:31:56Z",
      "counts": {
        "total": 0,
        "sanitized": 0,
        "embedded": 0
      },
      "sanitizeSkippedCount": 0
    },
    "embeddings": [
      "<string>"
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

id
string
required

Upload ID (Mongo ObjectId)

Response

Upload retrieved successfully

success
boolean
data
object

Admin view of an upload row. Mirrors the persisted shape from routes/models/upload.js, with two admin-handler shape changes: (1) thumbnail is returned as a base64-encoded string instead of a Buffer, and (2) an embeddings array of chunk text strings is appended when the embeddings DB connection is ready.