Thrive AI Health
Api reference

Pre-signed URL for uploading files (lab documents, images)

Returns a single-use 15-minute Azure Blob SAS PUT URL. Supported `content_type` values: `application/pdf` (lab documents), `image/jpeg`, `image/png`, `image/webp` (chat attachments). Max 20 MB per upload. Pass the returned `file_url` to the downstream endpoint that consumes the file — for labs, that's `POST /v1/users/{user_id}/labs/upload`.

POST
/v1/uploads

Header Parameters

org-id?string|null
x-user-id?string|null
x-request-id?string|null
traceparent?string|null
Idempotency-Key?|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/v1/uploads" \  -H "Content-Type: application/json" \  -d '{    "filename": "string",    "content_type": "application/pdf"  }'
{
  "data": {
    "upload_url": "string",
    "file_url": "string",
    "expires_at": "2019-08-24T14:15:22Z"
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}