How do you create an API endpoint

Published on: 2024-08-10 18:48:28

The five basic steps for creating an API:
1.

Design

  • Define the decision logic you want to solve with Decisimo. Then prepare the data you will send to the decision engine. As a rule, send all data you have for the situation you want to evaluate.
2.

Selecting instance region

  • When you choose an endpoint region for the API endpoint, base the choice on data privacy and protection rules. The instance is where your API endpoint will be established.
    You can create as many endpoints as you need in different regions.
3.

Testing endpoint

  • Because you can create multiple endpoints, create separate ones for testing and production. Before you deploy a new decision flow to production, test it on the testing API endpoint with your preferred tool, such as Postman or SoapUI.
4.

Request and Response payload

  • Decisimo API endpoints consume JSON input sent with the POST method. The response is also JSON. It returns the same JSON, enriched or changed within the decision flow.
5.

Deploy your decision flow

  • Build your first decision flow and deploy it to your endpoint to start automated decision making.
Decisimo decision engine

Try our decision engine.