Account authentication

This function is used to check if the given API Token and Private Key working.

All requests to the API service of BTM will be authenticated by the Token and Private Key value in the request's header

POST https://api.btm-service.work/v2/verify-authenticate

After the partner registers and activates the account on the system, the partner's account will receive the API token and Private Key

Headers

Name
Type
Description

private_key

string

Provided after completing the registration process.

Token

string

Provided after completing the registration process.

{
    "success": true,
    "message": "Company Information"
}
<?php
    $curl = curl_init('https://api.btm-service.work/v2/authentication-check');
    
    curl_setopt_array($curl, array(
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => "POST",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => array(
            "Token: your-API-token-key",
            "private_key: your-private-key"
        ),
    ));
    
    response = curl_exec($curl);
    curl_close($curl);
    
    echo 'Response: ' . $response;
?>

Last updated