Skip to main content
POST
Create a contact

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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"

Body

application/json
name
string
default:""

Human-readable contact name.

Maximum string length: 200
currency
string | null

Destination currency.

Required string length: 3 - 4
email
string | null

Email used to resolve an existing HEVN contact.

crypto
ContactCryptoInput · object | null

Legacy on-chain destination details.

account
PlatformOnchainAccountInput · object

Typed payment-account, email or on-chain destination.

bank
ContactPaymentAccount · object | null

Legacy payment-account destination details.

address
UserAddress · object | null

Postal address of the contact or account holder.

isExternal
boolean | null

Whether the contact is outside the selected account.

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.

userId
string<uuid> | null

Account behind an existing HEVN contact.

user
ContactLinkedUserView · object | null

Profile of the linked HEVN account.