Generate a public key

POST
/end-to-end-keys
Generates a public key used to create a JWE token for passing secure authentication data through non-PCI compliant intermediaries.
curl -X POST "https://api.moov.io/end-to-end-keys" \
  -H "Authorization: Bearer {token}" \
  -H "X-Moov-Version: v2027.01.00"
200 429
The request completed successfully.
application/json
{
  "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"
}

x-request-id

string required
A unique identifier used to trace requests.
Request was refused due to rate limiting.

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

application/json

kty

string required
The cryptographic algorithm family used with the key (e.g., 'RSA', 'EC', 'oct').

alg

string
The algorithm intended for use with the key, e.g., 'RS256' or 'ES256'.

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'.

e

string

The exponent value for RSA keys.

This field is required when kty is 'RSA'.

key_ops

array<string>
The permitted operations for the key, e.g., 'sign', 'verify', 'encrypt', 'decrypt'.

kid

string
A unique identifier for the key.

n

string

The modulus value for RSA keys.

This field is required when kty is 'RSA'.

use

string<enum>
The intended use of the key. 'sig' for signature, 'enc' for encryption.
Possible values: sig, enc

x

string

The x coordinate for Elliptic Curve keys.

This field is required when kty is 'EC'.

y

string

The y coordinate for Elliptic Curve keys.

This field is required when kty is 'EC'.