Skip to content

All endpoints ​

Look up any of the 175 REST routes by resource, with its method, path and permission. Each path links to its full entry with parameters, response fields and errors.

Link Manager Pro registers 175 REST routes under one base URL. Select a path to open its full entry.

All paths are relative to the base URL /wp-json/link-manager-pro/v1. Authentication, responses and pagination are in REST API overview. The routes serve the plugin's own screens, so a release can change a route or a field; read the Changelog before you update an integration.

Permissions ​

Every route needs a logged-in user, except the one public route. The Permission column names what that user must have.

  • link_manager_pro_access: administrators, and other users the access setting allows.
  • manage_options: administrators only.
  • edit_posts or link_manager_pro_access: anyone who can edit posts, or has plugin access. The link_manager_pro_picker_capability filter can change the post capability.
  • Creating a short link through POST /links or /ai/convert-url also needs full plugin access, or the capability the link_manager_pro_picker_create_capability filter returns (publish_posts by default).

A request without a login gets 401. A logged-in user without the permission gets 403.

MethodPathPermissionWhat it does
GET/linkslink_manager_pro_accessList short links
GET/links/addresses/conflictslink_manager_pro_accessCounts other addresses that open something else, and the links they belong to.
GET/links/{id}link_manager_pro_accessGet a short link
GET/links/{id}/reportlink_manager_pro_accessGet a link report
GET/links/{id}/report/recentlink_manager_pro_accessReturns recent clicks for a link, with paging.
GET/links/{id}/report/exportlink_manager_pro_accessStreams a CSV of the link clicks.
GET/links/{id}/clickslink_manager_pro_accessGet link clicks over time
GET/links/{id}/categorieslink_manager_pro_accessList categories of a link
GET/links/{id}/tagslink_manager_pro_accessList tags of a link
PUT/links/{id}/tagslink_manager_pro_accessSet tags of a link
PUT/links/{id}link_manager_pro_accessUpdate a short link
PUT/links/{id}/categorieslink_manager_pro_accessSet categories of a link
DELETE/links/{id}link_manager_pro_accessDelete a short link
POST/links/{id}/addresseslink_manager_pro_accessAdds another address that opens the link.
POST/links/{id}/addresses/{hash}/removelink_manager_pro_accessRemoves one other address from the link.
POST/links/{id}/addresses/{hash}/claimlink_manager_pro_accessMakes an other address open this link instead of what it opens now.
POST/links/{id}/addresses/{hash}/keeplink_manager_pro_accessKeeps what the other address opens now and stops counting it as a conflict.
POST/linksedit_posts or link_manager_pro_access, plus the create rightCreate a short link. Without the create right it answers 403 lmp_cannot_create_links
MethodPathPermissionWhat it does
GET/links/{id}/ruleslink_manager_pro_accessLists the redirect rules of a link.
POST/links/{id}/ruleslink_manager_pro_accessAdds one redirect rule to a link.
PUT/links/{id}/rules/synclink_manager_pro_accessReplaces all rules of a link in one step.
PUT/links/{id}/rules/{ruleId}link_manager_pro_accessUpdates one rule of a link.
DELETE/links/{id}/rules/{ruleId}link_manager_pro_accessDeletes one rule of a link.

Categories ​

MethodPathPermissionWhat it does
GET/categorieslink_manager_pro_accessList categories
POST/categorieslink_manager_pro_accessCreate a category
PUT/categories/{id}link_manager_pro_accessUpdate a category
DELETE/categories/{id}link_manager_pro_accessDelete a category

Tags ​

MethodPathPermissionWhat it does
GET/tagslink_manager_pro_accessList tags
POST/tagslink_manager_pro_accessCreate a tag
PUT/tags/{id}link_manager_pro_accessUpdate a tag
DELETE/tags/{id}link_manager_pro_accessDelete a tag

Affiliates ​

MethodPathPermissionWhat it does
GET/affiliateslink_manager_pro_accessList affiliates
GET/affiliates/{id}/reportlink_manager_pro_accessReturns the report for one affiliate.
GET/affiliates/{id}/report/recentlink_manager_pro_accessReturns recent clicks for an affiliate, with paging.
GET/affiliates/{id}/report/exportlink_manager_pro_accessStreams a CSV of the affiliate clicks.
GET/affiliates/{id}/clickslink_manager_pro_accessReturns daily clicks for an affiliate.
GET/affiliates/{id}/postslink_manager_pro_accessLists posts that send clicks to an affiliate.
GET/affiliates/{id}/keywordslink_manager_pro_accessLists the affiliate keywords with the posts that contain them.
GET/affiliates/{id}/linkslink_manager_pro_accessLists short links that point to the affiliate domain.
POST/affiliateslink_manager_pro_accessCreate an affiliate
PUT/affiliates/{id}link_manager_pro_accessUpdate an affiliate
DELETE/affiliates/{id}link_manager_pro_accessDelete an affiliate

