Skip to main content

POST /api/v1/events/{id}/image

Uploads a cover image for an event. The image is stored in Cloudflare R2 and the resulting URL is saved on the event. Accepts multipart/form-data with the image file in the image field.

Authentication​

Required. User must be the event Creator or an Admin.

Request​

ParameterTypeInDescription
idint64pathRequired. Numeric event ID
imagefileform-dataRequired. Image file (JPEG, PNG, WebP)

Example​

curl -X POST "https://api.intotes.com/api/v1/events/1/image" \
-H "Authorization: Bearer <access_token>" \
-F "image=@/path/to/event-cover.png"

Response​

200 OK​

{
"image_url": "https://images.intotes.com/events/1.png"
}

403 Forbidden​

{
"error": "insufficient permissions"
}

404 Not Found​

{
"error": "event not found"
}