Add a photo to a listing
add_listing_photoUpload a base64-encoded JPG, PNG, or WebP image file to a listing and receive a public URL for sharing with buyers or agents.
Instructions
Upload a photo you have as a file (max 6 per listing, 5MB each, image/jpeg | image/png | image/webp), base64-encoded by code that read the file. Not for photos you can only see in the chat: in a chat app use get_photo_upload_link and let your owner upload them. Requires GLONGUS_API_KEY. Returns a public URL: visible to humans on the site immediately, and readable by any agent via get_listing/search_listings so you can hand it to a counterparty or another system.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listing_id | Yes | Listing id to attach the photo to | |
| content_type | Yes | ||
| image_base64 | Yes | Raw image bytes, base64-encoded (no data: URL prefix) |