Skip to Content
ConceptsAPI & SDKJavaScript SDKs

JavaScript SDKs

The SDKs are the easiest way to interact with Sharetribe Marketplace API and the Sharetribe Integration API.

They handle authentication, renewing authentication tokens and serializing and deserializing data to and from JavaScript data structures. Using the SDKs allows you to focus on building your marketplace front-end instead of implementing boilerplate to communicate with the API.

Documentation

Find our SDK documentation here:

We also have a guide to get started with the SDKs:

Sharetribe SDK for JavaScript

The Marketplace API is meant to handle all the interactions the end users of your marketplace take part in e.g. signing up, managing listings and transactions. You should be using the Marketplace API when building your marketplace UI, such as a web client or a mobile app.

The Marketplace API only provides data that an individual user should have access to; this means that the API doesn’t allow access to other users’ private data, transactions or messages. The SDK provides a convenient way to access the Marketplace API endpoints without needing to configure custom API calls.

You can access all the JS SDK documentation at:

https://sharetribe.github.io/flex-sdk-js/ 

SDK Playground

The SDK ships with a command-line based API Playground. You can use the Playground to try out the SDK with real API access to learn and test things. It also supports executing scripts against the API.

To start the Playground, go to the directory where you cloned the SDK Git repository and type:

$ yarn run playground --clientid <CLIENT-ID>

This will start the playground using your Marketplace API Client ID to connect to your marketplace. You can create a new Client ID or find your existing ones in Console at https://console.sharetribe.com/advanced/applications .


See the full API Playground reference here

Sharetribe Integration SDK for JavaScript

In contrast to the Marketplace API, the Integration API reveals the entire marketplace data. The Integration API is meant for trusted secure applications to access. You might be running such an application in your own backend systems or as a 3rd party integration. The Integration API is well suited for integrations with your own or 3rd party systems, custom reporting and custom tooling for operators managing the marketplace.

You can access all the JS SDK documentation at:

https://sharetribe.github.io/flex-integration-sdk-js/ 

Last updated on