curl --request POST \
--url https://app.getaptly.com/api/card/{cardId}/file \
--header 'Content-Type: application/json' \
--header 'x-token: <x-token>' \
--data '
{
"filename": "myphoto.jpg",
"base64": "data:@image/jpeg;base64,..."
}
'{
"fileId": "DNcKJk27qewHTPs6W"
}Post a file to a card instance. The file should be base64 encoded.
curl --request POST \
--url https://app.getaptly.com/api/card/{cardId}/file \
--header 'Content-Type: application/json' \
--header 'x-token: <x-token>' \
--data '
{
"filename": "myphoto.jpg",
"base64": "data:@image/jpeg;base64,..."
}
'{
"fileId": "DNcKJk27qewHTPs6W"
}Your Aptly API Token. Available in the Aptly UI under Card Sources > API.
The unique ID of the card.
File uploaded successfully
"DNcKJk27qewHTPs6W"