Quietnook Media

A simple client for the Media endpoints of the Quietnook API.

Visitor login

Calls POST /auth/visit with the visitor ID as the bearer credential. On success, the returned session token is saved to the settings below and used for all other requests.

Settings

Saved in your browser only. The token is sent as Authorization: Bearer … on every request.

Upload media

Step 1: request a presigned URL via POST /media/presigned-upload with { fileName, mediaType, mimeType, fileSize }. Step 2: PUT the file to the generated URL. The media type is derived from the file but can be overridden.

Media for a journal

Fetches GET /media/journal/{journalId}.

Media access

Calls POST /media/access with your token.