Get a unit's photo thumbnail
Redirects to the thumbnail of the unit's main photo. A unit with no photo redirects to MagicDoor's stock unit thumbnail.
Authorization
AuthorizationstringrequiredBearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.
Path parameters
unitIdstringrequiredSnowflake id of the unit, as a decimal string.
example: 1830472847398404098
Response
302 · `Location` points at the `thumb` variant of the uploaded file, or at MagicDoor's stock unit thumbnail when the unit has no photo.
401 · The access token is missing, expired, or not for this company.
404 · No unit with that id, or it belongs to another company.
This returns a redirect, not an image
The response is a 302 with a Location header — follow it to get the bytes. The .webp in the path is part of the route name, not a conversion instruction: the file you land on keeps whatever format it was uploaded in.
The fallback hides missing photos
A unit with no photo, and a unit whose photo has gone missing from file storage, both redirect to the same MagicDoor stock image. If you need to know whether a real photo exists, read imageId from the unit instead.