Skip to main content
GET
/
v1
/
account
Get Account
curl --request GET \
  --url https://api.ondoperps.xyz/v1/account \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "result": {
    "accountID": "10458932786832481",
    "identifier": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
    "authType": "web3",
    "accountState": "open",
    "withdrawalFeeUSD": "0.00",
    "termsVersion": 2,
    "termsUnixSecs": 1704067200,
    "privacyVersion": 1,
    "privacyUnixSecs": 1704067200,
    "marketingConsent": "accepted"
  }
}

Authorizations

Authorization
string
header
required

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

Response

Account info

success
boolean
required

Whether the request was successful

Example:

true

error
string

Error message, present only on failure

Example:

""

error_code
string

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecated
string

Deprecation notice, if applicable

Example:

""

result
object