Using Postman with this app

Call the bridge endpoint (RECEIVE JSON → RUN CSS → SEND TO SAILSREP) directly from Postman. Import the collection, set two variables, and send.

1. Get the collection

Download the ready-to-import Postman collection, or copy the raw JSON and paste it into Postman's Import dialog.

2. Import & configure

  1. 1
    In Postman, click Import (top-left), then drop in the downloaded .json file (or paste the copied JSON via Raw text).
  2. 2
    Open the new Tacton CSS → Sailsrep Bridge collection → Variables tab.
  3. 3
    Set webhookSecret to your INBOUND_WEBHOOK_SECRET value (the same secret the backend expects). Check that baseUrl points to the environment you want, then Save.
  4. 4
    Open the Run quote request and click Send. Edit the JSON body to match your configuration.

Endpoint reference

Method
POST
Published URL
https://tacton-sailsrep-sync.lovable.app/api/public/run-quote
Stable URL (alt)
https://project--b7ead86e-b475-4d22-a40f-9af4830111fb.lovable.app/api/public/run-quote
Required headers
Content-Type: application/json
x-webhook-secret: <INBOUND_WEBHOOK_SECRET>
Example body
{
  "tenant": "https://pvm-admin.tactoncpq.com/!tickets~T-00000256",
  "mode": "standard",
  "chatID": "DEV-ac_1780043967112_19790ca26094",
  "postResponse": "https://prod-backend.sailsrep.ai/api/create-quote-v2",
  "email": "magnus@sailsrep.ai",
  "cpq_mode": "dev",
  "steps": [
    {
      "name": "1_projekt",
      "commits": [
        { "parameter": "house_wall_number_field", "value": "4" },
        { "parameter": "house_planhus_field", "value": "1" }
      ]
    },
    {
      "name": "2_ytterväggar",
      "commits": [
        { "parameter": "wall_wall_direction_field", "value": "+x" },
        { "parameter": "wall_wall_direction_field2", "value": "+y" },
        { "parameter": "wall_length_input_field3", "value": "27000" }
      ]
    }
  ]
}

Responses

200 OK — returns { runId, configId, sailsrepStatus, status }. Open the run at /runs/<runId> to see the full trace, or browse the Runs list.

401 Unauthorized — the x-webhook-secret header is missing or wrong.

400 Bad Request — invalid JSON, or missing required tenant / chatID.