My suggestion will be to generate an “API key” (hash value) and pass this using a json request. This way you can authenticate and track the use of the API. Many APIs use “keys” to track and authenticate use. Google Maps, for example, uses only the API key. Where PayPal uses a username, password and key. There are several ways to do this.
I would try to create a one-to-many table that belongs to the user, only for keys. Thus, the user can create more than one hash key for different purposes. (One for reports, one for backups, one for fantastic pie charts that are automatically retrieved from Powerpoint).
source share