curl --request POST \
--url https://api.mnemom.ai/v1/dojo/receipt/verify \
--header 'Content-Type: application/json' \
--data '
{
"receipt": "<string>"
}
'import requests
url = "https://api.mnemom.ai/v1/dojo/receipt/verify"
payload = { "receipt": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({receipt: '<string>'})
};
fetch('https://api.mnemom.ai/v1/dojo/receipt/verify', 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.mnemom.ai/v1/dojo/receipt/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'receipt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mnemom.ai/v1/dojo/receipt/verify"
payload := strings.NewReader("{\n \"receipt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mnemom.ai/v1/dojo/receipt/verify")
.header("Content-Type", "application/json")
.body("{\n \"receipt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/dojo/receipt/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"receipt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"key_id": "<string>",
"payload": {},
"errors": [
"<string>"
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Verify a Dojo completion receipt against the published JWKS.
PUBLIC — in-band Ed25519 verification of a posted completion-receipt JWS against the CURRENTLY published JWKS (/v1/.well-known/jwks.json; active + retired-wi…
curl --request POST \
--url https://api.mnemom.ai/v1/dojo/receipt/verify \
--header 'Content-Type: application/json' \
--data '
{
"receipt": "<string>"
}
'import requests
url = "https://api.mnemom.ai/v1/dojo/receipt/verify"
payload = { "receipt": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({receipt: '<string>'})
};
fetch('https://api.mnemom.ai/v1/dojo/receipt/verify', 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.mnemom.ai/v1/dojo/receipt/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'receipt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mnemom.ai/v1/dojo/receipt/verify"
payload := strings.NewReader("{\n \"receipt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mnemom.ai/v1/dojo/receipt/verify")
.header("Content-Type", "application/json")
.body("{\n \"receipt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/dojo/receipt/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"receipt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"key_id": "<string>",
"payload": {},
"errors": [
"<string>"
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Body
The receipt JWS Compact serialization to verify.
Response
The structured verification verdict (valid:true/false).
The receipt's decoded payload. On valid:true this is a full DojoCompletionReceipt/v1 payload (the shape of receiptResponseSchema.payload). On valid:false it is the BEST-EFFORT decoded payload — untrusted and possibly partial or arbitrary (whatever the presented, unverified JWS decoded to) — echoed for diagnostics, so it is intentionally NOT constrained to the strict receipt shape (a tampered/bogus receipt must still surface as a 200 valid:false, never a 500). null when the JWS could not be parsed at all.