@thelomadee/sdk from the public npm registry and verifies your authKey with a read-only call to sdk.terms.latest().
Your
authKey is provided during Lomadee partner onboarding. If you do not have it yet, contact your Lomadee integration contact before continuing.Before you begin
- A server-side TypeScript or JavaScript project with ESM enabled (
"type": "module"inpackage.json, or"module": "NodeNext"intsconfig.json) - Your partner
authKey, stored asLOMADEE_AUTH_KEY(or equivalent) in your environment
Step 1 — Install the SDK
.npmrc or GitHub token is required.
Step 2 — Create a client
Create a small script (for examplecheck-sdk.ts) in your backend project:
check-sdk.ts
environment is optional and defaults to 'production' when omitted. Use the environment and credentials provided during your Lomadee onboarding.
Step 3 — Run the script
Execute with your preferred TypeScript runner, for example:authKey works end-to-end through the SDK.
What to explore next
You now have a workingLomadee instance. From here:
- Read How the SDK works to understand resource clients and shared configuration
- Browse the API reference for
transactions,commissions,affiliates,contents, andterms - Follow Environments and secrets for staging setups and production hardening
- Review Error handling before adding retries or user-facing error messages
x-api-key, not the SDK’s partner authKey.