Endpoints for internal link suggestions and broken link checking.
GET /rankforge/v1/links/suggest/{post_id}
Get internal link suggestions based on keyword matching. PRO only.
curl -u "admin:ABCD 1234 EFGH 5678 IJKL 9012"
https://example.com/wp-json/rankforge/v1/links/suggest/42[
{
"id": 15,
"title": "WordPress Performance Optimization",
"url": "https://example.com/wordpress-performance/",
"type": "post",
"relevance": 35
},
{
"id": 28,
"title": "Best SEO Plugins for WordPress",
"url": "https://example.com/best-seo-plugins/",
"type": "post",
"relevance": 22
}
]POST /rankforge/v1/links/auto-insert/{post_id}
AI-powered automatic internal link insertion into post content. PRO only.
curl -X POST -u "admin:ABCD 1234 EFGH 5678 IJKL 9012"
https://example.com/wp-json/rankforge/v1/links/auto-insert/42{
"success": true,
"message": "Internal links inserted.",
"new_score": 82
}GET /rankforge/v1/links/broken/{post_id}
Check for broken links in a specific post. PRO only. Free or expired sites receive pro_required / HTTP 403 before the scanner loads the AI/link client, so direct REST calls cannot bypass the admin lock.
curl -u "admin:ABCD 1234 EFGH 5678 IJKL 9012"
https://example.com/wp-json/rankforge/v1/links/broken/42[
{
"url": "https://example.com/deleted-page/",
"status": 404,
"anchor_text": "old reference link"
},
{
"url": "https://defunct-site.com/resource",
"status": 0,
"anchor_text": "external resource"
}
]A status of 0 means the request timed out or the domain could not be resolved.
—