Badges API
Build or integrate into your solution by using BWS Blockchain Badges API.
Last updated
Build or integrate into your solution by using BWS Blockchain Badges API.
Last updated
An issuer is an entity or organization responsible for defining, creating, and awarding digital badges to recognize and verify an individual's achievements, skills, or competencies.
Use this API operation to create a new Issuer that will be enabled to create digital badges and awards.
POST
https://api.bws.ninja/v1/call
Use this operation to create a new badge Issuer.
Name | Type | Description |
---|
When the API call is successfully executed, it returns the badge issuerId
, which is also the url you can use to fetch the issuer Open Badge v2.0 JSON.
When you create a new Badge Issuer, we send an email for verification, including a verification link and a verification code.
Only verified issuers can create and award badges.
Only verified issuers can create and award badges, ensuring high trust and authenticity in the digital credentialing system.
Use the following operation to verify an issuer using the provided code.
POST
https://api.bws.ninja/v1/call
Use this operation to verify a badge issuer using the code received by email.
When the API call is successfully executed and the issuer gets verified, you will get a 200 status code.
Use this operation to get the list of issuers you created.
POST
https://api.bws.ninja/v1/call
Get the list of your Badges.
Once executed correctly, you will get a list of your account issuers.
Use this API operation to delete an existing Issuer.
You can only delete issuers with no active Badges!
Only issuers that have not awarded any badge can be deleted.
POST
https://api.bws.ninja/v1/call
Use this operation to delete an issuer.
When the API call is successfully executed, you will get an OK status response code.
A badge is a digital representation of an accomplishment, skill, or authorization that can be earned and displayed. It serves as verifiable proof of a user's achievements and can be shared across digital platforms.
POST
https://api.bws.ninja/v1/call
Use this operation to create a Badge you can later use to certify recognition.
Your badge image will be saved on the InterPlanetary File System (IPFS) and served from the BWS IPFS gateway service. The images you use should be optimized to be consumed over the internet.
You must create your badge image to be less than 1 MB in size for fast access (there is a hard limit of 5MB).
Only the PNG image type is accepted.
When the API call is successfully executed, it returns the badge id
, which is also the url you can use to fetch the badge image.
Use this operation to get the list of issuer badges.
POST
https://api.bws.ninja/v1/call
Get the list of issuer badges.
Once executed correctly, you will get a list of your badges, including the badge ID and the badge data.
Use this API operation to delete an existing Badge.
You can only delete badges with no active Awards!
Once a certificate has been awarded to an individual (recipient), the related badge can not be deleted.
POST
https://api.bws.ninja/v1/call
Use this operation to delete a badge.
If the call succeeds and the badge gets deleted, you will get a standard 200 response.
Awarding a badge represents the digital acknowledgment of an individual's skills or achievements.
It enables the conferring of verifiable digital credentials to individuals who meet specific criteria, providing a modern way to recognize professional development, accomplishments, or learning milestones.
POST
https://api.bws.ninja/v1/call
Use this operation to award a badge to an individual (recipient).
Recipient Parameters JSON
Include the below parameters to identify the certificate (award) recipient.
Recipient email data encryption.
When you send the recipient's email, we hash (encrypt) the original, and the readable email address is never saved into our databases.
If everything goes ok, you get the awardId
, which is also the URL to access the Open Badge award definition.
Use this operation to get the list of awards for ALL the issuers you have registered.
POST
https://api.bws.ninja/v1/call
Get the full list of awards.
Once executed correctly, you will get a list of your account badge awards.
Use this operation if you want BWS to email an award recipient, including a link to download, share, and visualize his achieved award.
POST
https://api.bws.ninja/v1/call
Send the award recipient a congratulatory email indicating how to download and share the acquired certification.
You need to know the award recipient's email address!
In full compliance with the General Data Protection Regulation (GDPR), our API is designed to be strongly committed to privacy and data protection. We understand the importance of safeguarding personal information and uphold the highest data privacy standards.
When our API processes email data, it does so in real time. The data is transmitted securely and never recorded, stored, or saved on our servers.
You will get a standard 200 response if the email is correctly sent.
Use an email address you have access to! To verify your permission to use the provided email, we will send a verification email ().
Parameter | Type | Desciption |
---|
To verify an Issuer, you - or someone with access to the provided email inbox - should click on the verification link or send you the verification code (once you get the code, use the API call to verify the issuer).
To legitimate badge issuers, we send a verification link and code to the address you use when .
Name | Type | Description |
---|
Parameter | Type | Desciption |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
Parameter | Type | Desciption |
---|
Name | Type | Description |
---|
Parameter | Type | Desciption |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
Parameter | Type | Desciption |
---|
Name | Type | Description |
---|
Parameter | Type | Desciption |
---|
Parameter | Type | Desciption |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
Parameter | Type | Desciption |
---|
name | string | Issuer Name (e.g. "Blockchain Academy") |
url | string | Issuer website URL |
string | The issuer contact email address. |
solution* | string | BWS.Blockchain.Badges |
operation* | string | list_issuers |
solution* | string | BWS.Blockchain.Badges |
operation* | string | list_badges |
string | The recipient email address. |
name | string | The full name of the recipient. |
solution* | string | BWS.Blockchain.Badges |
operation* | string | list_awards |
solution* | string | BWS.Blockchain.Badges |
operation* | string | new_issuer |
parameters* | JSON |
solution* | string | BWS.Blockchain.Badges |
operation* | string | verify_issuer |
parameters* | JSON |
issuerId | string |
code | string | The code you received by email. |
solution* | string | BWS.Blockchain.Badges |
operation* | string | delete_issuer |
parameters* | JSON |
issuerId | string |
solution* | string | BWS.Blockchain.Badges |
operation* | string | new_badge |
parameters* | JSON |
issuerId | string |
name | string | Badge name (e.g. "Certified Data Analyst"). |
description | string | A description of the badge and what it represents. |
criteria | string | Narrative describing the criteria to earn the badge. |
image | base64 | The image representing the badge as a base64 encoded string. |
solution* | string | BWS.Blockchain.Badges |
operation* | string | delete_badge |
parameters* | JSON |
badgeId | string |
solution* | string | BWS.Blockchain.Badges |
operation* | string | new_award |
parameters* | JSON |
badgeId | string |
issuedOn | long |
expires optional | long |
recipient | JSON |
solution* | string | BWS.Blockchain.Badges |
operation* | string | send_award |
parameters | JSON |
awardId | string |
string | The award recipient's email address |
check
checks
The issuer ID you received when .
check
The issuer ID you received when .
check
The badge issuer ID (check )
check
The badge ID you received when and want to delete.
check
The badge ID (check on how to create a Badge and get its ID).
in milliseconds representing the date the award was issued.
in milliseconds representing the date the award will expire.
The representing the awarded identity.
check
The award ID (check on how to create a new award).