Test preprocessing candidate
Run unsaved preprocessing source against one historical trace in the production sandbox with read-only, trace-scoped SQL. Returns the evidence (up to 50 KiB), its size and timing, or failure diagnostics. Saves nothing.
POST
/v1/projects/{projectId}/artifacts/preprocessing-testsAuthorization
AuthorizationPersonal API key · headerrequiredYour personal API key from Settings > Personal API Keys, sent as Bearer <key>.
X-Organization-IdOrganization ID · headerrequiredThe organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.
Path parameters
projectIdstringrequiredRequest body
requiredapplication/jsontrace_idstringrequiredThe historical trace to extract evidence from
min length 1 · max length 128
source_codestringrequiredA complete JavaScript function expression: async ({ traceId, sql }) => { ... }. Return JSON evidence; throw when validation fails.
max length 100000
Responses
200
Response for status 200
resultobjectrequiredShow propertiesHide properties
One of:
object
statusstringrequiredartifact_duration_msnumberrequiredmin 0
evidence_size_bytesintegerrequiredmin 0 · max 9007199254740991
evidenceanyrequiredobject
statusstringrequiredreasonstringrequiredAllowed:
artifact_failedtimeoutevidence_too_largeerrorstringrequiredmax length 2000
artifact_duration_msnumber | nullrequiredShow propertiesHide properties
Any of:
number
numbernull
nullevidence_size_bytesinteger | nullrequiredShow propertiesHide properties
Any of:
integer
integernull
null