English
English
Appearance
English
English
Appearance
Manage badge issuers — the organizations or individuals that award badges.
All endpoints require authentication via the X-Api-Key header. See Authentication.
Create a new badge issuer.
POST /issuers| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Organization name (minimum 3 characters) |
url | string | Yes | Organization website (must be a valid HTTP/HTTPS URL) |
email | string | Yes | Contact email for the issuer |
logo | string | No | Base64-encoded image (PNG or JPG) |
linkedinOrganizationId | string | No | Numeric LinkedIn company page ID. When set, every public award page from this issuer shows an Add to LinkedIn Profile button. |
curl -X POST https://api.badges.ninja/issuers \
-H "X-Api-Key: bws_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"parameters": {
"name": "Acme Academy",
"url": "https://acme.example.com",
"email": "badges@acme.example.com"
}
}'{
"statusCode": 200,
"info": {
"issuerId": "https://api.badges.ninja/certify-badge/issuer/a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}Retrieve all issuers you have created.
GET /issuerscurl -X GET https://api.badges.ninja/issuers \
-H "X-Api-Key: bws_your_api_key_here"{
"statusCode": 200,
"info": {
"issuers": [
{
"id": "https://api.badges.ninja/certify-badge/issuer/a1b2c3d4-...",
"name": "Acme Academy",
"url": "https://acme.example.com",
"email": "badges@acme.example.com",
"verified": true,
"timestamp": "2025-01-15T10:30:00.000Z"
}
]
}
}Verify an issuer using the verification code sent to its email.
POST /issuers/{issuerId}/verify| Parameter | Type | Required | Description |
|---|---|---|---|
issuerId | string | Yes | The issuer ID (path parameter) |
code | string | Yes | The verification code from the email |
curl -X POST https://api.badges.ninja/issuers/a1b2c3d4-e5f6-7890-abcd-ef1234567890/verify \
-H "X-Api-Key: bws_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"parameters": {
"issuerId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"code": "ABC123"
}
}'{
"statusCode": 200,
"info": {
"verified": true
}
}Delete an issuer. The issuer must have no badges.
DELETE /issuers/{issuerId}curl -X DELETE https://api.badges.ninja/issuers/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
-H "X-Api-Key: bws_your_api_key_here"{
"statusCode": 200,
"info": {
"deleted": true
}
}400 — issuer has badges or awards and cannot be deleted (delete those first)404 — issuer not foundUpdate an unverified issuer's fields. Once an issuer is verified, only logo and linkedinOrganizationId remain editable to preserve credential stability.
PUT /issuers/{issuerId}| Parameter | Type | Required | Description |
|---|---|---|---|
issuerId | string | Yes | The issuer ID (path parameter) |
name | string | No | New name (only when unverified) |
url | string | No | New URL (only when unverified) |
email | string | No | New email (only when unverified — sends a fresh verification mail) |
logo | string | No | New base64-encoded logo |
linkedinOrganizationId | string | No | New LinkedIn organization ID (or empty string to clear) |
Invalidate the previous verification link and email a fresh one. Only valid while the issuer is still unverified.
POST /issuers/{issuerId}/rotate-code{
"statusCode": 200,
"info": {
"sent": true
}
}