API Specifications
Last updated
Last updated
Staging (Sandbox) OCA Issuance Endpoint:
Production OCA Issuance Endpoint
Authorization
Body (raw JSON)
credentialPayload
object
holderOcId
string
bob.edu
Credential Payload is what you would use to represent the credential that you are issuing. We accept the following fields. Some of them are required and some of them are optional. Here we list the specifications for the credential payload based on the OpenBadge standard.
Please refer to for explanation of specific fields. This section is dedicated to technical specification for the properties.
credentialPayload
awardedDate
string
Y
Y
2023-09-08T16:00:00.000Z
ISO 8601 Date Format
description
string
Y
Y
my school certification
validFrom
string
Y
Y
2023-09-08T16:00:00.000Z
ISO 8601 Date Format
validUntil
string
N
Y
2023-09-08T16:00:00.000Z
ISO 8601 Date Format
image
string
N
Y
https://image.com/img/11111.jpg
Valid http uri
credentialSubject
object
Y
Y
{ … }
see below details
credentialSubject
achievement
object
Y
Y
{ … }
see below details
name
string
Y
N
Bob
stored but not exposed to public
string
Y
N
bob@mycompany.xyz
stored but not exposed to public
profileUrl
string
N
Y
https://mycompany.xyz/profiles/public/11223344
this should be users public profile
image
string
N
Y
https://image.com/img/11111.jpg
Valid http uri
ext:OC_CUSTOM:custom
object
N
Y
{ … }
unspecified blob of custom data
achievement
identifier
string
Y
Y
a8505caa-8e3a-4c07-aae2-94944c6b52fc
stored on-chain maxLength 50 characters
achievementType
string
Y
Y
Certificate
name
string
Y
Y
Blockchain Certification
description
string
Y
Y
An introductory blockchain bootcamp class
attachments
array
N
Y
[ { pdf: “….” , png: “….“ }, { … } ]
no standard for internal objects
see