Get user

The method allows you to get user data by his id or clientId

Get user

post
Header parameters
x-api-public-keystringOptional

Public API-key

x-api-signaturestringOptional

Signing the request body with a private API-key

Content-typestringOptional

Request content type

Example: application/json
Body

User data request body

idstringOptional

User ID in the system. Required, if 'clientId' was not provided

Example: 7a5da491-23d6-40be-93db-550069ef7235
clientIdstringOptional

User ID in the merchant system. Required, if 'id' was not provided

Example: user12345
Responses
200Success
application/json
post
POST /api-gateway/personal-addresses/get-user HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 68

{
  "id": "7a5da491-23d6-40be-93db-550069ef7235",
  "clientId": "user12345"
}
200Success
{
  "success": true,
  "response": {
    "id": "7a5da491-23d6-40be-93db-550069ef7235",
    "clientId": "user12345",
    "clientEmail": "[email protected]",
    "clientName": "John Doe",
    "depositWebhookUrl": "https://merchant.domain/webhooks/user12345",
    "createdAt": "2025-06-09T11:38:26.579Z",
    "updatedAt": "2025-06-09T11:38:26.579Z",
    "addresses": {
      "id": "0e8e5b6f-1d2c-4ca6-9505-f913bcd1ec5d",
      "userId": "f44582c6-6ece-416b-95e1-de850244588b",
      "currency": "USDT",
      "network": "ethereum",
      "address": "0x515b72ed8a97f42c568d6a143232775018f133c8",
      "tag": null,
      "balance": "1234.1234",
      "isActive": true
    }
  }
}

Last updated