note

Start a photo upload for note generation: returns a presigned PUT URL

post/note/generate/upload-url

Request

  • Base URL
    https://api.focusbear.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

content_type'image/png' | 'image/jpeg' | 'image/webp' required

MIME type of the photo the client will upload

file_sizenumber required

File size in bytes, up to 10 MB

Response

image_idstring required

Id of the uploaded photo; pass it to POST /note/generate

upload_urlstring required

Presigned URL to PUT the raw file bytes to

upload_headersobject required

Headers the PUT must send exactly (the signature covers them)

upload_url_expires_atstring required

When upload_url stops working (ISO 8601)

Example response

{
  "upload_headers": {
    "Content-Type": "image/jpeg"
  }
}

Changes

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