media

Stream Og Image

Stream Open Graph image file through authenticated endpoint.

This endpoint serves OG image files (social sharing preview images) with proper authentication via API key middleware. Supports both local filesystem and Hetzner fallback. Each image request counts as an API call.

Args: filename: Image filename (e.g., 'og-male-Barbell-barbell-curl-front.jpg'). settings: Application settings injected via dependency.

Returns: FileResponse or StreamingResponse with the image file.

Raises: HTTPException: 403 if path attempts to escape media directory. HTTPException: 404 if image file not found anywhere.

Example: GET /stream/images/og_images/og-male-Barbell-barbell-curl-front.jpg

get/stream/images/og_images/{filename}

Request

  • Base URL
    https://api.musclewiki.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Path parameters

filenamestring required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 4 revisions of this API.