Quickstart
This guide walks you through your first call to the Lemmy API — reading the list of customer groups from your company. It takes just a few minutes.
Get your API key and company ID
Generate an API key in In-Motion Online under Configuratie → Integraties → API Keys,
and grab your companyid from any In-Motion Online URL. See
Authentication for details.
Check your connection
Call the Ping endpoint to confirm your API key works. It returns Pong.
A Pong response means your key is valid and you’re ready to make real requests. A
401 Unauthorized means the key is missing or invalid — see Authentication.
Make a request
Call the GetCustomerGroups endpoint with your API key and company ID. It’s a
read-only request, so it’s a safe first call. Like every GET endpoint, it requires the
x-page-offset and x-page-limit pagination headers.
Read the response
A successful request returns 200 OK and a JSON object containing your customer groups:
If you get a 401 Unauthorized instead, double-check your API key and the
x-company-id header — see Authentication.