For the complete documentation index, see llms.txt. This page is also available as Markdown.

🔢Recipe Calculation

Endpoint: /prescription-calculator

API URL

Request Method: GET

Request Parameter

parameter
type
definition
compulsory

token

integer

Web token generated from the API keys page or retrieved via the /web-token method.Web Token

yes

ids

integer

Comma-separated IDs of the drugs to be used in the prescription calculation module. You can obtain these IDs using the 💊 Medication List method.

yes

Steps for Use

To use the prescription calculation module, you first need a web-token. You can obtain this token as described on the 🔑 Web Token page. You can also access your active token information on the API Keys page at vapi.co.

In addition to the web-token, you need to define the URL of the website where you will be using this module. If a request originates from anywhere other than this site, you will not be able to access the module. You can set this configuration on the API Keys page at vapi.co as well.

Once you have defined your token and website URL, you can integrate it into your site as follows:

<iframe src="https://www.vapi.co/prescription-calculator?token=266a7d3066a0a4b7d38ad143188bbf40e893c2d2&ids=3195,3196"></iframe>

Restrictions

  • Website address check

  • Web Token Check

Answer

The returned response is an HTML page. You can find an example screenshot below.

Last updated