> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api.leanmile.com/llms.txt.
> For full documentation content, see https://api.leanmile.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.leanmile.com/_mcp/server.

# Overview

<h2>
  Authentication
</h2>

<p>
  You authenticate against the API using 

  <b>HTTP Basic Authenication</b>

   described in 

  <b>FC 2617</b>

   using 

  <code>Auhtorization</code>

   HTTP header. Credentials are provided by Your client manager.
</p>

<h2>
  Server responses
</h2>

<p>
  Response will always contain at least four parameters:
</p>

<ol>
  <li><b>statusCode</b> - HTTP status code indicating nature of the response (machine readable)</li>

  <li><b>status</b> - Status indicating more specific description of the result (machine readable)</li>

  <li><b>message</b> - Human readable message, useful for error messages</li>

  <li><b>data</b> - Response from specific API endpoint, if any (object or array)</li>
</ol>

<h2>
  Status codes
</h2>

<p>
  Most common status codes are listed here:
</p>

<ul>
  <li><b>200</b> - Request was successfull</li>

  <li><b>4XX</b> - Client side error<ul><li><b>400</b> - Input data is invalid</li><li><b>401</b> - Invalid or missing username/password</li><li><b>404</b> - Resource or API endpoint does not exist</li><li><b>410</b> - Resource is not longer available</li></ul></li>

  <li><b>5XX</b> - Server issues, try again in a few minutes</li>
</ul>