POST /media/image
Upload a logo: the raw image bytes as the body (image/png, jpeg, gif or webp, up to 5 MB).
POST https://marketmayhem.co/api/v1/media/imageThe image itself: raw bytes, with Content-Type image/png, image/jpeg, image/gif or image/webp. Up to 5 MB.
Response
Section titled “Response”| Field | Type | Required | Meaning |
|---|---|---|---|
url | string | yes | |
type | string | yes | |
bytes | integer | yes |
Errors
Section titled “Errors”Every error is { "error": { "code", "message", "fix"? } }. This endpoint can answer:
UNSUPPORTED_IMAGE: The image is not PNG, JPG, GIF or WebP, or the upload body is not the image itself.IMAGE_TOO_LARGE: The image is larger than 5 MB.INVALID_IMAGE: The image link could not be used.UPLOADS_BUSY: Uploads are busy right now.STORAGE_UNAVAILABLE: The image could not be stored just now. Nothing was launched.RATE_LIMITED: Too many requests from this address in the last minute.