Skip to main content

Easily Integrate
LeafLink's API using Konfig's TypeScript SDK

Need a TypeScript SDK for LeafLink's API?

Growing API Companies trust Konfig's SDKs to onboard developers to their API.

SnapTradeHumanloopSplititLeapGroundx

First, instantiate the SDK

It only takes a few lines of code.

index.ts

import { LeafLink } from 'leaf-link-typescript-sdk';
const leafLink = new LeafLink({
/*
* You must authenticate your requests by including your API key in each request header as described below.
*
* Requests should include a header named `Authorization`, with the value `App {MY_API_KEY}`. Note the single space in the header value.
*
* Example: `Authorization: App MY_API_KEY`
*
* [Learn more about generating your key](https://developer.leaflink.com/brands/api/getting-started/)
*
* **Legacy API keys:** If you are not using an Application API key, your authorization header should include the string `Token` and access will be scoped to all companies under which the user exists as a companystaff.
*
* Example: `Authorization: Token MY_API_KEY`
*
*/
token: "AUTHORIZATION"
})

Then, send your first request

We made it really easy.

index.ts

// List
const getAllResponse = leafLink.activityEntries.getAll()

Enjoy a buttery smooth developer experience with 105 SDK methods

How Konfig Works

Konfig collects APIs and automatically generates SDKs so you can focus on building your application.

openapi-examples

Konfig maintains the highest quality collection of OpenAPI Specifications on the internet in a GitHub repository

We pull OpenAPI Specifications from public sources, fix any errors, and make sure they pass our lint rules. We continually make sure the repository is up-to-date and collect up-time and response time metrics for every API.

openapi-examples-to-konfig

Generates AI-Augmented SDKs from openapi-examples

Our SDK generator is trusted by growing API companies and goes through a rigorous testing process to ensure the generated SDKs are high-quality and easy to use.

konfig-to-package-managers

Publishes to standard package managers

We publish to standard package managers like npm, PyPI, and Maven so you can easily integrate the SDK into your application.

LeafLink

About LeafLink

LeafLink is the industry's wholesale platform. Easily and efficiently sell, ship, pay, get paid, advertise and drive margin. LeafLink is live in 30 markets with over $5B in annual orders.

Keywords

ecommerce
marketplaces
wholesale
cannabis

Start integrating LeafLink's API with Konfig