Authentication
Base URL
Certificates
List
Get
Revoke
key_compromise, ca_compromise, affiliation_changed, superseded, cessation_of_operation.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
REST API for programmatic access to CertForge certificates, approvals, and audit data.
Authorization: Bearer YOUR_API_KEY
https://app.certgov.app/api/v1 (cloud)
https://your-host/api/v1 (self-hosted)
GET /api/v1/certs
| Query param | Description |
|---|---|
dtp | Filter by DTP ID |
expiring_days | Only return certs expiring within N days |
status | active | expired | revoked |
{
"certs": [
{
"id": "cert_abc123",
"domains": ["api.internal.corp.com"],
"dtp_id": "internal-services",
"environment": "production",
"issued_at": "2026-01-01T00:00:00Z",
"expires_at": "2027-01-01T00:00:00Z",
"days_remaining": 228,
"status": "active"
}
],
"total": 1
}
GET /api/v1/certs/{id}
POST /api/v1/certs/{id}/revoke
Content-Type: application/json
{ "reason": "key_compromise" }
key_compromise, ca_compromise, affiliation_changed, superseded, cessation_of_operation.
GET /api/v1/approvals?status=pending
GET /api/v1/approvals/{id}
POST /api/v1/approvals/{id}/approve
POST /api/v1/approvals/{id}/reject
Content-Type: application/json
{ "reason": "Domain not in approved list" }
GET /api/v1/audit?event_type=certificate.&days=30&limit=100
| Query param | Description |
|---|---|
event_type | Exact type, or prefix ending in . (e.g. certificate.) |
days | Events from the last N days |
outcome | success | failed | pending |
limit | Max results (default 100, max 1000) |
GET /api/v1/platform/orgs
POST /api/v1/platform/orgs
GET /api/v1/platform/orgs/{id}
{
"error": "certificate not found",
"code": "not_found"
}
| HTTP status | Meaning |
|---|---|
400 | Bad request — invalid parameters |
401 | Missing or invalid API key |
403 | Insufficient permissions |
404 | Resource not found |
429 | Rate limit exceeded |
500 | Internal server error |
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 987
X-RateLimit-Reset: 1716030060
POST https://your-host:8443/v1/enroll