Getting started

Use your project API key to call the HTTP API described here. The guides cover authentication, optional file uploads, and the JSON or multipart shapes each endpoint expects.

Before you integrate

  1. Authentication — how to send your API key on each request.
  2. Rate limits and Sandbox quota — per-key request caps, 429 responses, and sandbox call limits (402).
  3. File uploads — multipart and JSON base64 attachments, limits, and field shapes.
  4. Browse API Reference in the sidebar for Leni AI (run models, chat data, session id), Memory, Custom analysts, and other sections as they are documented.

Base URL and paths

Endpoints are rooted under your deployed API base URL (for example POST /users/run-models, POST /users/add-to-memory). Use the same base URL as in the developer portal where you manage keys.

Examples

MethodPath
POST/users/get-user-memory
POST/users/update-memory
POST/users/custom-analysts
PUT/users/custom-analysts/:analystId
GET/users/custom-analysts
DELETE/users/custom-analysts/:analystId

See the dedicated pages for POST /users/run-models, POST /users/add-to-memory, and the topics in the sidebar for full request bodies and examples.