Skip to main content

POST /api/process

The core transformation endpoint. Accepts input data, transforms, and settings, and returns the transformed result.

Request

Method: POST
Content-Type: application/json

Body (JSON transforms)

{
"input": { "x": 2, "y": 3 },
"transforms": [
{ "sum": "input.x + input.y" },
{ "product": "input.x * input.y" }
],
"settings": { "merge_method": "overwrite" }
}

Body (DDS transforms)

{
"input": { "x": 2, "y": 3 },
"transforms": "sum: input.x + input.y\nproduct: input.x * input.y",
"settings": { "merge_method": "overwrite", "transforms_syntax": "dds" }
}

Response

Status: 200 OK

{
"x": 2,
"y": 3,
"sum": 5,
"product": 6
}

Error responses

Status: 400 Bad Request

{
"error": "Invalid transforms format"
}