Campaigns ​

MethodPathPermissionWhat it does
GET/campaignslink_manager_pro_accessLists campaigns with filters and paging.
GET/campaigns/alllink_manager_pro_accessLists every stored campaign.
GET/campaigns/sync/previewlink_manager_pro_accessLists campaign values found on links that no stored campaign covers.
POST/campaignslink_manager_pro_accessCreates a campaign.
PUT/campaigns/{campaign}link_manager_pro_accessUpdates a campaign.
DELETE/campaigns/{campaign}link_manager_pro_accessDeletes a campaign.
GET/campaigns/{name}/reportlink_manager_pro_accessReturns the report for one campaign.
GET/campaigns/{name}/report/exportlink_manager_pro_accessStreams a CSV of the campaign clicks.
GET/campaigns/{name}/linkslink_manager_pro_accessLists the short links of a campaign, with paging.
GET/campaigns/{name}/clickslink_manager_pro_accessReturns daily clicks for a campaign, optionally split by source.
GET/campaigns/{name}/utm-breakdownlink_manager_pro_accessReturns the UTM breakdown of a campaign.
GET/campaigns/{name}/countrieslink_manager_pro_accessReturns clicks by country for a campaign.

UTM templates ​

MethodPathPermissionWhat it does
GET/utm-templateslink_manager_pro_accessLists saved UTM templates.
POST/utm-templateslink_manager_pro_accessCreates a UTM template.
PUT/utm-templates/{id}link_manager_pro_accessUpdates a UTM template.
DELETE/utm-templates/{id}link_manager_pro_accessDeletes a UTM template.

Redirects ​

MethodPathPermissionWhat it does
GET/redirectslink_manager_pro_accessList redirects
GET/redirects/review/sourceslink_manager_pro_accessLists redirects whose stored source address needs a look.
POST/redirects/{id}/resavelink_manager_pro_accessRewrites one redirect key so it matches its stored address again.
POST/redirectslink_manager_pro_accessCreate a redirect
GET/redirects/{id}link_manager_pro_accessGet a redirect
PUT/redirects/{id}link_manager_pro_accessUpdate a redirect
DELETE/redirects/{id}link_manager_pro_accessDelete a redirect
POST/redirects/review/adoptmanage_optionsRecords an earlier site address so its redirects match here.
POST/redirects/review/forgetmanage_optionsRemoves a recorded earlier site address.

Stats ​

MethodPathPermissionWhat it does
GET/statslink_manager_pro_accessReturns dashboard totals for a date range and for all time, plus link health counts.
GET/stats/clickslink_manager_pro_accessReturns daily total and unique clicks for the dashboard range.
GET/stats/heatmaplink_manager_pro_accessReturns clicks by weekday and hour for the dashboard range.
GET/stats/countrieslink_manager_pro_accessReturns clicks by country for the dashboard range.
GET/stats/linkslink_manager_pro_accessReturns the top short links by recorded clicks.
GET/stats/postslink_manager_pro_accessReturns the top posts by clicks on the links they contain.
GET/stats/affiliateslink_manager_pro_accessReturns the top 10 affiliates by recorded clicks.
GET/stats/toplink_manager_pro_accessReturns the largest rows for one tab: links, campaigns, partners or posts.
MethodPathPermissionWhat it does
GET/link-healthlink_manager_pro_accessLists link health issues with counts, last scan and sitemap state.
POST/link-health/scanlink_manager_pro_accessScans one batch of posts for broken links and returns the next offset.
POST/link-health/sitemaplink_manager_pro_accessReads the sitemap again now.
PUT/link-health/{id}/statuslink_manager_pro_accessSets an issue to active, ignored or fixed.
POST/link-health/{id}/redirectlink_manager_pro_accessFixes an issue by creating a redirect.
DELETE/link-health/{id}link_manager_pro_accessDeletes one issue.
DELETE/link-healthlink_manager_pro_accessClears the issues of a tab.
MethodPathPermissionWhat it does
GET/link-auditlink_manager_pro_accessLists audited posts with inbound and outbound link counts; filters, sort and paging.
GET/link-audit/statslink_manager_pro_accessReturns summary counts of the audit.
GET/link-audit/slugs-to-reviewlink_manager_pro_accessLists short link slugs saved before the current slug rule.
GET/link-audit/coverage-scorelink_manager_pro_accessReturns the internal link coverage score with its history.
POST/link-audit/scanlink_manager_pro_accessScans one batch of posts for the audit and returns the next offset.
POST/link-audit/scan/{id}link_manager_pro_accessRescans one post for the audit.
GET/link-audit/{id}/suggestionslink_manager_pro_accessSuggests internal links for one post.
POST/link-audit/insert-linklink_manager_pro_accessAdds an internal link to a post around the anchor text you send.
MethodPathPermissionWhat it does
GET/link-equitylink_manager_pro_accessReturns the link equity report by URL or domain, with search and paging.
GET/link-equity/statslink_manager_pro_accessReturns the link equity summary.
POST/link-equity/scanlink_manager_pro_accessRecomputes link equity in one batch and returns the next offset.

