Skip to main content
Upload image
curl --request POST \
  --url https://{tenantId}.api.nestmed.com/api/v1/visits/{visitId}/images \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form imageType=wound \
  --form 'caption=<string>' \
  --form 'anatomicalLocation=<string>' \
  --form 'measurements={}' \
  --form captureTime=2023-11-07T05:31:56Z
{
  "imageId": "<string>",
  "taskId": "<string>",
  "status": "queued"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string<uuid>

A unique key (e.g., UUID) to ensure a POST request is processed only once. If a request with the same key is received again within 24 hours, the original response will be returned without creating a new resource.

Path Parameters

visitId
string
required

Body

multipart/form-data
file
file
required
imageType
enum<string>
required
Available options:
wound,
medication,
environment,
equipment,
skin,
edema,
surgicalSite,
documentation,
other
caption
string
required
anatomicalLocation
string
measurements
object
captureTime
string<date-time>

Response

202 - application/json

Image accepted for processing.

imageId
string
required

The unique identifier for the uploaded image.

taskId
string
required

Task ID to poll for processing status (analysis, measurements).

status
enum<string>
required

Initial processing status.

Available options:
queued,
processing