Create Upload Intent
Create a pre-signed URL for uploading an attachment
Overview
- Method: POST
- Path:
/pharmacy/messaging/attachments/attachments - Tags: pharmacy
Parameters
No parameters required.
Request Body
- Content Type:
application/json - Required: Yes
Fields
| Field | Type | Required | Details |
|---|---|---|---|
| filename | string | Yes | minLength: 1, maxLength: 255 |
| mimeType | string | No | maxLength: 100 |
| sizeBytes | integer | No |
Responses
200
Successful response
Content Type: application/json
{
"attachmentId": "string",
"uploadUrl": "string",
"storageKey": "string",
"expiresAt": "string"
}400
Bad Request
Content Type: application/json
{}401
Unauthorized
404
Not Found
500
Internal Server Error
Example Usage
curl -X POST \
https://api.pillexa.com/pharmacy/messaging/attachments/attachments \
-H "Content-Type: application/json" \
-d '{"example": "data"}'