Skip to main content
POST
Makefile Formatter

Authorizations

Authorization
string
header
required

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

Body

application/json
ioMakefileInput
string

Makefile

ioTabWidth
enum<string>

Tab Width

Available options:
8,
4,
2
ioConvertSpacesToTabs
boolean

Convert leading spaces on recipe lines to a tab (required by Make)

ioTrimTrailing
boolean

Trim trailing whitespace

ioNormalizeBlanks
boolean

Normalize blank lines (max 2 consecutive)

ioCollapseAssignSpacing
boolean

Normalize spacing around assignment operators (= := ?= +=)

ioAlignAssignments
boolean

Align consecutive variable assignments

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.