get https://trapi-dev.codevasp.com/v1/code/Vasp//pubkey
This returns a list of VASP public keys corresponding to VaspEntityId.
You can use this API to query the Public Key of a specific VASP. While the results from 'VASP List Search' may include some cached data, this API retrieves current data.
For example, when you receive 422 INVALID_RECEIVER_PUBLIC_KEY
error, you can call this API to check if the Public Key has been changed.
❗️This API works in a synchronous manner, providing an immediate response upon request.
Path Parameters
Name | Required | Type | Description |
---|---|---|---|
VaspEntityId | Required | string | Enter the VaspEntityId of the VASP, which wants to obtain a list of public keys. |
Response
Name | Required | Type |
---|---|---|
pubkeys | Required | array |
pubkeys: an array of pubkey objects registered to VASP. Each object consists of pubkey and ExpiresAt fields.
-pubkey
: base64-encoded pubkey
-expiresAt
: the expiration time of the pubkey. This uses UTC time in ISO 8601 format.