Verify an Open Badge Credential
curl --request POST \
--url https://api.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/verify \
--header 'Content-Type: application/json' \
--data '
{
"@context": [
"<string>"
],
"id": "<string>",
"type": [
"<string>"
],
"issuer": "<string>",
"credentialSubject": {
"id": "<string>",
"type": [
"<string>"
],
"achievement": {
"id": "<string>",
"type": [
"<string>"
],
"name": "<string>",
"description": "<string>",
"criteria": {
"narrative": "<string>"
},
"achievementType": "<string>"
},
"identifier": [
{
"type": "<string>",
"identityHash": "<string>",
"identityType": "<string>",
"hashed": true
}
]
},
"validFrom": "<string>",
"name": "<string>",
"description": "<string>",
"proof": [
{
"type": "<string>",
"cryptosuite": "<string>",
"created": "<string>",
"proofPurpose": "<string>",
"verificationMethod": "<string>",
"proofValue": "<string>"
}
],
"validUntil": "<string>",
"credentialSchema": [
{
"id": "<string>",
"type": "<string>"
}
]
}
'import requests
url = "https://api.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/verify"
payload = {
"@context": ["<string>"],
"id": "<string>",
"type": ["<string>"],
"issuer": "<string>",
"credentialSubject": {
"id": "<string>",
"type": ["<string>"],
"achievement": {
"id": "<string>",
"type": ["<string>"],
"name": "<string>",
"description": "<string>",
"criteria": { "narrative": "<string>" },
"achievementType": "<string>"
},
"identifier": [
{
"type": "<string>",
"identityHash": "<string>",
"identityType": "<string>",
"hashed": True
}
]
},
"validFrom": "<string>",
"name": "<string>",
"description": "<string>",
"proof": [
{
"type": "<string>",
"cryptosuite": "<string>",
"created": "<string>",
"proofPurpose": "<string>",
"verificationMethod": "<string>",
"proofValue": "<string>"
}
],
"validUntil": "<string>",
"credentialSchema": [
{
"id": "<string>",
"type": "<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({
'@context': ['<string>'],
id: '<string>',
type: ['<string>'],
issuer: '<string>',
credentialSubject: {
id: '<string>',
type: ['<string>'],
achievement: {
id: '<string>',
type: ['<string>'],
name: '<string>',
description: '<string>',
criteria: {narrative: '<string>'},
achievementType: '<string>'
},
identifier: [
{
type: '<string>',
identityHash: '<string>',
identityType: '<string>',
hashed: true
}
]
},
validFrom: '<string>',
name: '<string>',
description: '<string>',
proof: [
{
type: '<string>',
cryptosuite: '<string>',
created: '<string>',
proofPurpose: '<string>',
verificationMethod: '<string>',
proofValue: '<string>'
}
],
validUntil: '<string>',
credentialSchema: [{id: '<string>', type: '<string>'}]
})
};
fetch('https://api.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/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.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/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([
'@context' => [
'<string>'
],
'id' => '<string>',
'type' => [
'<string>'
],
'issuer' => '<string>',
'credentialSubject' => [
'id' => '<string>',
'type' => [
'<string>'
],
'achievement' => [
'id' => '<string>',
'type' => [
'<string>'
],
'name' => '<string>',
'description' => '<string>',
'criteria' => [
'narrative' => '<string>'
],
'achievementType' => '<string>'
],
'identifier' => [
[
'type' => '<string>',
'identityHash' => '<string>',
'identityType' => '<string>',
'hashed' => true
]
]
],
'validFrom' => '<string>',
'name' => '<string>',
'description' => '<string>',
'proof' => [
[
'type' => '<string>',
'cryptosuite' => '<string>',
'created' => '<string>',
'proofPurpose' => '<string>',
'verificationMethod' => '<string>',
'proofValue' => '<string>'
]
],
'validUntil' => '<string>',
'credentialSchema' => [
[
'id' => '<string>',
'type' => '<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.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/verify"
payload := strings.NewReader("{\n \"@context\": [\n \"<string>\"\n ],\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"credentialSubject\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"achievement\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"narrative\": \"<string>\"\n },\n \"achievementType\": \"<string>\"\n },\n \"identifier\": [\n {\n \"type\": \"<string>\",\n \"identityHash\": \"<string>\",\n \"identityType\": \"<string>\",\n \"hashed\": true\n }\n ]\n },\n \"validFrom\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"proof\": [\n {\n \"type\": \"<string>\",\n \"cryptosuite\": \"<string>\",\n \"created\": \"<string>\",\n \"proofPurpose\": \"<string>\",\n \"verificationMethod\": \"<string>\",\n \"proofValue\": \"<string>\"\n }\n ],\n \"validUntil\": \"<string>\",\n \"credentialSchema\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ]\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.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/verify")
.header("Content-Type", "application/json")
.body("{\n \"@context\": [\n \"<string>\"\n ],\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"credentialSubject\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"achievement\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"narrative\": \"<string>\"\n },\n \"achievementType\": \"<string>\"\n },\n \"identifier\": [\n {\n \"type\": \"<string>\",\n \"identityHash\": \"<string>\",\n \"identityType\": \"<string>\",\n \"hashed\": true\n }\n ]\n },\n \"validFrom\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"proof\": [\n {\n \"type\": \"<string>\",\n \"cryptosuite\": \"<string>\",\n \"created\": \"<string>\",\n \"proofPurpose\": \"<string>\",\n \"verificationMethod\": \"<string>\",\n \"proofValue\": \"<string>\"\n }\n ],\n \"validUntil\": \"<string>\",\n \"credentialSchema\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/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 \"@context\": [\n \"<string>\"\n ],\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"credentialSubject\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"achievement\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"narrative\": \"<string>\"\n },\n \"achievementType\": \"<string>\"\n },\n \"identifier\": [\n {\n \"type\": \"<string>\",\n \"identityHash\": \"<string>\",\n \"identityType\": \"<string>\",\n \"hashed\": true\n }\n ]\n },\n \"validFrom\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"proof\": [\n {\n \"type\": \"<string>\",\n \"cryptosuite\": \"<string>\",\n \"created\": \"<string>\",\n \"proofPurpose\": \"<string>\",\n \"verificationMethod\": \"<string>\",\n \"proofValue\": \"<string>\"\n }\n ],\n \"validUntil\": \"<string>\",\n \"credentialSchema\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"errors": [
"<string>"
],
"warnings": [
"<string>"
],
"details": {
"issuer": "<string>",
"subject": "<string>",
"achievement": "<string>",
"signatureMethod": "<string>",
"credentialCount": 123
}
}OpenBadge - Issue Badge
Verify an Open Badge Credential
Verifies the authenticity and integrity of a presented Open Badge v3.0 (AchievementCredential). This endpoint checks the cryptographic proof (e.g., signature) embedded within the badge to ensure it was genuinely issued by the claimed issuer (as identified in the proof’s verificationMethod) and that its contents have not been altered since issuance. It may also perform checks on timeliness (validFrom/validUntil). This endpoint conforms to the verification principles outlined in the Open Badges v3.0 specification and W3C Verifiable Credentials Data Model.
POST
/
ims
/
ob
/
v3p0
/
issue-badge
/
verify
Verify an Open Badge Credential
curl --request POST \
--url https://api.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/verify \
--header 'Content-Type: application/json' \
--data '
{
"@context": [
"<string>"
],
"id": "<string>",
"type": [
"<string>"
],
"issuer": "<string>",
"credentialSubject": {
"id": "<string>",
"type": [
"<string>"
],
"achievement": {
"id": "<string>",
"type": [
"<string>"
],
"name": "<string>",
"description": "<string>",
"criteria": {
"narrative": "<string>"
},
"achievementType": "<string>"
},
"identifier": [
{
"type": "<string>",
"identityHash": "<string>",
"identityType": "<string>",
"hashed": true
}
]
},
"validFrom": "<string>",
"name": "<string>",
"description": "<string>",
"proof": [
{
"type": "<string>",
"cryptosuite": "<string>",
"created": "<string>",
"proofPurpose": "<string>",
"verificationMethod": "<string>",
"proofValue": "<string>"
}
],
"validUntil": "<string>",
"credentialSchema": [
{
"id": "<string>",
"type": "<string>"
}
]
}
'import requests
url = "https://api.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/verify"
payload = {
"@context": ["<string>"],
"id": "<string>",
"type": ["<string>"],
"issuer": "<string>",
"credentialSubject": {
"id": "<string>",
"type": ["<string>"],
"achievement": {
"id": "<string>",
"type": ["<string>"],
"name": "<string>",
"description": "<string>",
"criteria": { "narrative": "<string>" },
"achievementType": "<string>"
},
"identifier": [
{
"type": "<string>",
"identityHash": "<string>",
"identityType": "<string>",
"hashed": True
}
]
},
"validFrom": "<string>",
"name": "<string>",
"description": "<string>",
"proof": [
{
"type": "<string>",
"cryptosuite": "<string>",
"created": "<string>",
"proofPurpose": "<string>",
"verificationMethod": "<string>",
"proofValue": "<string>"
}
],
"validUntil": "<string>",
"credentialSchema": [
{
"id": "<string>",
"type": "<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({
'@context': ['<string>'],
id: '<string>',
type: ['<string>'],
issuer: '<string>',
credentialSubject: {
id: '<string>',
type: ['<string>'],
achievement: {
id: '<string>',
type: ['<string>'],
name: '<string>',
description: '<string>',
criteria: {narrative: '<string>'},
achievementType: '<string>'
},
identifier: [
{
type: '<string>',
identityHash: '<string>',
identityType: '<string>',
hashed: true
}
]
},
validFrom: '<string>',
name: '<string>',
description: '<string>',
proof: [
{
type: '<string>',
cryptosuite: '<string>',
created: '<string>',
proofPurpose: '<string>',
verificationMethod: '<string>',
proofValue: '<string>'
}
],
validUntil: '<string>',
credentialSchema: [{id: '<string>', type: '<string>'}]
})
};
fetch('https://api.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/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.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/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([
'@context' => [
'<string>'
],
'id' => '<string>',
'type' => [
'<string>'
],
'issuer' => '<string>',
'credentialSubject' => [
'id' => '<string>',
'type' => [
'<string>'
],
'achievement' => [
'id' => '<string>',
'type' => [
'<string>'
],
'name' => '<string>',
'description' => '<string>',
'criteria' => [
'narrative' => '<string>'
],
'achievementType' => '<string>'
],
'identifier' => [
[
'type' => '<string>',
'identityHash' => '<string>',
'identityType' => '<string>',
'hashed' => true
]
]
],
'validFrom' => '<string>',
'name' => '<string>',
'description' => '<string>',
'proof' => [
[
'type' => '<string>',
'cryptosuite' => '<string>',
'created' => '<string>',
'proofPurpose' => '<string>',
'verificationMethod' => '<string>',
'proofValue' => '<string>'
]
],
'validUntil' => '<string>',
'credentialSchema' => [
[
'id' => '<string>',
'type' => '<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.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/verify"
payload := strings.NewReader("{\n \"@context\": [\n \"<string>\"\n ],\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"credentialSubject\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"achievement\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"narrative\": \"<string>\"\n },\n \"achievementType\": \"<string>\"\n },\n \"identifier\": [\n {\n \"type\": \"<string>\",\n \"identityHash\": \"<string>\",\n \"identityType\": \"<string>\",\n \"hashed\": true\n }\n ]\n },\n \"validFrom\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"proof\": [\n {\n \"type\": \"<string>\",\n \"cryptosuite\": \"<string>\",\n \"created\": \"<string>\",\n \"proofPurpose\": \"<string>\",\n \"verificationMethod\": \"<string>\",\n \"proofValue\": \"<string>\"\n }\n ],\n \"validUntil\": \"<string>\",\n \"credentialSchema\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ]\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.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/verify")
.header("Content-Type", "application/json")
.body("{\n \"@context\": [\n \"<string>\"\n ],\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"credentialSubject\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"achievement\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"narrative\": \"<string>\"\n },\n \"achievementType\": \"<string>\"\n },\n \"identifier\": [\n {\n \"type\": \"<string>\",\n \"identityHash\": \"<string>\",\n \"identityType\": \"<string>\",\n \"hashed\": true\n }\n ]\n },\n \"validFrom\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"proof\": [\n {\n \"type\": \"<string>\",\n \"cryptosuite\": \"<string>\",\n \"created\": \"<string>\",\n \"proofPurpose\": \"<string>\",\n \"verificationMethod\": \"<string>\",\n \"proofValue\": \"<string>\"\n }\n ],\n \"validUntil\": \"<string>\",\n \"credentialSchema\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alpha-1edtech.ai/ims/ob/v3p0/issue-badge/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 \"@context\": [\n \"<string>\"\n ],\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"credentialSubject\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"achievement\": {\n \"id\": \"<string>\",\n \"type\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"narrative\": \"<string>\"\n },\n \"achievementType\": \"<string>\"\n },\n \"identifier\": [\n {\n \"type\": \"<string>\",\n \"identityHash\": \"<string>\",\n \"identityType\": \"<string>\",\n \"hashed\": true\n }\n ]\n },\n \"validFrom\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"proof\": [\n {\n \"type\": \"<string>\",\n \"cryptosuite\": \"<string>\",\n \"created\": \"<string>\",\n \"proofPurpose\": \"<string>\",\n \"verificationMethod\": \"<string>\",\n \"proofValue\": \"<string>\"\n }\n ],\n \"validUntil\": \"<string>\",\n \"credentialSchema\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"errors": [
"<string>"
],
"warnings": [
"<string>"
],
"details": {
"issuer": "<string>",
"subject": "<string>",
"achievement": "<string>",
"signatureMethod": "<string>",
"credentialCount": 123
}
}Body
application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I