Assets

Upload an image

Send multipart/form-data with a file field, or JSON with base64 data. Maximum 5MB. Allowed: jpeg, png, gif, webp, svg. Returns the CDN url to use as ogImage or inside page code.

post/api/v1/assets

Request

  • Base URL: https://usewait.com
  • URL: https://usewait.com/api/v1/assets
  • Auth: HTTP bearer

Request body

datastring required

Base64 encoded file contents.

contentTypestring required
fileNamestring

Example request

{
  "contentType": "image/png"
}

Response

The uploaded asset.

urlstring uri

Changes

No recorded changes to this operation across all 1 revision of this API.