WP Safelink REST API: Automate Link Management Programmatically

Quick answer: Learn how to use WP Safelink REST API for programmatic link management. Authentication, example API calls, use cases, and developer tips.

On this page

WP Safelink isn’t just a WordPress plugin — it also exposes a REST API that lets you manage links programmatically. Whether you’re building an external dashboard, integrating with a mobile app, or automating bulk operations, the API gives you full control.

WP Safelink REST API

#What the API Allows

The WP Safelink REST API lets external applications:

#Authentication

API requests require authentication via your WordPress REST API credentials. WP Safelink registers its endpoints under the WordPress REST API namespace, so standard WordPress authentication methods apply:

#Example API Calls

Here are some common operations:

#Get Plugin Status

curl -X GET https://yoursite.com/wp-json/wpsafelink/v1/status 
  -H "Authorization: Basic YOUR_AUTH_TOKEN"
curl -X POST https://yoursite.com/wp-json/wpsafelink/v1/links 
  -H "Authorization: Basic YOUR_AUTH_TOKEN" 
  -H "Content-Type: application/json" 
  -d '{"url": "https://example.com/download", "title": "My Download"}'

#Get Statistics

curl -X GET https://yoursite.com/wp-json/wpsafelink/v1/stats 
  -H "Authorization: Basic YOUR_AUTH_TOKEN"

External API Integration

#Use Cases

#Developer Tips

The REST API is available in both Full and PRO versions of WP Safelink.

Turn your traffic into revenue with WP Safelink

Join 2,000+ publishers monetising every download link since 2017. Use code NEWHOPE for 25% off — from just $9/year.