post
https://staging.ankatech.co/api/v3/admin/tenants//keys//archive
Moves a revoked key to archived state for compliance/audit retention.
Archived keys are read-only and cannot be used for cryptographic operations.
Workflow:
- Validates tenant access from JWT
- Validates key is in REVOKED state
- Updates key status to ARCHIVED in PostgreSQL
- Publishes audit event to Kafka
Use cases:
- Long-term compliance retention after revocation
- Audit trail preservation
- Historical data retention requirements
State transition: REVOKED → ARCHIVED (other states rejected with 409).
Authorization: requires scope admin.keys.archive.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
204Key archived successfully (no content).
406Not Acceptable — the request Accept header excludes every representation this endpoint produces. Per RFC 9110 §15.5.7 the response carries NO body and NO Content-Type.