COI Clock

COI Clock REST API

Manage vendors and read compliance status from your own scripts. JSON over HTTPS.

Authentication

Create a key in Settings. It is shown once; we store only a hash. Send it as a bearer token:

curl -H "Authorization: Bearer coi_..." https://www.coiclock.com/api/v1/monitors

Revoke a key in Settings at any time. Keys act on the account they were created in.

Rate limits

Keep to 60 requests per minute per key. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Over the limit you may get 429 with Retry-After; back off and retry.

Endpoints

MethodPathWhat it does
GET/api/v1/monitorsList vendors with the latest compliance status.
POST/api/v1/monitorsAdd a vendor hostname placeholder. Prefer the dashboard form with vendor name and email.
GET/api/v1/monitors/{id}One vendor.
GET/api/v1/monitors/{id}/checksThe last 50 compliance checks.
POST/api/v1/monitors/{id}/checkRecheck coverage and return the result.
DELETE/api/v1/monitors/{id}Remove a vendor. Returns 204.

Vendor object

{
  "id": "...", "hostname": "acme.vendor.invalid", "port": 443, "paused": false,
  "status": "ok" | "problem" | "pending", "error_code": null,
  "days_remaining": 76, "last_checked_at": "...",
  "created_at": "..."
}

days_remaining is days until the earliest policy expiry. status is ok when the latest certificate meets your requirements.

Errors

Errors return {"error": "code", "message": "..."} with codes unauthorized, invalid_json, invalid_hostname, plan_limit, duplicate, not_found and rate_limited.

Signed webhooks

COI Clock sends Slack and Teams alerts from Starter. A generic signed webhook is not part of published plans.