Skip to main content

Prescrypto API Docs

Welcome to the complete reference of the Prescrypto REST API. Here you will find the information for all the calls, responses, and errors that are used in the API. All the responses of the API are in JSON.

Authentication​

Authentication keys are used to authenticate all of your API calls via HTTP Token Auth.

Authentication : Token d3sjkT23Stks38jsnUk28012nIn

Authentication keys will be provided through direct comunication, feel free to contact us. They are configured for production mode by default and can either be private for server-side usage or public for use in a browser. Be careful about sharing private keys as they have very powerful privileges.

Free Text Medications​

They are usually text manually by the doctor, without using our product catalog.

Anything can be written on the "presentation" field.

The free medications must contain the "presentation" and "instructions" fields.

Additionally, it is recommended adding the category "unstructured_drug"

// Example for a free medication
{
"presentation": "AlgΓΊn Medicamento Libre", // Observe that "presentatio" field must be filled
"instructions": "Instrucciones para un medicamento libre",
"category": "unstructured_drug"
}

Versioning​

Prescrypto's API it's currently in version 2 (api/v2/) nonetheless some endpoints are still existing in it's version1, please use v2 whenever possible, as the legacy endpoints are not longer supported and may not have the newest fucntionalities.

Postman collection​

Download our postman collection to test our API

Need more information???​

We are rebuilding this documentation page, so some entries are still a work in progress. If something is missing from the documentation, feel free to Contact us.