Create user

The method allows you to create a user. If a user with such an email is already registered, the method will return the corresponding error.

Request:

Parameter

Required

Type

Description

email

Yes

String

User's email

Response:

Parameter

Type

Description

id

String

User ID

email

String

User's email

password

String

Generated password (shown only when created)

lastLoginAt

String or null

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

Create 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 user creation request

emailstringRequired

User's email

Example: [email protected]
Responses
200Success
application/json
post
POST /partner/api/create-user HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "email": "[email protected]"
}
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