Get user

The method allows you to get the user

Request:

Parameter

Required

Type

Description

userId

Yes

String

User ID

Response:

Parameter

Type

Description

id

String

User ID

email

String

User's email

utm

String or null

UTM tag data (if the user has registered via the web interface)

createdAt

String

User registration date

confirmedAt

String or null

Date of confirmation of the user's mail

lastLoginAt

String

Date of the user's last login via the web interface

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

The body of the request to receive user data

userIdstringRequired

User ID

Example: ed83d19f-30ef-4b3f-bca9-edd2c7714b16
Responses
200Success
application/json
post
POST /partner/api/get-user HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 49

{
  "userId": "ed83d19f-30ef-4b3f-bca9-edd2c7714b16"
}
200Success
{
  "success": true,
  "response": {
    "id": "ed83d19f-30ef-4b3f-bca9-edd2c7714b16",
    "email": "[email protected]",
    "password": "sCPJUXnBrJ",
    "utm": null,
    "createdAt": "2025-06-09T13:18:11.462Z",
    "updatedAt": "2025-06-09T13:18:11.462Z",
    "confirmedAt": "2025-06-09T14:18:11.462Z",
    "lastLoginAt": null
  }
}

Last updated