You must have an active subscription in order to call an API on Open DIPS. You can find your subscription key on your profile page. The subscription key is personal, so make sure you do not share it with others. You must provide the subscription key as an HTTP header (dips-subscription-key) for requests to any Open DIPS API.
The Open DIPS API's use a federated identity provider to authenticate requests. The DIPS Federation Service is an Open ID Connect Provider, meaning that you can use any OpenID Connect library to communicate with it.
To call an API you must first obtain a token from DIPS Federation Service. Once you have obtained the token, you can try the following command which calls the FHIR Patient API using cURL:
-H "dips-subscription-key: 0dd9 ... 0093"
-H "Authorization: Bearer ..."
All requests must be performed using HTTPS since plain HTTP requests will fail. See errors for how to interpret errors when calling the API's.