Skip to main content
POST
/
api
/
user
/
uploads
Search and retrieve user uploaded files
curl --request POST \
  --url https://pria.praxislxp.com/api/user/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "lean": true,
  "status": {
    "$ne": "deleted"
  },
  "fileNameSearch": "file123"
}'
{
  "success": true,
  "data": [
    {
      "_id": "<string>",
      "filename": "<string>",
      "originalname": "<string>",
      "mimetype": "<string>",
      "created": "2023-11-07T05:31:56Z",
      "filesize": 123,
      "status": "active",
      "thumbnail": "<string>",
      "user": "<string>",
      "institution": "<string>",
      "file_summary": "<string>",
      "file_title": "<string>",
      "file_url": "<string>",
      "tokens_used": 123,
      "is_private": true,
      "file_dimensions": "<string>",
      "file_authors": "<string>",
      "owner_data": {
        "email": "jsmith@example.com",
        "fname": "<string>",
        "lname": "<string>"
      },
      "index": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT token passed in x-access-token header

Body

application/json
lean
boolean

Return minimal data structure

status
object

Search term for filename filtering

Response

Successfully retrieved user uploads

success
boolean

Upload success status

data
object[]

Array of upload records with associated data