eldr.ai | ELDR AI - Predictions & Recommendations via API



Navigate to "Ask ELDR" via the Dashboard, side bar or nav menu, and select your Model and Model Variant using the top two drop downs.

You can toggle any of the Ask Methods (e.g. Form, API etc) by clicking on them.

Click on the API heading:

ELDR AI Ask via API

Requesting Predictions and Recommendations from ELDR AI is straightforward.

The URL to send the request to is https://eldr.ai/api/ask-eldr/{ModelId} (red box). Model Id will be shown by default in the API section - in this case "287".

We have provided both GET and POST Methods to send the HTTPS request. We have recommended POST simply due to the fact it is best practice to send requests such as this (with a Body) via POST, however it won't make any difference if you send via GET instead.

The full API Body to send is shown on the left hand side (blue box). By default, by way of example a Body will be automatically created for you so you can use it for testing/templates. The example will consist of 2 randomly generated "inputs" within range e.g. to get 2 sets of Predictions and Recommendations. Obviously you can send in as many inputs as you want.

Click on the "ASK ELDR (API)" button to get a response via API - this will be a real response based on the API Body on the left. This is to there to emulate what you would get back in the API Output section (grey box) for reference, testing and debugging.

Let's explore the API Body and API Output in more detail

API Body

The API Body to send in with your request is JSON.

That's all you need to send in to get Predictions and Recommendations from ELDR AI.

API Response

Now let's examine the response (API Output) in more detail:

The response comes back in JSON and should be fairly self explanatory: