Skip to content
Display

Display

Star12.2k

Developers

JSON-RPC API reference

  • Cloud and self-hosted
Markdown

To create a key and make your first call, see Use the Leantime API.

Each section below is an area of Leantime. An area has one or more services: groups of related methods. Click a service to see its methods and their parameters.

Call a method as leantime.rpc.{area}.{service}.{method}, for example leantime.rpc.Tickets.TicketHistory.getTicketHistory. When the service has the same name as the area, leave it out: leantime.rpc.Tickets.getTicket.

The area and service can start with a small or a capital letter: leantime.rpc.tickets.getTicket works too. Write the rest as this reference shows it.

These services have no page of their own yet, so their methods are listed here.

Available Services Description
Config getSystemInfo(): your Leantime version and the plugins that are on. Call it first to check which plugin methods you can use.
Api Manage API keys: getAPIKeys(), getApiKeyFormValues(id), getProjectRelationIds(id), createApiKeyWithProjects(values, projects), updateApiKey(id, postValues, projects) and deleteApiKey(id). Needs a role that can manage API keys (Administrator or Owner).

These services have no page of their own yet, so their methods are listed here.

Available Services Description
AccessToken revokeCurrentToken(): deletes the personal access token you sent with this call, so it stops working. Use it when someone signs out of your app. Returns false when the call didn’t use a token.
Available Services Description
Blueprints Blueprint boards, like SWOT or Lean Canvas: change a card, import a board, see a board’s progress, and find the board changed last.
BlueprintsExport Export a blueprint board as an XML file.
Available Services Description
Calendar Your calendar: your events, the outside calendars you subscribe to, and the link to your iCal feed.
Available Services Description
Canvas Older names for three Blueprints methods. It will be removed, so use Blueprints instead.
Available Services Description
Clients Clients: create, change and delete them, and list their users and projects.
Available Services Description
Comments Comments on to-dos, projects and other items: read, add, edit and delete them, get new ones since a given time, and add or remove reactions.

This service has no page of its own yet, so its methods are listed here.

Available Services Description
Integrations The import connections Leantime keeps while someone imports data, for example from a CSV file: get(id), create(object), patch(id, params), getAvailableEntities() (what you can import into, like to-dos or projects) and getEntityFields(entity) (the fields of one of those). Needs the Administrator or Owner role. getAll, delete and updateTicket don’t do anything yet. The other methods are steps of Leantime’s own import screens.

This service has no page of its own yet.

Available Services Description
CsvImport processUpload(file) reads an uploaded CSV file for Leantime’s import screen. It needs a file upload, so you can’t call it with a JSON request.
Available Services Description
Dashboard The project dashboard: the comments and replies on a project, and whether you marked the project as a favorite.
Available Services Description
Files Files on to-dos, projects and other items: list them and delete them. You can’t upload or download a file’s contents through a JSON-RPC call: uploading expects a file that was already sent to the server through a form.
Available Services Description
Goalcanvas Goals and goal boards: create and change them, link goals to milestones, and see how a goal’s child goals add up.
Available Services Description
Ideas Idea boards and ideas: create, change, sort and delete them, change their status, and comment on them.

This service has no page of its own yet, so its methods are listed here.

Available Services Description
Modulemanager The parts of Leantime that can be switched on or off in a project. getProjectModules(projectId) lists them and whether each is on. saveProjectModules(projectId, modules) switches them, for example {"wiki": false}. Modules you leave out stay as they are. Saving needs the Company Manager role or higher. The module IDs are goalcanvas, ideas, blueprints, wiki, files, reports and timesheets, plus any a plugin adds.
Available Services Description
Messengers Sends project notifications to the chat webhooks a project has set up (Slack, Mattermost, Zulip, Discord, Telegram).
News The Leantime news feed.
Notifications Your notifications: your inbox and unread count, marking them read or unread, and adding or removing a phone for push notifications.
Available Services Description
ConnectedApps The apps, like Claude or ChatGPT, that you connected to your Leantime account, and disconnecting them.
Available Services Description
Plugins Plugins: list them, install, turn on, turn off, update and remove them, and switch automatic updates on or off.
Available Services Description
Projects Projects: create, read, change, copy and delete them, add and remove people, and set up a project’s chat webhooks.
Available Services Description
Reactions Reactions on comments and other items: add, remove and list them.
Available Services Description
Reminders Your own reminders: your morning summary as data, your reminder settings, and the reminders on one to-do. Each method works only for the person calling, and the to-do methods check that you can see the to-do.
Available Services Description
ReportEngine Report data for one or more projects. You can call getGoalReportForProjects and getProjectSummaries. The methods that take a period (buildReport, getMilestoneReportForProjects, getStatusUpdatesForProjects, getEffortForProjects) always fail with error -32602 in Leantime 3.15 to 3.17, because the period can’t be sent as JSON.
Reports A project’s report: the sprint burndown, the saved history of its to-do numbers, and the numbers right now.
Available Services Description
Search Search across projects, to-dos and other items: a quick search with the top results of each kind, and a full search, page by page, for one kind.
Available Services Description
Setting Company settings: read and save them, get your company’s ID, and read or rename the labels a project uses.
Available Services Description
Sprints Sprints: create, change and delete them, find the current and upcoming sprints, and get burndown and cumulative chart data.
Available Services Description
Tags The tags already used in a project, as suggestions while someone types.
Available Services Description
OneThing “Your one thing”: the one to-do a person picks as the thing that matters most on a given day.
Planning Plans a to-do for a day: the day someone chose to work on it, which they can move any time.
Suggestions Suggestions for what to work on, from your own open to-dos: “Tasks to consider” and “Quick wins”.
TicketHistory The change history of a to-do: which fields changed, when, and who changed them.
Tickets To-dos, subtasks and milestones: create, read, change, move, close and delete them, list them with filters, and read the status, priority, effort and type labels.
Available Services Description
Timesheets Time tracking: start and stop the timer, log, change and delete time, and read timesheets.
Available Services Description
Users People: list, find, invite, add, change and delete users, and change your own profile, password and notification settings.
Available Services Description
Dashboard Data for the widgets on your home page, mainly the to-do widget: your to-dos, their order, and adding to-dos and subtasks.
Widgets The widgets on your home page: which ones exist, which are on, and where they sit.
Available Services Description
Wiki Docs and their articles: create, read, change and delete them, and see an article’s activity.

Some services and methods exist only for Leantime’s own screens, like signing in, the first-login steps and the installer. They aren’t meant for integrations, so they aren’t listed.


The service pages are generated from source code comments on 2026-11-23 using phpDocumentor

Was this page helpful?