Samvaad calls this endpoint to generate a new Data Encryption Key (DEK). This is part of the key rotation strategy. You must return both the new plaintext DEK and its encrypted form (the EDEK) along with the key-alias used for encyption. Samvaad will use this new key for all subsequent encryption operations for the associated data.
A token sent in the Authorization header.
This can be one of two types:
/auth endpoint.In both cases, the header format is Authorization: Bearer <token>.
A unique identifier for this specific API call, generated by the client (Samvaad).
An identifier to trace a single request across multiple services.
The ISO 8601 timestamp of when the client sent the request.
New DEK successfully generated. Returns the new encrypted and plaintext DEK.
The response payload containing the new DEK in both plaintext and encrypted forms.