Authentication

You'll need to authenticate your requests to access any of the endpoints in the LML API. In this guide, we'll look at how authentication works.

Bearer Token authentication

With bearer token authentication, you use the provided bearer token to authenticate your HTTP requests. Here's how to authenticate using cURL:

Example request with basic auth

curl https://api.londonmedicallaboratory.com/api/ \
  -H "Authorization: Bearer {token}"

Please don't commit your LML Bearer token to GitHub!