Webhooks ​

MethodPathPermissionWhat it does
GET/webhooksmanage_optionsLists webhooks.
POST/webhooksmanage_optionsCreates a webhook and returns its signing secret.
GET/webhooks/{id}/deliveriesmanage_optionsLists the latest 50 deliveries of a webhook.
GET/webhooks/{id}/secretmanage_optionsReturns the signing secret of a webhook.
POST/webhooks/{id}/testmanage_optionsSends a test delivery to a webhook.
POST/webhooks/{id}/regenerate-secretmanage_optionsCreates a new signing secret for a webhook.
PUT/webhooks/{id}manage_optionsUpdates a webhook.
DELETE/webhooks/{id}manage_optionsDeletes a webhook.

Editor and AI ​

MethodPathPermissionWhat it does
GET/editor/optimization/{id}edit_posts or link_manager_pro_accessReturns the internal link count and recommendation for a post in the editor.
POST/ai/detect-urlsedit_posts or link_manager_pro_accessFinds URLs in post content that can become short links.
POST/ai/convert-urledit_posts or link_manager_pro_accessReturns the short link for a URL and its masked URL. It creates one only with the create right, otherwise it answers 403 lmp_cannot_create_links when none exists.
POST/ai/dismiss-urledit_posts or link_manager_pro_accessRemembers a URL as dismissed for a post.
POST/ai/analyzeedit_posts or link_manager_pro_accessReturns link suggestions for post content.

Content scan ​

MethodPathPermissionWhat it does
POST/scanlink_manager_pro_accessMasks external links in one batch of posts and returns the cursor for the next batch.
GET/scan/previewlink_manager_pro_accessReturns how many posts a scan would check, by status.

Settings ​

MethodPathPermissionWhat it does
GET/settings/generalmanage_optionsReads the general settings.
POST/settings/generalmanage_optionsSaves the general settings.
GET/settings/link-intelligencemanage_optionsReads the link intelligence settings.
POST/settings/link-intelligencemanage_optionsSaves the link intelligence settings.
GET/settings/notificationsmanage_optionsReads the notification settings.
POST/settings/notificationsmanage_optionsSaves the notification settings.
GET/settings/advancedmanage_optionsReads the advanced settings.
POST/settings/advancedmanage_optionsSaves the advanced settings.
GET/settings/integrationsmanage_optionsReads the integration settings.
POST/settings/integrationsmanage_optionsSaves the integration settings.
GET/settings/integrations/statusmanage_optionsReports which supported plugins are detected.
GET/settings/integrations/seo/statusmanage_optionsReports which SEO plugins can be imported from.
GET/settings/integrations/seo/{source}/analyzemanage_optionsCounts the redirects an SEO plugin import would bring in.
POST/settings/integrations/seo/{source}/importmanage_optionsImports one batch of redirects from an SEO plugin.
GET/settings/redirectionmanage_optionsReads the redirection settings.
POST/settings/redirectionmanage_optionsSaves the redirection settings.
GET/settings/trackingmanage_optionsReads the tracking settings.
POST/settings/trackingmanage_optionsSaves the tracking settings.
GET/settings/autolinkmanage_optionsReads the auto-link settings.
POST/settings/autolinkmanage_optionsSaves the auto-link settings.
GET/settings/disclosuremanage_optionsReads the disclosure settings.
POST/settings/disclosuremanage_optionsSaves the disclosure settings.
GET/settings/post-typesmanage_optionsLists public post types.
GET/settings/aimanage_optionsReads the AI settings.
POST/settings/aimanage_optionsSaves the AI settings.
POST/settings/ai/testmanage_optionsTests the configured AI provider.
GET/settings/geoip/statusmanage_optionsReports the state of the country database.
POST/settings/geoip/downloadmanage_optionsDownloads the country database.
POST/settings/geoip/removemanage_optionsRemoves the country database.
GET/settings/licensemanage_optionsUsed by the license screen.
POST/settings/license/activatemanage_optionsUsed by the license screen.
POST/settings/license/deactivatemanage_optionsUsed by the license screen.
POST/settings/license/refreshmanage_optionsUsed by the license screen.
POST/settings/license/removemanage_optionsUsed by the license screen.
GET/settings/prefix-linksmanage_optionsSummarizes post links that use a previous short link prefix.
GET/settings/prefix-links/reviewmanage_optionsShows the next posts and what would change in each.
POST/settings/prefix-links/applymanage_optionsUpdates those post links in a batch.
GET/settings/prefix-links/pagemanage_optionsLists the next page of posts with links to move, with the changes in each.
POST/settings/prefix-links/apply-postsmanage_optionsUpdates the post links in the posts you pick.

