District developer platform

Build on District.

Build storefronts with the Marketplace API, and seller tools and sync services with the Admin API. Run sample operations in the docs with your own key.

Start buildingPOST /graphql
terminal
$ curl https://marketplace.api.district.net/graphql \
  -H "District-Client-Authorization: Bearer $DISTRICT_CLIENT_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"query":"{ marketplace { name handle description } }"}'
{
  "data": {
    "marketplace": {
      "name": "Sage's Supply Co",
      "handle": "sages-supply-co",
      "description": "Sage: woof!"
    }
  }
}

Documentation

Start here

Introduction

Learn how the District GraphQL APIs work, set up a typed client, and choose the keys for your app.

GraphQL

Marketplace API

Build a storefront for one marketplace: products, carts, checkout and orders.

GraphQL

Admin API

Run a marketplace: listings, orders, shipping and members.

Events

Webhooks

Get an HTTPS request when a listing, an order, a livestream or a seller changes.