SparkientDocs
Api reference

Export

GET
/api/v1/decision-types/{decision_type_id}/export

Export the active policy as a standalone edge bundle (ZIP).

Returns a ZIP file containing the ONNX model, feature config, CEL rules, and metadata. The bundle can be loaded with EdgePredictor.from_bundle() for offline inference.

Authorization

AuthorizationBearer <token>

A 64-character hexadecimal Sparkient API key. Create a key in the Sparkient dashboard and send it as Authorization: Bearer YOUR_API_KEY.

In: header

Path Parameters

decision_type_id*Decision Type Id
Formatuuid

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/decision-types/497f6eca-6276-4993-bfeb-53cbbbba6f08/export"
null