Request format

Endpoint
https://api.cryptomus.com/
COPY

All requests must use the appropriate HTTP methods (GET, POST, PUT, DELETE, etc.) following REST semantics and be sent in JSON format.
The request must be signed.

Authentication

The authentication process is carried out by sending 2 HTTP headers:

NameDefinition
userIdThe user's UUID, which you can find in your personal account when you click on the user's icon.
signMD5 hash of the body of the POST request encoded in base64 and combined with your API key.

Definition

The user's UUID, which you can find in your personal account when you click on the user's icon.

Definition

MD5 hash of the body of the POST request encoded in base64 and combined with your API key.

Example of signature generation in php:


$data = json_encode($data);
$sign = md5(base64_encode($data) . $API_KEY);
COPY

If the request doesn’t require passing parameters in the body, then form a signature for an empty string:


$sign = md5(base64_encode('') . $API_KEY);
COPY
Different Key APIs are used to accept payments and payouts

Request example


curl https://api.cryptomus.com/v1/payment/services \
  -X POST \
  -H 'userId: 8b03432e-385b-4670-8d06-064591096795' \
  -H 'sign: f80fa426a89eb62bd53997326865d850' \
  -H 'Content-Type: application/json' \
  -d '{}'
COPY