Easymailing
Booking pages

Upload a booking page image

POST /booking_page_images

POST/booking_page_images

Uploads a PNG, JPEG, GIF or WebP image for a booking page and returns its UUID and public URL. The image belongs to the user and can then be set as host_image_asset_uuid or logo_asset_uuid with update_booking_page.

When to use: To give a page a logo or a custom host photo. Send Content-Type: application/octet-stream and the bytes of the image as the body (not JSON, not multipart).

When not to use: It uploads only; it does not attach the image to any page. A page can only use images uploaded by its own owner. Images for emails or templates are not handled here.

Side effects: The image is stored in the account's public assets, so anyone with its URL can see it. Identical files share one stored copy, but every upload gets its own UUID. Nothing is attached to a page and nothing is sent.

Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. The image belongs to the user who owns the token.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Header Parameters

Content-Type*"application/octet-stream"

Always application/octet-stream. Any other value is refused with 415 before the body is read.

Value in

  • "application/octet-stream"

Request Body

application/octet-stream

The bytes of the image: PNG, JPEG, GIF or WebP, up to 5,000,000 bytes.

TypeScript Definitions

Use the request body type in TypeScript.

body*file
Formatbinary

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://api.easymailing.com/booking_page_images" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/octet-stream" \  -H "Content-Type: application/octet-stream" \  -d 'string'
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "url": "http://example.com"}