Users delete
curl --request DELETE \
--url https://api.stablemint.io/v1/users/{userId} \
--header 'ApiKey: <api-key>' \
--header 'Nonce: <api-key>' \
--header 'Signature: <api-key>' \
--header 'Timestamp: <api-key>'import requests
url = "https://api.stablemint.io/v1/users/{userId}"
headers = {
"ApiKey": "<api-key>",
"Nonce": "<api-key>",
"Signature": "<api-key>",
"Timestamp": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
ApiKey: '<api-key>',
Nonce: '<api-key>',
Signature: '<api-key>',
Timestamp: '<api-key>'
}
};
fetch('https://api.stablemint.io/v1/users/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stablemint.io/v1/users/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>",
"Nonce: <api-key>",
"Signature: <api-key>",
"Timestamp: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stablemint.io/v1/users/{userId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("ApiKey", "<api-key>")
req.Header.Add("Nonce", "<api-key>")
req.Header.Add("Signature", "<api-key>")
req.Header.Add("Timestamp", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.stablemint.io/v1/users/{userId}")
.header("ApiKey", "<api-key>")
.header("Nonce", "<api-key>")
.header("Signature", "<api-key>")
.header("Timestamp", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablemint.io/v1/users/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["ApiKey"] = '<api-key>'
request["Nonce"] = '<api-key>'
request["Signature"] = '<api-key>'
request["Timestamp"] = '<api-key>'
response = http.request(request)
puts response.read_bodyusers
Users delete
DELETE
/
v1
/
users
/
{userId}
Users delete
curl --request DELETE \
--url https://api.stablemint.io/v1/users/{userId} \
--header 'ApiKey: <api-key>' \
--header 'Nonce: <api-key>' \
--header 'Signature: <api-key>' \
--header 'Timestamp: <api-key>'import requests
url = "https://api.stablemint.io/v1/users/{userId}"
headers = {
"ApiKey": "<api-key>",
"Nonce": "<api-key>",
"Signature": "<api-key>",
"Timestamp": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
ApiKey: '<api-key>',
Nonce: '<api-key>',
Signature: '<api-key>',
Timestamp: '<api-key>'
}
};
fetch('https://api.stablemint.io/v1/users/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stablemint.io/v1/users/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>",
"Nonce: <api-key>",
"Signature: <api-key>",
"Timestamp: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stablemint.io/v1/users/{userId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("ApiKey", "<api-key>")
req.Header.Add("Nonce", "<api-key>")
req.Header.Add("Signature", "<api-key>")
req.Header.Add("Timestamp", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.stablemint.io/v1/users/{userId}")
.header("ApiKey", "<api-key>")
.header("Nonce", "<api-key>")
.header("Signature", "<api-key>")
.header("Timestamp", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablemint.io/v1/users/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["ApiKey"] = '<api-key>'
request["Nonce"] = '<api-key>'
request["Signature"] = '<api-key>'
request["Timestamp"] = '<api-key>'
response = http.request(request)
puts response.read_bodyAuthorizations
The service account's API key.
A GUID, single-use. A replayed nonce is rejected.
Base64 RSA/SHA-256 (PKCS#1 v1.5) signature over the canonical string: METHOD, path, canonical query, Timestamp, Nonce, API secret and the lowercase hex SHA-256 of the raw body, joined with LF. Sign the PUBLIC path exactly as called (e.g. /v1/webhooks), not any internal path.
Unix seconds. Rejected outside the server's tolerance window.
Path Parameters
Response
OK