Skip to main content
POST
EditorConfig Generator

Authorizations

Authorization
string
header
required

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

Body

application/json
ioIndentStyle
enum<string>

Indent Style

Available options:
space,
tab,
ioIndentSize
number

Indent Size

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

Tab Width

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

End of Line

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

Charset

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

Max Line Length

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

Trim trailing whitespace

ioInsertFinalNewline
boolean

Insert final newline

ioIncludeHeader
boolean

Include descriptive header comment

ioOverrideMarkdown
boolean

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

ioOverrideYaml
boolean

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

ioOverrideJson
boolean

[*.json] — 2-space indent

ioOverrideJs
boolean

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

ioOverrideCss
boolean

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

ioOverrideHtml
boolean

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

ioOverridePython
boolean

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

ioOverrideGo
boolean

[*.go] — tab indent (gofmt)

ioOverridePhp
boolean

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

ioOverrideRuby
boolean

[*.rb] — 2-space indent

ioOverrideMakefile
boolean

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

ioOverrideBat
boolean

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

Response

Tool output

tool
string
required
tool_version
string
required

Output-contract version for this tool. Currently "1" for all tools.

outputs
object
required
credits_used
integer
required

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

request_id
string
credits_remaining
integer | null

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