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: b5dc88fa-5246-4e2b-bc0b-f169636c952e
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": "b5dc88fa-5246-4e2b-bc0b-f169636c952e",
  "clientId": "user12345"
}
200Success
{
  "success": true,
  "response": {
    "id": "b5dc88fa-5246-4e2b-bc0b-f169636c952e",
    "clientId": "user12345",
    "clientEmail": "[email protected]",
    "clientName": "John Doe",
    "depositWebhookUrl": "https://merchant.domain/webhooks/user12345",
    "createdAt": "2025-07-15T10:50:46.088Z",
    "updatedAt": "2025-07-15T10:50:46.088Z",
    "addresses": {
      "id": "eb0534d1-c9f6-42b4-bc2e-5e02f2d62a82",
      "userId": "ec4c5b81-6c1d-4537-96a2-a32d781088b8",
      "currency": "USDT",
      "network": "ethereum",
      "address": "0x515b72ed8a97f42c568d6a143232775018f133c8",
      "tag": null,
      "balance": "1234.1234",
      "isActive": true
    }
  }
}

Last updated