Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
indentStyle
enum<string>

Indent Style

Available options:
space,
tab,
indentSize
number

Indent Size

Required range: 1 <= x <= 8
tabWidth
number

Tab Width

Required range: 1 <= x <= 16
endOfLine
enum<string>

End of Line

Available options:
lf,
crlf,
cr,
charset
enum<string>

Charset

Available options:
utf-8,
utf-8-bom,
latin1,
utf-16be,
utf-16le,
maxLineLength
number

Max Line Length

Required range: 0 <= x <= 1000
trimTrailingWhitespace
boolean

Trim trailing whitespace

insertFinalNewline
boolean

Insert final newline

includeHeader
boolean

Include descriptive header comment

overrideMarkdown
boolean

[*.md] — preserve trailing whitespace, no max line length

overrideYaml
boolean

[*.{yml,yaml}] — 2-space indent

overrideJson
boolean

[*.json] — 2-space indent

overrideJs
boolean

[*.{js,jsx,ts,tsx,mjs,cjs}] — 2-space indent

overrideCss
boolean

[*.{css,scss,sass,less}] — 2-space indent

overrideHtml
boolean

[*.{html,htm,xml,svg}] — 2-space indent

overridePython
boolean

[*.py] — 4-space indent (PEP 8)

overrideGo
boolean

[*.go] — tab indent (gofmt)

overridePhp
boolean

[*.php] — 4-space indent (PSR-12)

overrideRuby
boolean

[*.rb] — 2-space indent

overrideMakefile
boolean

[{Makefile,makefile,GNUmakefile}] — tab indent (required by make)

overrideBat
boolean

[*.{bat,cmd}] — CRLF line endings

Response

Tool output

outputs
object
required
tool
string
required

The tool's slug, echoing the {slug} in the request path.

tool_version
string
required

Output-contract version for this tool.

credits_used
integer
required

Credits this call consumed, after any settlement refund. 0 when metering is disabled.

credits_remaining
integer | null
required

Credits left in the current monthly allowance, or null when metering is disabled.

request_id
string

Correlation id, also sent as x-request-id.