Generate a public key
POST
/end-to-end-keys
curl -X POST "https://api.moov.io/end-to-end-keys" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00"The request completed successfully.
{
"use": "enc",
"kty": "EC",
"kid": "bOaoOIgm-7dI_gBIvsr0jQrPyYp6H_od0Ok-hSYZQ-g=",
"crv": "P-521",
"alg": "ECDH-ES+A256KW",
"x": "ABcm3wzKpPzYYwjDC0HSrxxVM3ULbuMDUuzkR5wNciaMHkZvQ02gLFdqTL65evV7EWaQyC7zRc28eW20p5MVDdQr",
"y": "AVa-eQsoiltOcQYy1QEcrQ9NbWktl_D4ewfg8diOZ2_svLEgEu4T1PqNcLbBGozP_VqPkXOMwNCUNI7pxajVGiIP"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Request was refused due to rate limiting.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Headers
X-Moov-Version
string
Set this header to v2027.01.00 to use the API described in this specification.
When omitted, the server defaults to v2024.01.00, the earliest supported version, which may not match the behavior documented here.
An unrecognized well-formed version uses the latest supported version that is not newer than the requested version, when one exists.
For example,
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
Possible values:
v2027.01.00
Response
kty
string
required
The cryptographic algorithm family used with the key (e.g., 'RSA', 'EC', 'oct').
crv
string
The curve for Elliptic Curve keys, e.g., 'P-256', 'P-384', or 'P-521'.
This field is required when kty is 'EC'.
key_ops
array<string>
The permitted operations for the key, e.g., 'sign', 'verify', 'encrypt', 'decrypt'.