Health check

GET
/api/health

Returns the health status of the API

Response Body

application/json

curl -X GET "https://loading/api/health"
{
  "status": "ok"
}

Upload a PDF attachment

POST
/api/attachments

Authorization

ApiKeyAuth
x-api-key<token>

API key (sk_...). Authorization: Bearer sk_... is also accepted.

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/api/attachments"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "fileName": "string",
  "mimeType": "string",
  "fileSize": 0,
  "storagePath": "string",
  "status": "string",
  "progress": 0,
  "downloadUrl": "string",
  "createdAt": "string"
}
Empty
Empty
Empty

Download the PHI-redacted PDF

GET
/api/attachments/{id}/download

Authorization

ApiKeyAuth
x-api-key<token>

API key (sk_...). Authorization: Bearer sk_... is also accepted.

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/pdf

curl -X GET "https://loading/api/attachments/497f6eca-6276-4993-bfeb-53cbbbba6f08/download"
"string"
Empty
Empty
Empty

Get the account's Business Associate Agreement status

GET
/api/baa

Authorization

ApiKeyAuth
x-api-key<token>

API key (sk_...). Authorization: Bearer sk_... is also accepted.

In: header

Response Body

application/json

curl -X GET "https://loading/api/baa"
{
  "currentVersion": "string",
  "accepted": true,
  "acceptance": {
    "version": "string",
    "acceptedAt": "string",
    "organizationName": "string",
    "signerName": "string",
    "signerTitle": "string",
    "signerEmail": "string"
  },
  "downloadUrl": "string"
}
Empty

Accept the current Business Associate Agreement for this account

POST
/api/baa/accept

Authorization

ApiKeyAuth
x-api-key<token>

API key (sk_...). Authorization: Bearer sk_... is also accepted.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/api/baa/accept" \  -H "Content-Type: application/json" \  -d '{    "organizationName": "string",    "signerName": "string"  }'
{
  "currentVersion": "string",
  "accepted": true,
  "acceptance": {
    "version": "string",
    "acceptedAt": "string",
    "organizationName": "string",
    "signerName": "string",
    "signerTitle": "string",
    "signerEmail": "string"
  },
  "downloadUrl": "string"
}
Empty
Empty

Download the Business Associate Agreement

GET
/api/baa/download

Returns the executed copy of the most recently accepted version, or an unsigned copy of the current version if the account has not accepted yet.

Authorization

ApiKeyAuth
x-api-key<token>

API key (sk_...). Authorization: Bearer sk_... is also accepted.

In: header

Response Body

application/pdf

curl -X GET "https://loading/api/baa/download"
"string"
Empty