API Reference
SSLOP provides a RESTful JSON API for SSL certificate decoding and monitoring.
SSL Certificate Decoder
GET/api/v1/decode/:domain
Decode all SSL certificates for a domain from Certificate Transparency logs.
curl https://sslop.com/api/v1/decode/example.com
Returns certificate issuer, validity dates, SANs, fingerprints, and serial numbers.
Domain Monitoring
POST/api/v1/monitor/add
Add a domain to monitoring. Returns a DNS TXT verification code.
curl -X POST https://sslop.com/api/v1/monitor/add \
-H "Content-Type: application/json" \
-d '{"domain": "example.com", "email": "admin@example.com"}'
-H "Content-Type: application/json" \
-d '{"domain": "example.com", "email": "admin@example.com"}'
POST/api/v1/monitor/verify
Verify domain ownership via DNS TXT record check.
curl -X POST https://sslop.com/api/v1/monitor/verify \
-H "Content-Type: application/json" \
-d '{"domain": "example.com"}'
-H "Content-Type: application/json" \
-d '{"domain": "example.com"}'
GET/api/v1/monitor/list
List all monitored domains and their verification status.
DELETE/api/v1/monitor/:domain
Remove a domain from monitoring.
Scheduled Checks
Configure a Cloudflare Cron Trigger to run daily certificate checks. Set it to run at 0 9 * * * (9 AM UTC) in your wrangler.toml:
[triggers]
crons = ["0 9 * * *"]
crons = ["0 9 * * *"]