Pharmacy
Messaging
Attachments Attachments

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

FieldTypeRequiredDetails
filenamestringYesminLength: 1, maxLength: 255
mimeTypestringNomaxLength: 100
sizeBytesintegerNo

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"}'