Skip to content

API Reference

All API requests target the base URL:

https://api.complyform.dev

ComplyForm uses three authentication methods depending on the endpoint.

Pass your API key in the X-API-Key header:

Terminal window
curl -H "X-API-Key: cf_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
https://api.complyform.dev/v1/dashboard/push

API keys are provisioned during complyform activate and grant access to:

  • Dashboard push — upload scan results
  • Project management — create, list, archive projects
  • Exports — CSV and JSON report downloads
  • Drift configuration — set baseline and alert thresholds

See Authentication for key rotation and storage guidance.

All endpoints enforce rate limits per source IP or API key. Exceeding a limit returns 429 Too Many Requests or, for abuse-prone endpoints, a temporary ban.

Endpoint CategoryLimitExceeded Behavior
Auth (login)10 / min5-minute ban
License validation10 / min429 response
Drift ingestion120 / min429 response
License resend3 / min15-minute ban
Dashboard writes5 / min429 response
Export10 / min429 response
General60 / min429 response

All responses are JSON. Successful requests return a top-level object with endpoint-specific fields. Errors include error and message:

{
"error": "rate_limit_exceeded",
"message": "Too many requests. Retry after 60 seconds."
}

Common HTTP status codes:

CodeMeaning
200Success
400Malformed request body or missing fields
401Missing or invalid authentication
403Valid credentials but insufficient tier/scope
409Conflict (e.g., duplicate project label)
429Rate limit exceeded
500Internal server error

The API sets Access-Control-Allow-Origin to:

  • https://dashboard.complyform.dev
  • https://complyform.dev

CLI and CI/CD integrations are not affected by CORS since they make server-to-server requests.

EndpointMethodAuthDescription
/v1/dashboard/pushPOSTAPI KeyPush scan results to the dashboard
/v1/license/validatePOSTLicense HashValidate license and fetch profile bundle
/v1/license/resendPOSTNoneResend license key to registered email
/v1/drift/ingestPOSTAPI KeySubmit drift detection events

See Authentication for details on each auth method, key lifecycle, and the OAuth flow.