API Docs
API Documentation
Submit URLs programmatically — from a script, cron job, or the browser extension. Your key lives in your Account page.
Authentication
Send your API key in the X-API-Key header (or as an api_key query/body param). Keep it secret — it spends your credits.
POST /index — submit URLs
POST https://indexmylink.com/wp-json/ptss/v1/index
X-API-Key: pt_your_key_here
Content-Type: application/json
{ "urls": ["https://site.com/a", "https://site.com/b"] }
Max 100 URLs per request. 1 credit per URL. Response:
{ "success": true, "submitted": 2, "credits_remaining": 8 }
GET /account — check balance
GET https://indexmylink.com/wp-json/ptss/v1/account
X-API-Key: pt_your_key_here
{ "username": "you", "credits": 8, "status": "active" }
Errors
401 | Invalid or missing API key |
402 | Not enough credits (nothing charged) |
403 | Account indexing paused |
400 | No valid URLs / more than 100 |
502 | Indexing engine unavailable (nothing charged) |
cURL example
curl -X POST https://indexmylink.com/wp-json/ptss/v1/index \
-H "X-API-Key: pt_your_key_here" \
-H "Content-Type: application/json" \
-d '{"urls":["https://site.com/a","https://site.com/b"]}'