Skip to main content
PATCH
Update a contact

Authorizations

Authorization
string
header
required

Platform access token from POST /auth/token, carrying the platform audience and the developer_key_id of the registration that minted it. It acts as your own account; name a client you created with X-Hevn-Account: cl_…. Every request re-checks that the registration is still active and that the caller's source IP is inside its allowlist. A token is valid only against the server that issued it, so sandbox tokens are refused in production and production tokens in the sandbox.

Headers

X-Hevn-Account
string | null

The client account to act for, as a cl_… id. Omit it to act as yourself.

Example:

"cl_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41"

x-api-key
string | null
Idempotency-Key
string | null

Your own key for this write, ^[A-Za-z0-9._:-]{1,128}$. A retry with the same key replays the first answer; the same key with a different request is refused.

Example:

"po-inv-2026-114"

Path Parameters

contactId
string
required

Body

application/json
name
string | null

Updated contact name.

Required string length: 1 - 200
address
UserAddress · object | null

Updated postal address.

isExternal
boolean | null

Whether the contact is outside the selected account.

holder
ContactHolderUpdate · object | null

Updated payment-account holder identity.

intermediaryBank
IntermediaryBank · object | null

Updated intermediary institution; send null to remove it.

Response

Successful Response

id
string
required

Stable public identifier for this contact.

Pattern: ^(?:ct_)?[A-Za-z0-9._:\-]{1,216}$
Example:

"ct_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41"

name
string
required

Human-readable contact name.

isExternal
boolean
required

Whether the contact is outside the selected account.

createdAt
string<date-time>
required

UTC timestamp when the contact was created.

email
string | null

Email associated with an existing HEVN contact.

address
UserAddress · object | null

Postal address of the contact or account holder.

bank
ContactPaymentAccountView · object | null

Payment-account destination details.

crypto
ContactCryptoView · object | null

On-chain destination details.