Read a safety symbol’s artwork
The artwork of a configured safety symbol (safetySymbols in GET /config): symbols/<id>.png or symbols/<id>.svg (the PNG when both exist, as the PDF picks), in the repository at ?ref=, as the PDF prints it. Symbols are configuration, so every reader of the ref may read them. 404 when the ID is not configured or has no artwork (the PDF prints a grey placeholder then, the HTML leaves the symbol out); 422 invalid-content when the bytes are not what the extension says (an .svg that is no SVG, a .png that is no PNG): the type is always read from the bytes. Served as the image routes serve images: Content-Disposition: inline, X-Content-Type-Options: nosniff and a sandboxing Content-Security-Policy, so an SVG can never run a script; show it as an image, never inline its markup. Cached like every content route: private, max-age=31536000, immutable when ?ref= is a commit ID, else private, no-cache with an ETag.
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
id*stringThe safety symbol’s configured ID.
^[a-z][a-z0-9-]*$length <= 64ref?stringBranch, tag or commit ID to read from. Default: the server's CCMS_DEFAULT_REF.
The artwork, as SVG or PNG.
response?unknowncurl -X GET 'http://localhost:3000/symbols/w001'null