Published on: 2024-08-10 18:48:28
The five basic steps when creating an API:
1.
Design
- You want to know what decision making process you want to solve using Decisimo. Based on that you need to prepare data for sending to the decision engine. Rule of thumb is to send all data you have related to a situation about which you want to make a decision.
2.
Selecting instance region
- When selecting an endpoint region for API endpoint, decide based on data privacy and protection rules. Instance is a place where your API endpoint will be established.
You can create as many endpoints as you wish in various regions.
3.
Testing endpoint
- Since you can create and have as many endpoints as you wish, a good guide is to create separate endpoints for testing and production. Everytime before deploying your new decision flow to the production API endpoint, it is a good practice to make a test on a testing API endpoint using your favorite testing tool (Postman or SoapUI).
4.
Request and Response payload
- Decisimo API endpoints consume JSON as input requests sent using method POST. Response from the endpoint is also JSON. The same JSON enriched or changed within decision flow.
5.
Deploy your decision flow
- Build your first decision flow and deploy it to your endpoint to start running automated decision making.
Related Articles
-
Automating Business Lending Approval with Retool and Decisimo
This guide shows how to connect Retool and Decisimo to automate business lending approvals. It covers setting up a Decisimo endpoint, building a Retool application form, calling the decision API, storing the result, and showing the outcome to the user.
-
How to test a decision table properly
Start by defining the table’s purpose. Then iterate. Draft test cases from each condition and action, run them, verify the outcomes, and refine the decision logic until it behaves predictably. Use synthetic datasets and valid value ranges when missing results are acceptable, or use exhaustive, edge-case testing, manually or with a tool, when the table must always return a result.
-
3 minutes guide - Decisimo - Decision Intelligence Services
This 3-minute guide shows how to connect Decisimo, configure decision logic, and test a release before it goes live. It walks through the setup in 3 steps, from API integration to production deployment, so you can start making decisions with a clear process.
-
Integrating external data sources into Decisimo
Decisimo lets you bring external data into decision logic without changing your flow. This article covers three integration paths: REST API, ready-made templates, and a forthcoming data marketplace, along with how each one works and what gets added to your data object.
-
API endpoints explained
This article covers the five basics of creating a Decisimo API endpoint: design, region, testing, payloads, and deployment. It explains how to accept JSON via POST, test safely on separate endpoints, and deploy decision logic.
