Skip to main content
POST
Set public key

Authorizations

Authorization
string
header
required

Your API key from Console → Settings → Key & Access, sent as Authorization: Bearer ncl_....

Body

application/x-www-form-urlencoded
pubkey
string
required

1024-bit RSA public key in PEM format. Card data is encrypted to this key with RSA/NONE/OAEPWithSHA1AndMGF1Padding. See Card data encryption.

Example:

"-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3Xopx+SXBrNz7PXFnoNuTiljGkWIqQMH79PeIDJYCJEYT7yzTNz2l2SaOWa2ZrMmns6ck/8HzQaa4REzXqfxnCxwqwaFlgi90+N3YtvDgnG5J9YxabRUmaUjW1P4/obLRQ5EXtFuSEYOQgkQ6wL4fyk8aNnBV5gqeUONrFmIfUQIDAQAB-----END PUBLIC KEY-----"

Response

200 - application/json

Success

code
integer
required
msg
string
required
data
boolean
required