Backup ​

MethodPathPermissionWhat it does
GET/settings/backup/export/csvmanage_optionsStreams a CSV of all short links.
POST/settings/backup/export/startmanage_optionsStarts a backup export job.
POST/settings/backup/export/progressmanage_optionsRuns the next batch of an export job.
POST/settings/backup/import/startmanage_optionsStarts a backup import job.
POST/settings/backup/import/chunkmanage_optionsReceives one part of an uploaded backup file.
POST/settings/backup/import/progressmanage_optionsRuns the next batch of an import job.
GET/settings/backup/import/activemanage_optionsReturns the import job that is running, if any.
POST/settings/backup/import/cancelmanage_optionsCancels an import job.

Migration ​

MethodPathPermissionWhat it does
GET/settings/migration/promptlink_manager_pro_accessReturns whether to offer a migration from a detected plugin.
GET/settings/migration/detectmanage_optionsDetects plugins that links can be migrated from.
POST/settings/migration/dismissmanage_optionsHides the migration offer for one source.
POST/settings/migration/startmanage_optionsStarts a migration job for the chosen items.
GET/settings/migration/statusmanage_optionsReturns the status of a migration job.
POST/settings/migration/processmanage_optionsRuns the next batch of a migration job.
POST/settings/migration/cancelmanage_optionsCancels a migration job.
GET/settings/migration/shortcodesmanage_optionsCounts posts that still hold shortcodes of an imported plugin.
GET/settings/migration/shortcodes/scanmanage_optionsShows the next posts and what replacing would change.
POST/settings/migration/shortcodes/replacemanage_optionsReplaces those shortcodes in the next posts.

Onboarding ​

MethodPathPermissionWhat it does
GET/onboardinglink_manager_pro_accessReturns the setup state and a snapshot of the settings it covers.
POST/onboarding/statuslink_manager_pro_accessResets the setup state to pending.
POST/onboarding/steplink_manager_pro_accessMarks one setup step complete.
POST/onboarding/scanlink_manager_pro_accessScans one batch of posts during setup.
POST/onboarding/settingsmanage_optionsSaves the general, tracking and redirection settings chosen during setup.
POST/onboarding/completemanage_optionsMarks setup as finished.
POST/onboarding/skipmanage_optionsMarks setup as skipped.

System ​

MethodPathPermissionWhat it does
GET/system-infomanage_optionsReturns environment, theme and plugin details for support, without secrets.
GET/wp-termslink_manager_pro_accessLists WordPress categories and tags for the auto-link targeting picker.

Public tracking ​

MethodPathPermissionWhat it does
POST/track/internal-clickNone (public)Records a click on a link inside your own content. The guards are listed below.

Public tracking guards ​

POST /track/internal-click is the only route that needs no login. It reads source_post_id, lmp_nonce, target_url and anchor_text. These guards decide what happens:

  • It records nothing, and still answers {"ok": true}, unless the tracking settings track_clicks and track_internal_clicks are both yes.
  • A logged-in visitor needs lmp_nonce, a nonce made for the action lmp_internal_click_ plus the source post ID. Without a valid one it answers 403 invalid_nonce. A logged-out request skips the nonce check. A source_post_id of 0 or less answers 403 invalid_nonce for everyone.
  • It needs an Origin header, or a Referer when there is no Origin, from the same host as the site. The www. prefix is ignored. Otherwise it answers 403 invalid_origin.
  • It allows 30 hits per minute for each visitor IP address and source post. Hits over that limit answer {"ok": true} and are not recorded.