To integrate it into your application, you can use the JSON HTTP API or one of the Lago libraries (depending on your programing language or framework).

You must retrieve your API key from your account.

Configuration

LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request POST "$LAGO_URL/api/v1/..." \
  --header "Authorization: Bearer $API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '...'