Service Status
Check API Status
Check whether the SellerLegend API is operational. This endpoint does not require authentication.
GET /service-statusParameters: None
Authentication: Not required
Example Request:
bash
curl -X GET "https://app.sellerlegend.com/api/service-status"Response (API active):
json
{
"status": "active",
"code": 200,
"message": "All systems operational"
}Response (API down):
json
{
"status": "down",
"code": 503,
"message": "Service temporarily unavailable"
}Response Fields:
| Field | Type | Description |
|---|---|---|
status | string | active or down |
code | integer | HTTP status code |
message | string | Human-readable status message |
Python SDK:
python
from sellerlegend_api import SellerLegendClient
client = SellerLegendClient(access_token="YOUR_ACCESS_TOKEN")
status = client.service.get_status()
if status['status'] == 'active':
print(f"API is operational: {status['message']}")
else:
print(f"API is down: {status['message']}")TIP
Use this endpoint for health checks and monitoring. It's a good practice to check service status before making batch API calls.