Get user profile

Get information about a user and its KYC.

URL

GET https://exchange.savitar.io/api/v1/user

Response Data

email
string
User Email.
role
enum
Id document verification state.
Possible values: user, business:user, business:master, business:subuser
uid
string
User unique identifier.
kyc_complete
bool
true if user is fully verified.
kyc.phone
enum
User’s phone verification state.
Possible values: none, pending, verified
kyc.id_document
enum
User’s id document verification state.
Possible values: none, pending, verified
kyc.liveness
enum
Liveness verification state.
Possible values: none, pending, verified
profile.dob
string
User’s date of birth.
Format: DD-MM-YYYY
profile.first_name
string
User’s first name.
profile.last_name
string
User’s last name.
profile.gender
enum
User’s gender.
Possible values: M, F

Example

Request:

curl -H "Authorization: Bearer $JWT_TOKEN" \
     https://exchange.savitar.io/api/v1/user

Response:

{
  "status": "ok",
  "response": {
    "email": "[email protected]",
    "kyc": {
      "id_document": "none",
      "liveness": "none",
      "phone": "none"
    },
    "kyc_complete": true,
    "profile": {
      "dob": "03-01-2009",
      "first_name": "Satoshi",
      "gender": "M",
      "last_name": "Nakamoto"
     },
     "role": "user",
     "uid": "IDB9E0A6C8AB"
  }
}