Authentication

LeaderOS uses a HTTP header to authenticate requests with an API key. The header is called X-Api-Key and the value is the API key.

The API key can be found in the LeaderOS settings.

Examples

GET Request

curl https://yourwebsite.com/api/store/products
   -H "X-Api-Key: YOUR_API_KEY"

POST Request

curl https://yourwebsite.com/api/store/products
   -H "X-Api-Key: YOUR_API_KEY"
   -H "Content-Type: multipart/form-data"
   -X POST
   -d "username=test&password=test"

Last updated