Skip to content

Upload Image

Uploads an image (multipart) for Card Creator and registers it in Cards images.

Terminal window
curl --request POST \
--url 'https://lxp.prod.api.toolzz.media/upload/image' \
--header 'Authorization: Bearer <token>' \
--form 'image=@./cover.png'
{
"success": true,
"source": "https://assets.example/cards/cover.png",
"images_id": 881
}

ParameterTypeDescriptionRequired
imagefileMultipart file field.Yes
AuthorizationStringAdmin JWT.Yes

HTTPCodeWhen
400Missing file / invalid MIME or size
401unauthenticatedMissing/invalid JWT
403permission_deniedNot an admin

  • Admin only. Object storage uses CardsS3* secrets (R2/S3-compatible).