All API tools
Formatters
XML Formatter API
GET
/v1/xml-formatter Free tier1 credit / callAuthentication
Send your API key as a bearer token. Create one free in the dashboard.
Authorization: Bearer $TOOLSXPO_KEYParameters
Passed as query-string parameters. Example values shown.
| Name | Example |
|---|---|
| xml | <root><item>1</item></root> |
| indentation |
Example request
curl "https://api.toolsxpo.com/v1/xml-formatter?xml=%3Croot%3E%3Citem%3E1%3C%2Fitem%3E%3C%2Froot%3E&indentation=%20%20" \
-H "Authorization: Bearer $TOOLSXPO_KEY"Response
A standard JSON envelope: { ok, data, meta }. The result is in data (text); meta.credits reports what the call cost.