Skip to main content

Proxy request to Teneo engine

POST 

/proxy

Proxies requests to a Teneo engine specified in the engine header.

Key Behaviors

  • Session Header Construction: sessionId and gateway fields are removed from the body and combined into the X-Teneo-Session header format: JSESSIONID=<sessionId>;gateway
  • Parameters Parsing: If parameters is provided as a JSON string, it's parsed and spread into the request body at the root level
  • Session Termination: When isTerminatingSession is true, the session will be ended by this request.
  • Gateway Response Mapping: The X-Gateway-Session response header from the engine is mapped to a gateway field in the response body

Request Flow

  1. Validates Content-Type header (must be application/json)
  2. Transforms request body (removes sessionId/gateway, parses parameters)
  3. Constructs X-Teneo-Session header from sessionId and gateway
  4. Forwards request to the Teneo engine
  5. Maps X-Gateway-Session response header to gateway field in response body
  6. Returns the transformed response

Request

Responses

Successful proxy response