POST /api/analyze is assigned a shortcode — a short alphanumeric identifier that lets you retrieve or share that specific scan. This endpoint returns the full analysis result for any public scan without requiring authentication, making it useful for embedding results or building share flows.
What is a shortcode?
A shortcode is a short alphanumeric string, such as"abc123", returned in the shortcode field of every POST /api/analyze response. It is generated atomically on insert and is globally unique. You can:
- Retrieve the scan via
GET /api/scans/{shortcode} - Share the scan at
https://www.rhetoricaudit.com/s/{shortcode}
Retrieve a scan
Path parameter
Authentication
No authentication is required to retrieve a public scan. If the scan owner has set it to private (isPublic: false), this endpoint returns 404.
Response
The response shape is identical to aPOST /api/analyze response. All analysis fields are present, including shortcode, cached, isPublic, isOwner, and all FME scoring fields.
See POST /api/analyze for the complete field reference.
Example
Error responses
Toggle scan privacy
Scan owners can control whether their scan is accessible via its shortcode URL.
Response
Privacy is enforced by
device_id rather than account authentication. If you lose the deviceId that was used when the scan was originally created, you will not be able to toggle the privacy of that scan.Health check
GET /api/analyze returns a status object confirming the API is reachable and showing the current version. This is the same endpoint used for the POST analysis — a GET request to it never triggers analysis.
