IBRA Access Token

Provides a token that allows direct login to the IBRA standalone software from an electronic medical record system (EMR) or from a 3rd party digital health system (DHS). Accessing IBRA via the token will skip the username and password entry normally required by the user.
URL POST https://www.zubisoft.com/api/token

Below an example how the request could look like. Please note the $data['type'] = 'ibralogin' parameter.
$headers = [
    'Content-Type: application/json',
    'X-Public-Key: ' . 'yourPublicKey',
    'X-Private-Key: ' . hash('SHA256', 'yourPrivateKey'),
    'X-User-Key: ' . 'eSignOfYourUser'
];

$data['type'] = 'ibralogin';

$data = json_encode($data);

##### CURL
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://www.zubisoft.com/api/token',
    CURLOPT_HTTPHEADER => $headers,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => 1,
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLINFO_HEADER_OUT => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_POSTFIELDS => $data));

$response = curl_exec($curl);
$info = curl_getinfo($curl);
curl_close($curl);

$obj = json_decode($response,true);
													

The token will expire after 9 hours. Any new token will revoke possibly still active older tokens.

{"token":"TyjtEjW1TPmC1kvAf9JXFJdQ9LmcfjJSpo78hRt3"}
		                  		

The following URL can be used together with the received token (GET) to perform the login. https://www.zubisoft.com/ibra/log/login_token.php?token=YourToken

You can navigate directly to a specific case by using the following link with the received token AND the unique case ID (for example cid=5714034-1). https://www.zubisoft.com/ibra/log/login_token.php?token=YourToken&cid=YourCid