Bootstrap a CertOps diagnostic agent
POST/api/v1/workspaces/:id/certops/agents/diagnostic-bootstrap
Session-authenticated (requires certops.agents.diagnose, admin-only). Atomically consumes a single-use requestId, creates an agent with agent_kind "diagnostic", and creates its protocol_smoke job, all in one transaction. The response's credential is returned exactly once and is not recoverable afterward. Retrying with the same requestId never replays the original agentId/credential/job; it fails with diagnostic_bootstrap_already_consumed. Requests are rate limited per workspace. Diagnostic agents that stay inactive for 24 hours are retired automatically; retirement revokes the credential in the same transaction that marks the agent retired, so a retired diagnostic agent's credential fails authentication immediately, not just authorization.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
Diagnostic agent and its protocol_smoke job were created
requestId is missing or too long
Unauthorized
Forbidden
CertOps is disabled for this workspace
This exact requestId was already consumed by a prior bootstrap call
Request rejected because it contained private key material
Diagnostic bootstrap is rate limited for this workspace
Internal server error