Perform inference on model version by id and version
const url = 'https://pie.streamline.enterprises/v2/models/model_price_reco_v1/versions/1/inference';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"input":{"route":"Adelaide to Sydney","day_of_week":3},"subscribe":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://pie.streamline.enterprises/v2/models/model_price_reco_v1/versions/1/inference \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "input": { "route": "Adelaide to Sydney", "day_of_week": 3 }, "subscribe": false }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
model_price_reco_v1Example
1Request Body required
Section titled “Request Body required ”object
The inference payload forwarded to the handler
object
When true, stores this input so inference is automatically replayed after the model is retrained
Example
{ "input": { "route": "Adelaide to Sydney", "day_of_week": 3 }, "subscribe": false}Responses
Section titled “ Responses ”A model inference job
object
Example
{ "inference_job_id": "123456789012"}Validation error — malformed input, invalid path parameters, or request that fails syntactic validation.
object
Human-readable error message
Example
{ "success": false}Missing or invalid Authorization bearer token, expired token, or token rejected by the
authorization layer (e.g. API Gateway JWT authorizer or application validation).
object
Human-readable error message
Example
{ "success": false}Authenticated caller lacks the permission required for this operation.
object
Human-readable error message
Example
{ "success": false}Requested resource was not found.
object
Human-readable error message
Example
{ "success": false}Semantically invalid request — e.g. domain not active, no model assigned, feature contract mismatch, or invalid feature definitions.
object
Human-readable error message
Example
{ "success": false}