API Documentation
Simple and powerful SSL monitoring API
Getting Started
To use the SSL Mosquito API, you need an API key. After signing up, you'll receive your personal API key.
Include your API key in the request header:
x-api-key: YOUR_API_KEY Base URL
https://api.sslmosquito.comCheck SSL Certificate
GETRetrieve SSL certificate information for a specific domain.
Endpoint
GET /ssl/{domain}Parameters
| Parameter | Type | Description |
|---|---|---|
| domain | string | The domain to check (e.g., google.de) |
Example Request
curl -X GET "https://api.sslmosquito.com/ssl/google.de" \
-H "x-api-key: YOUR_API_KEY"Example Response
{
"domain": "google.de",
"status": "Valid",
"expiresIn": "54 days",
"validFrom": "27/10/2025",
"validTo": "19/01/2026"
}Create SSL Alert
POSTSet up an alert to be notified before a domain's SSL certificate expires.
Endpoint
POST /ssl-alertRequest Body
| Field | Type | Description |
|---|---|---|
| domain | string | The domain to monitor |
| daysBeforeExpiration | number | Days before expiration to trigger alert |
Example Request
curl -X POST "https://api.sslmosquito.com/ssl-alert" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "example.com",
"daysBeforeExpiration": 30
}'Example Response
{
"id": "alert_abc123xyz"
}Delete SSL Alert
DELETERemove an existing SSL alert by its ID.
Endpoint
DELETE /ssl-alert/{id}Parameters
| Parameter | Type | Description |
|---|---|---|
| id | string | The alert ID to delete |
Example Request
curl -X DELETE "https://api.sslmosquito.com/ssl-alert/alert_abc123xyz" \
-H "x-api-key: YOUR_API_KEY"Example Response
{
"success": true,
"message": "Alert deleted successfully"
}Rate Limits
API rate limits depend on your subscription plan. See our pricing page for details.
Note: If you exceed your rate limit, you'll receive a 429 (Too Many Requests) response.
Error Codes
| Code | Description |
|---|---|
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Not Found - Resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Something went wrong on our end |