curl --request POST \
--url https://api.limitguard.ai/v1/certificate/issue \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entity_name": "<string>",
"country": "<string>",
"trust_score": 50,
"trust_level": "<string>",
"valid_days": 365
}
'import requests
url = "https://api.limitguard.ai/v1/certificate/issue"
payload = {
"entity_name": "<string>",
"country": "<string>",
"trust_score": 50,
"trust_level": "<string>",
"valid_days": 365
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entity_name: '<string>',
country: '<string>',
trust_score: 50,
trust_level: '<string>',
valid_days: 365
})
};
fetch('https://api.limitguard.ai/v1/certificate/issue', 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.limitguard.ai/v1/certificate/issue",
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([
'entity_name' => '<string>',
'country' => '<string>',
'trust_score' => 50,
'trust_level' => '<string>',
'valid_days' => 365
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.limitguard.ai/v1/certificate/issue"
payload := strings.NewReader("{\n \"entity_name\": \"<string>\",\n \"country\": \"<string>\",\n \"trust_score\": 50,\n \"trust_level\": \"<string>\",\n \"valid_days\": 365\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.limitguard.ai/v1/certificate/issue")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entity_name\": \"<string>\",\n \"country\": \"<string>\",\n \"trust_score\": 50,\n \"trust_level\": \"<string>\",\n \"valid_days\": 365\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.limitguard.ai/v1/certificate/issue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entity_name\": \"<string>\",\n \"country\": \"<string>\",\n \"trust_score\": 50,\n \"trust_level\": \"<string>\",\n \"valid_days\": 365\n}"
response = http.request(request)
puts response.read_body{
"certificate_id": "<string>",
"entity_name": "<string>",
"country": "<string>",
"trust_score": 50,
"trust_level": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"certificate_hash": "<string>",
"json_ld": {},
"issuer": "LimitGuard.ai",
"schema_version": "1.0",
"status": "active"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Issue Certificate
Issue a new trust certificate.
Requires authentication via X-API-Key header.
Args: request: Certificate issuance request api_key: Validated API key from header
Returns: Issued TrustCertificate with hash and JSON-LD
curl --request POST \
--url https://api.limitguard.ai/v1/certificate/issue \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entity_name": "<string>",
"country": "<string>",
"trust_score": 50,
"trust_level": "<string>",
"valid_days": 365
}
'import requests
url = "https://api.limitguard.ai/v1/certificate/issue"
payload = {
"entity_name": "<string>",
"country": "<string>",
"trust_score": 50,
"trust_level": "<string>",
"valid_days": 365
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entity_name: '<string>',
country: '<string>',
trust_score: 50,
trust_level: '<string>',
valid_days: 365
})
};
fetch('https://api.limitguard.ai/v1/certificate/issue', 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.limitguard.ai/v1/certificate/issue",
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([
'entity_name' => '<string>',
'country' => '<string>',
'trust_score' => 50,
'trust_level' => '<string>',
'valid_days' => 365
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.limitguard.ai/v1/certificate/issue"
payload := strings.NewReader("{\n \"entity_name\": \"<string>\",\n \"country\": \"<string>\",\n \"trust_score\": 50,\n \"trust_level\": \"<string>\",\n \"valid_days\": 365\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.limitguard.ai/v1/certificate/issue")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entity_name\": \"<string>\",\n \"country\": \"<string>\",\n \"trust_score\": 50,\n \"trust_level\": \"<string>\",\n \"valid_days\": 365\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.limitguard.ai/v1/certificate/issue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entity_name\": \"<string>\",\n \"country\": \"<string>\",\n \"trust_score\": 50,\n \"trust_level\": \"<string>\",\n \"valid_days\": 365\n}"
response = http.request(request)
puts response.read_body{
"certificate_id": "<string>",
"entity_name": "<string>",
"country": "<string>",
"trust_score": 50,
"trust_level": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"certificate_hash": "<string>",
"json_ld": {},
"issuer": "LimitGuard.ai",
"schema_version": "1.0",
"status": "active"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
Request to issue a new trust certificate.
Name of the entity receiving certificate
2-character ISO country code
2Trust score 0-100
0 <= x <= 100Trust level (HIGH, MEDIUM, LOW)
Certificate validity in days
1 <= x <= 3650Response
Successful Response
Trust certificate issued by LimitGuard.ai.
Unique certificate UUID
Name of certified entity
2-character ISO country code
Trust score 0-100
0 <= x <= 100Trust level (HIGH, MEDIUM, LOW)
Certificate issuance timestamp
Certificate expiration timestamp
SHA-256 hash of certificate content
JSON-LD structured data representation
Certificate issuer
Certificate schema version
Certificate status