Skip to main content
GET
/
api
/
v1
/
contexts
/
{context_key}
Get file context
curl --request GET \
  --url https://api.uplint.dev/api/v1/contexts/{context_key} \
  --header 'Authorization: Bearer <token>'
{
  "status": "SUCCESS",
  "message": "<string>",
  "data": {
    "context_id": "<string>",
    "context_key": "<string>",
    "tenant_id": "<string>",
    "display_name": "<string>",
    "description": "<string>",
    "allowed_extensions": [
      "<string>"
    ],
    "max_file_size_mb": 123,
    "storage_path_template": "<string>",
    "reject_blank_files": true,
    "reject_corrupt_files": true,
    "scan_for_viruses": true,
    "upload_rate_limit": {
      "max_uploads": 5000,
      "window_seconds": 1800
    },
    "storage_quota_mb": 123,
    "storage_used_bytes": 123,
    "status": "active",
    "metadata": {}
  },
  "timestamp": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Pass an API key or JWT token. API keys can be sent as Authorization: Bearer <key> or Authorization: <key>.

Path Parameters

context_key
string
required

The file context's unique key (e.g. patient_reports).

Response

File context details.

status
enum<string>
Available options:
SUCCESS
message
string
data
object
timestamp
string<date-time>