OPTT Architecture Overview

An introduction to the OPTT system.

An introduction to the OPTT system and how to connect to the APIs of this system

We have provided some guides to help you get up and running as quickly as possible, and we are excited to have you on board. What follows is a technical explanation of OPTT's API integration process.

Integration Overview

Integrating OPTT's API into any other application involves two main components of our platform:

  • UAA (User Authentication and Authorization): A web service to mint tokens for your users
  • Data API: Endpoints to pull users' data from

To grasp how the integration with OPTT's API works, it is helpful to refer to the following diagram; in which it is assumed that you have a server-side and a client-side application (in orange). OPTT API's components and actions are shown in blue.

721

1: Care Provider's application calls OPTT's authentication service to request for a token, using the username and password that they have already been provided by OPTT. OPTT responds to their application with a token.

2: Care Provider's application calls OPTT's Data API to fetch the user’s data using the access token. The user’s data will be sent to the Care Provider in a normalized JSON format by OPTT.

Setting up Care Provider's Access Credentials

Care Provider's application will need credentials for the "Request" for getting the token. To do so, please contact the sales representative at OPTT API for a set. If you do not know your sales representative, please contact [email protected] to submit your request. Your contact at OPTT API must create applications on your behalf.

We will provide each Care Provider, with 3 test tokens for their convenience. These tokens can be used to test our system even before requesting the credentials. Please note that in this view, we have already created a Clinic for the Care Provider's convenience and they just need to use the following APIs to build inside the Clinic.

Client Token:

eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjM3NTgyMDY0ODksInVzZXJfbmFtZSI6ImxhbGVoQGNpdHJvbml0eS5jb20iLCJhdXRob3JpdGllcyI6WyJDTElFTlQiXSwianRpIjoiNGNhZTIyMDQtMWNkNi00NTJmLWFmOGItYjc0NWZkMjdmMGYxIiwiY2xpZW50X2lkIjoib3B0dC0wMmVlNzdkYy1hYzQ1LTQzNDQtODE3ZS0xN2NhNTJiNThiNWQiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXX0.PON3BpI5KnDGxNHV3G-SfMiWDTcb2SQJJ5m5Mr9fKep_AMLSeJIeZzpnH6QSI2p_jgsaPZk9KYid7KJnfnjgLDYlQYQxj2fhvdyOkl6UY4OVwe1Vgr-3Zh6hibwDrrCcGUWQ_T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