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`.
Header Parameters
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"
}
]
}Canonical workout sport slugs and display names
Global catalogue (not user-scoped). Safe to cache client-side. These slugs are the valid values for `sport.slug` in both read and write endpoints under `/v1/users/{user_id}/metrics/workouts/summary`.
List supported wearable providers
Returns every supported provider regardless of whether the caller has registered credentials. Safe to cache client-side. `auth_type` indicates the connection flavor (`oauth`, `credentials`, `native`); `supported_resources` lists the canonical metric slugs each provider can supply.