Skip to content

Keys

To manage API Keys used to grant access to end-points go to menu Components > jBackend > Keys. A list of jBackend Keys will be shown:

jBackend Keys

Each key has the following properties:

Field:Description:
KeyThe enabling key
UserThe user associated to this key (to restrict access with key and to a single user)
Enabled endpointsIf this key is enable on ALL endpoints or ONLY on selected endpoints
Selected endpointsThe endpoints for which the key is enabled, when not enabled for ALL
Enabled on defaultIf the key should also work on the default requests (i.e. /index.php?option=com_jbackend&view=request&...)
Daily requestsMaximum number of daily requests allowed for the key (0 means unlimited)
Expiration dateKey expiration date (0000-00-00 00:00:00 means never expires)
CommentJust a reminder for the key

For each key the following statistics fields are available:

Field:Description:
HitsNumber of times the key was used
Last visitLast time the key was used
Current dayCurrent day for daily requests limit
Current hitsHits of current day for daily requests limit

The API key, when required by the endpoint, must be included in any request using one of the following methods:

  • Adding api_key=<KEY> to the query params (for GET requests);
  • Adding api_key=<KEY> to the payload (for POST requests);
  • Adding api_key: <KEY> to the JSON payload (for JSON POST requests);
  • Adding Authorization: api_key <KEY> to the headers (in any case).