LeanLaw Developer Platform

Overview

Welcome to the LeanLaw API! If you are new to this, we suggest going through the following steps

  1. Set up authentication

    Go here to set up authentication with the API. This is a prerequisite for accessing a LeanLaw account through the API.

  2. Try a basic request

    Get a simple API request working first. For example, start with a curl request from the command line:

    TerminalCode
    $ export APIKEY=[LeanLaw API key] $ curl -H "Authorization: Bearer $APIKEY" https://api.leanlaw.io/v2/users

    This should return a list of users in the account.

  3. Familiarize yourself

    Go through API patterns. Also familiarize yourself with LeanLaw Concepts. Both of these resources provide background information that is helpful in navigating the API.

  4. Explore Documentation

    The full interactive documentation provides all the information you need to use the API. You can also run actual API queries from there if you have your API key handy.

    Use "Test" button in the document to run API queries. You will need to add an Authorization header with the value Bearer [your API key] to run queries from the documentation (see Authentication section for a little more detail).

Last modified on