indexing
Validate Parsing Script
Validate a JavaScript parsing script without running it against real data.
Upload your .js file as multipart/form-data under the file field. The endpoint runs the same V8 sandbox that json_handler uses at indexing time, so a script that validates here will work when you index files.
Checks:
- JavaScript syntax parses cleanly
- Script exports a default function
Returns HTTP 200 for both valid and invalid scripts — valid: false is a business-logic result, not an HTTP error. 4xx/5xx responses indicate auth failures, malformed requests, or service unavailability.
post/v2/parsing-scripts/validate
Headers
authorizationstring nullable
Response
Successful Response