const res = await fetch(`${invite.api}/kyc-inbox/${invite.sourceId}`, { headers: { Authorization: `Bearer ${invite.token}` }});const { data } = await res.json();if (!data.recipientKey || data.recipientKey.publicKey !== invite.recipientKey) { throw new Error('The bank uses another key than the invite pins. Nothing was sent.');}
Returns how the bank set up your source: its name, status and profile key, the bank’s current recipient key, the size limit and Trusset’s clock. Call it before every delivery to check that the bank still uses the key your invite pins.
Compare recipientKey.publicKey with the recipientKey in your invite and send nothing when they differ. Never seal to the key this endpoint reports. It passes through Trusset, and the invite, whose fingerprint you confirmed with the bank, is your reference. A different key means the bank replaced its key: ask the bank for a new invite.
Path Parameters
string
required
Your source ID, from the invite.
Response Fields
object
Show child attributes
string
Your source ID.
string
The name the bank gave your source.
string
ACTIVE or PAUSED. While paused, deliveries are refused with 403 SOURCE_PAUSED.
string
The profile key every header must carry. When it differs from your invite, the bank changed it: ask for a new invite.
string
PRODUCTION or DEVELOPMENT.
object
{ keyId, publicKey } of the bank’s current recipient key, or null when the bank has none registered.
object
{ maxCiphertextBytes }: the largest ciphertext accepted, 6291456.
string
Trusset’s clock, ISO 8601. The timing rules for issuedAt, verifiedAt and validUntil are measured against it.
const res = await fetch(`${invite.api}/kyc-inbox/${invite.sourceId}`, { headers: { Authorization: `Bearer ${invite.token}` }});const { data } = await res.json();if (!data.recipientKey || data.recipientKey.publicKey !== invite.recipientKey) { throw new Error('The bank uses another key than the invite pins. Nothing was sent.');}
const res = await fetch(`${invite.api}/kyc-inbox/${invite.sourceId}`, { headers: { Authorization: `Bearer ${invite.token}` }});const { data } = await res.json();if (!data.recipientKey || data.recipientKey.publicKey !== invite.recipientKey) { throw new Error('The bank uses another key than the invite pins. Nothing was sent.');}