REST routes

The REST routes of Leitvia Studio and Leitvia Pro, 45 routes with 52 endpoints, generated from the code. Agents use the abilities instead; these routes serve the screens, sites and tools.

For developers · Checked with Leitvia 1.2.69, Leitvia Studio 1.3.66 and Leitvia Pro 0.8.56

Access names the capabilities the permission callback of the endpoint checks. A public endpoint checks the request itself: signed means a signature with the shared key of the sites, sign-in means the callback asks for an application password or an OAuth token. The OAuth routes exist only while OAuth for MCP is on.

Routes

PackageNamespaceRouteMethodsAccess
Leitvia Studioleitvia-studio/v1/notes/dismissPOSTread
Leitvia Studioleitvia-studio/v1/notes/dismissDELETEread
Leitvia Studioleitvia-studio/v1/mcpPOSTpublic, sign-in
Leitvia Studioleitvia-studio/v1/mcpDELETEedit_posts
Leitvia Studioleitvia-studio/v1/mcpGETpublic
Leitvia Studioleitvia-studio/v1/oauth/protected-resourceGETpublic
Leitvia Studioleitvia-studio/v1/oauth/authorization-serverGETpublic
Leitvia Studioleitvia-studio/v1/oauth/tokenPOSTpublic
Leitvia Studioleitvia-studio/v1/oauth/revokePOSTpublic
Leitvia Studioleitvia-studio/v1/oauth/registerPOSTpublic
Leitvia Studioleitvia-studio/v1/building-blocksGETedit_theme_options
Leitvia Studioleitvia-studio/v1/contractGETedit_theme_options
Leitvia Studioleitvia-studio/v1/blocksGETedit_posts
Leitvia Studioleitvia-studio/v1/extensionsGETmanage_options
Leitvia Studioleitvia-studio/v1/gateway/accessGETpeople only, no agent, no application password
Leitvia Studioleitvia-studio/v1/gateway/accessPOSTpeople only, no agent, no application password
Leitvia Studioleitvia-studio/v1/gateway/access/discoveryGETpeople only, no agent, no application password
Leitvia Studioleitvia-studio/v1/gateway/access/(?P<id>\d+)DELETEpeople only, no agent, no application password
Leitvia Studioleitvia-studio/v1/gateway/access/(?P<id>\d+)/passwordPOSTpeople only, no agent, no application password
Leitvia Studioleitvia-studio/v1/gateway/access/connections/(?P<family>[0-9a-f]{32})DELETEpeople only, no agent, no application password
Leitvia Studioleitvia-studio/v1/gateway/settingsGETpeople only, no agent, no application password
Leitvia Studioleitvia-studio/v1/gateway/settingsPOST, PUT, PATCHpeople only, no agent, no application password
Leitvia Studioleitvia-studio/v1/patternsGETedit_posts
Leitvia Studioleitvia-studio/v1/patterns/(?P<id>\d+)/variantsPOSTedit_post
Leitvia Studioleitvia-studio/v1/patterns/(?P<id>\d+)/checksPOSTedit_post
Leitvia Studioleitvia-studio/v1/patterns/statesGETedit_posts
Leitvia Studioleitvia-studio/v1/patterns/statesPOSTedit_post, create_posts
Leitvia Studioleitvia-studio/v1/patterns/reviewsPOSTedit_theme_options, people only, no agent, no application password
Leitvia Studioleitvia-studio/v1/patterns/(?P<id>\d+)/exportGETedit_post
Leitvia Studioleitvia-studio/v1/patterns/(?P<id>\d+)/annotationsGETedit_post
Leitvia Studioleitvia-studio/v1/patterns/importPOSTcreate_posts
Leitvia Studioleitvia-studio/v1/usageGETedit_posts, read_post
Leitvia Studioleitvia-studio/v1/usage/reindexPOSTedit_theme_options
Leitvia Studioleitvia-studio/v1/modelGETmanage_options
Leitvia Studioleitvia-studio/v1/modelPOST, PUT, PATCHmanage_options
Leitvia Studioleitvia-studio/v1/model/validatePOSTmanage_options
Leitvia Studioleitvia-studio/v1/model/schemaGETedit_posts
Leitvia Studioleitvia-studio/v1/packagesGETedit_theme_options, people only, no agent
Leitvia Studioleitvia-studio/v1/packages/(?P<id>\d+)GETedit_theme_options, people only, no agent
Leitvia Studioleitvia-studio/v1/packages/(?P<id>\d+)/applyPOSTedit_theme_options, people only, no agent
Leitvia Studioleitvia-studio/v1/packages/(?P<id>\d+)/rejectPOSTedit_theme_options, people only, no agent
Leitvia Studioleitvia-studio/v1/packages/(?P<id>\d+)/rollbackPOSTedit_theme_options, people only, no agent
Leitvia Studioleitvia-studio/v1/recipesGETedit_theme_options
Leitvia Studioleitvia-studio/v1/token-sets/(?P<id>\d+)/activatePOSTedit_theme_options, edit_post
Leitvia Studioleitvia-studio/v1/token-sets/(?P<id>\d+)/checkGETedit_theme_options, edit_post
Leitvia Studioleitvia-studio/v1/token-sets/(?P<id>\d+)/exportGETedit_theme_options, edit_post
Leitvia Studioleitvia-studio/v1/token-sets/importPOSTedit_theme_options
Leitvia Studioleitvia-studio/v1/token-setsPOSTedit_theme_options
Leitvia Studioleitvia-studio/v1/token-sourcesGETedit_theme_options
Leitvia Proleitvia-pro/v1/figma/sendPOSTedit_theme_options, Agency license
Leitvia Proleitvia-pro/v1/kitsGETedit_theme_options
Leitvia Proleitvia-pro/v1/stage-packagePOSTpublic, signed

Abilities over REST

Every ability of Studio also runs at /wp-json/wp-abilities/v1/abilities/<name>/run with Basic authentication of an agent user and its application password; see Abilities.

Read next: Developer guide, Hooks and Abilities.