API Reference
Generate and query evidence programmatically. SDKs are available for Go, TypeScript, and Python — the REST API underlies all three.
Authentication
Every request requires a Bearer token in the Authorization header. Tokens are scoped — a token created for CI attestation can't query the Evidence Graph unless explicitly granted that scope.
Authorization: Bearer sk_live_•••
Base URL: https://api.cdk.dev/v1
Create an attestation
POST /attestations — generates a signed attestation for a delivery event.
POST /v1/attestations
{
"event": "deployment.approved",
"artifact": "release-2026.07",
"policy": "release-policy-v3"
}
{
"id": "att_8f92ab",
"status": "verified",
"signature": "sha256:8f92ab…"
}
All endpoints
Attestations
Evidence Graph
Policies
Rate limits
600 requests per minute per token by default. Enterprise plans can raise this limit — contact your account team.
Errors
Malformed request body or missing required field.
Missing or invalid Bearer token.
Token is valid but lacks the required scope.
Attestation, policy, or artifact not found.
Rate limit exceeded.
Something failed on CDK's side — retry with backoff.