Supported API list

  • View the API list at: https://[domain]/gp247_admin/api_connection.

Obtain access_token

  • Core: POST api/core/login with usernamepassword; extra parameter: remember_me (boolean: true/false).
  • Front: POST api/front/login with emailpassword; extra parameter: remember_me (boolean: true/false).

Strengthen security with API Connection

  • Visit https://[domain]/gp247_admin/api_connection to enable the feature and generate the apiconnection | apikey pair.
  • When enabled, API Connection applies to all API endpoints (core and front).

Notes

  • For Core APIs: use the access_token issued by api/core/login.
  • For Front APIs: use the access_token issued by api/front/login for secured endpoints.
  • If API Connection is used, include these headers for every endpoint (core and front).

Example request

curl -X GET "https://your-domain.local/api/your_resource" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-bearer-token" \
  -H "apiconnection: your-connection" \
  -H "apikey: your-api-key"

Note: replace your-domain.localyour-bearer-tokenyour-connection, and your-api-key with your actual values.