Run Style Agent File
Run a Style Agent check on an uploaded document.
Accepts PDF, Word (.docx), HTML, DITA, Markdown, and plain-text files. The file is uploaded unchanged and its text extracted for you, so the check runs against the document as submitted.
Behaves like POST /style-agent/run otherwise: wait=true blocks for
the result (201 Created), the default returns 202 Accepted with a workflow
id to poll via GET /style-agent/workflows/{workflow_id}. A large file
can take longer than the synchronous request window, so prefer polling for
those.
Issue positions index the extracted text, not the bytes you uploaded; use
each issue’s context_surface to locate it in the original document.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Query parameters
Request
Style guide ID to check the document against. target_id is a deprecated alias for this field; send exactly one of the two names.
Language-service content profile ID for style checking.
Caller-provided document identifier for tracking across scans.
The document to analyze. Text (.txt), Markdown (.md), HTML (.html .htm), DITA (.dita, .xml), Word (.docx), and PDF (.pdf) files are accepted. The max file size is 7 MB.
Response
Caller-provided document identifier.
How this check is counted: 'batch' for a document checked as part of a batch, 'interactive' for a direct /run check.
Owning batch id (agbw_<nanoid>); null unless this is a batch check.
Execution result (if completed)