Skip to content
LeadityDocs

Overview

API reference

Every operation of the Leadity HTTP API, generated from the definitions the API itself runs.

Each page in this reference is generated from the same definition the API serves and the MCP server registers as a tool, so the parameters, the examples and the MCP tool name on a page are what the API accepts today.

Base URL

https://api.leadity.io/v1

Authenticate every request with an API key: Authorization: Bearer lk_api_.... See Authentication.

Reading a reference page

  • Scope is what the key needs: read, write or spend. See API keys and scopes.
  • Spends credits marks an operation that takes credits. It needs an Idempotency-Key header and a maxCredits ceiling, and a free operation prices it first. See Spending credits safely.
  • MCP tool is the name the same operation has on the MCP server. HTTP only means the MCP server does not carry it.
  • Errors lists the codes every call of the operation's kind can meet, with the extra fields each can carry. The codes an order or an upgrade adds of its own are on Errors, with the rest.

OpenAPI

https://api.leadity.io/v1/openapi.json

The OpenAPI 3.1 document is generated from the same definitions as these pages.

Every operation