Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing documentation for Polymarket US
Service health check endpoint
GET
/v1/health
{ "status": "ok" }
status
ok
curl https://api.preprod.polymarketexchange.com/v1/health
curl https://api.prod.polymarketexchange.com/v1/health
import requests import time def check_health(base_url): try: response = requests.get(f"{base_url}/v1/health", timeout=5) if response.status_code == 200: data = response.json() print(f"✓ Service is {data['status']}") return True else: print(f"✗ Unexpected status code: {response.status_code}") return False except Exception as e: print(f"✗ Health check failed: {e}") return False # Check preprod environment check_health("https://api.preprod.polymarketexchange.com")
livenessProbe: httpGet: path: /v1/health port: 443 scheme: HTTPS initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \ CMD curl -f https://api.preprod.polymarketexchange.com/v1/health || exit 1