Skip to main content
POST
/
cards
/
{cardPublicId}
/
attachments
/
upload-url
Generate presigned URL for attachment upload
curl --request POST \
  --url https://kan.bn/api/v1/cards/{cardPublicId}/attachments/upload-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "filename": "<string>",
  "contentType": "<string>",
  "size": 26214400
}'
{
  "url": "<string>",
  "key": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

cardPublicId
string
required
Minimum length: 12

Body

application/json
filename
string
required
Required string length: 1 - 255
contentType
string
required
size
number
required
Required range: 0 < x <= 52428800

Response

Successful response

url
string
required
key
string
required