التحقق من إيصال الوكيل
curl --request GET \
--url https://api.truthlocks.com/v1/agent-receipts/verify/{receiptID} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/agent-receipts/verify/{receiptID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/agent-receipts/verify/{receiptID}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/agent-receipts/verify/{receiptID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"receipt_id": "<string>",
"valid": true,
"verdict": "<string>",
"reason": "<string>",
"signature_verified": true,
"transparency_verified": false
}إيصالات الوكيل (MAIP)
التحقق من إيصال الوكيل
التحقق من الحقول الموقعة مقابل المفتاح العام المحتفظ به والتحقق من حالة دورة الحياة. الإيصالات القديمة ذات المفاتيح المفقودة غير قابلة للتحقق. يحافظ التدوير على التحقق التاريخي. لا تتحقق نقطة النهاية هذه من تضمين سجل الشفافية.
GET
/
v1
/
agent-receipts
/
verify
/
{receiptID}
التحقق من إيصال الوكيل
curl --request GET \
--url https://api.truthlocks.com/v1/agent-receipts/verify/{receiptID} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/agent-receipts/verify/{receiptID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/agent-receipts/verify/{receiptID}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/agent-receipts/verify/{receiptID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"receipt_id": "<string>",
"valid": true,
"verdict": "<string>",
"reason": "<string>",
"signature_verified": true,
"transparency_verified": false
}التحقق من الحقول الموقعة مقابل المفتاح العام المحتفظ به والتحقق من حالة دورة الحياة. الإيصالات القديمة ذات المفاتيح المفقودة غير قابلة للتحقق. يحافظ التدوير على التحقق التاريخي. لا تتحقق نقطة النهاية هذه من تضمين سجل الشفافية.
استخدم مفتاح واجهة برمجة تطبيقات مساحة العمل أو رمز الحامل. قم بترميز المعرف الكامل
maip-receipt: كجزء واحد من مسار عنوان URL.
