Skip to main content
PUT
/
api
/
v1
/
user
/
kyc
Create or get current user
curl --request PUT \
  --url https://api.hevn.finance/api/v1/user/kyc \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "firstName": "<string>",
  "lastName": "<string>",
  "birthDate": "2023-12-25",
  "isBusiness": true,
  "entityName": "<string>",
  "phone": "<string>",
  "website": "<string>",
  "address": {
    "streetAddress": "<string>",
    "addressLine2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>"
  },
  "avatarUrl": "<string>",
  "contactInfo": "<string>",
  "inviteCode": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "<string>",
  "phone": "<string>",
  "avatarUrl": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "contactInfo": "<string>",
  "firstName": "<string>",
  "middleName": "<string>",
  "lastName": "<string>",
  "entityName": "<string>",
  "birthDate": "2023-12-25",
  "country": "<string>",
  "jurisdiction": "<string>",
  "address": {
    "streetAddress": "<string>",
    "addressLine2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>"
  },
  "fiatRails": [],
  "isBusiness": true,
  "plan": "free",
  "referrer": {
    "name": "<string>",
    "email": "<string>",
    "avatarUrl": "<string>"
  },
  "pushNotificationAllowed": true,
  "myIp": "<string>",
  "bankRequested": {
    "rails": {
      "us": {
        "pooled": false,
        "named": false
      },
      "swift": {
        "pooled": false,
        "named": false
      },
      "eu": {
        "pooled": false,
        "named": false
      },
      "uae": {
        "pooled": false,
        "named": false
      }
    }
  }
}

Authorizations

Authorization
string
header
default:Bearer <token>
required

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

Body

application/json

Request schema for creating a user.

firstName
string | null
Required string length: 1 - 100
lastName
string | null
Required string length: 1 - 100
country
enum<string> | null

ISO 3166-1 alpha-2 country codes.

Available options:
AF,
AX,
AL,
DZ,
AS,
AD,
AO,
AI,
AQ,
A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birth date in ISO format

isBusiness
boolean | null
entityName
string | null
phone
string | null
website
string | null
address
UserAddress · object

Address schema for user.

Canonical field names: street_address, address_line_2, city, state, country, zip. Accepts legacy Align/IBAN field names (street_line_1, street_line_2, postal_code) for backward compatibility with existing JSONB data.

avatarUrl
string | null
contactInfo
string | null
inviteCode
string | null

Invite code from referrer

Response

Successful Response

Schema for user response.

id
string<uuid>
required
email
string
required
phone
string | null
required
avatarUrl
string | null
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
contactInfo
string | null
firstName
string | null
middleName
string | null
lastName
string | null
entityName
string | null
birthDate
string<date> | null
country
string | null
jurisdiction
string | null
address
UserAddress · object

Address schema for user.

Canonical field names: street_address, address_line_2, city, state, country, zip. Accepts legacy Align/IBAN field names (street_line_1, street_line_2, postal_code) for backward compatibility with existing JSONB data.

fiatRails
FiatRailResponse · object[]
isBusiness
boolean | null
plan
string
default:free
referrer
ReferrerInfo · object

Lightweight info about the user who referred this user.

pushNotificationAllowed
boolean | null
myIp
string | null
bankRequested
BankRequestedSettings · object

User bank-rail interest settings.