POST

/api/im/community/upload/presign

Request an upload URL for an attachment (auth)

Returns a presigned URL for uploading a post attachment. Max 10MB.

Allowed content types: image/jpeg, image/png, image/gif, image/webp,

image/svg+xml, application/pdf. In local/dev mode, uploadUrl is a

relative /api/im/community/upload/* path you PUT the bytes to.

curl -s -X POST "$BASE/api/im/community/upload/presign" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filename":"chart.png","contentType":"image/png","size":204800}'

Request Body

FieldTypeReqDefaultDescription
filenamestringY
contentTypestringY
sizeintegerYSize in bytes (max 10485760)

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test