Supported API list
- View the API list at: https://[domain]/gp247_admin/api_connection.
Obtain access_token
- Core: POST api/core/loginwithusername,password; extra parameter:remember_me(boolean:true/false).
- Front: POST api/front/loginwithemail,password; extra parameter:remember_me(boolean:true/false).
Strengthen security with API Connection
- Visit https://[domain]/gp247_admin/api_connectionto enable the feature and generate theapiconnection | apikeypair.
- When enabled, API Connection applies to all API endpoints (core and front).
Notes
- For Core APIs: use the access_tokenissued byapi/core/login.
- For Front APIs: use the access_tokenissued byapi/front/loginfor 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.local, your-bearer-token, your-connection, and your-api-key with your actual values.
 
 [GP]247
                    [GP]247
                 
                         Tiếng Việt
 Tiếng Việt