Warning: Creating default object from empty value in /home/api.bettrapps.work/www/system/vendor/Berlioz/libs/phpfastcache/phpfastcache.php on line 403

Berlioz Warning: is_file(): open_basedir restriction in effect. File(/tpl/index.tpl) is not within the allowed path(s): (/home/api.bettrapps.work/www:/usr/lib/php:/tmp)
BettrApps API

Application keys

To obtain application key, please contact commercial service of Bettr.

With application key, you will get a secret key to maintain in the application side and never pass through the API.

All request on the API are logged to secure the service.

Usage of headers

Some HTTP headers required to call Bettr API.

X-Bettrapps-Application: 4DfG4JrcjkRS99c9
X-Bettrapps-Consumer: iF25CjU3iQ28SY582eS4mNzp5GEf7R4mgeFpd37qU4UZ7P3Pz8p87YCBn46nQaig
X-Bettrapps-Signature: $1$88n79545nn3nkpaw5q7745s94fjs9qzp962a2jcw
X-Bettrapps-Timestamp: 1444846866
X-Bettrapps-Session: 6Z2W8Y47nAH2wu3sHG7p5Z4jw97gsSrvDBH425w4uPrH94GK4awwRD6bg67ZXzNw

Detail of headers :

  • X-Bettrapps-Application* : key provided by bettr, unique to an application
  • X-Bettrapps-Consumer* : key provided by bettr for a specific usage in the application
  • X-Bettrapps-Signature* : signature of request, a check of request is made next bettr (format : SHA256)
  • X-Bettrapps-Timestamp* : to avoid replay, you can add the timestamp of the request
  • X-Bettrapps-Session : the session id provided by API during the first call of them

* required header