WritersLogic Verifiable AI Agent Hub Open Badges Verifier API

The Open Badges Verifier API from WritersLogic Verifiable AI Agent Hub — 1 operation(s) for open badges verifier.

GitHub OpenAPI

Operations 1

POST /api/v1/open-badges-verifier Open Badges 2.0 / 3.0 credential verifier #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/writerslogic-com:writerslogic-com-open-badges-verifier-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

writerslogic-com-open-badges-verifier-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WritersLogic Verifiable AI Agent Hub Open Badges Verifier…
  version: 2.0.0
  description: Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.
  contact:
    name: WritersLogic
    url: https://writerslogic.com/agents
    email: agents@writerslogic.com
servers:
- url: https://agents.writerslogic.com
tags:
- name: Open Badges Verifier
paths:
  /api/v1/open-badges-verifier:
    post:
      operationId: open_badges_verifier
      summary: Open Badges 2.0 / 3.0 credential verifier
      description: 'Verifies an Open Badges credential end to end and says what could and could not be confirmed. Accepts an Open Badges 3.0 credential (JSON with an eddsa-jcs-2022 proof, or a VC-JWT signed with EdDSA, ES256 or RS256), an Open Badges 2.0 assertion (hosted, or signed as an RS256 JWS), a hosted-assertion URL, or a baked PNG or SVG image. Checks the 2.0/3.0 required fields, the issuance and expiry window, the signature, that the signing key (did:key, did:web, JWKS or CryptographicKey) really belongs to the named issuer, the hosted-assertion, BadgeClass and Issuer chain with allowedOrigins and startsWith rules, and revocation (2.0 revocation lists and revoked flag, 3.0 1EdTechRevocationList and Bitstring status lists). Optionally confirms a recipient''s email or identity against the badge''s salted hash. Every check is pass, fail, unknown (for example an issuer host was unreachable) or unsupported (for example an RDF-canonicalization proof suite), and the verdict is valid only when nothing failed and nothing is left open. No model is used. Remote documents are fetched through an SSRF-guarded client, at most 12 per call, and JSON-LD contexts are never fetched.


        Price: 0.05 USDC on Base (x402).'
      x-x402-price-usdc: '0.05'
      x-x402-amount: '50000'
      x-payment-info:
        protocols:
        - x402
        price:
          mode: fixed
          currency: USD
          amount: '0.05'
      x-audience: business
      x-sample-url: https://agents.writerslogic.com/api/v1/samples/open-badges-verifier
      security:
      - x402: []
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                credential:
                  description: The credential or assertion as a JSON object (or the same as a JSON string, or a compact JWS string).
                jws:
                  type: string
                  maxLength: 1000000
                  description: 'A compact JWS: an Open Badges 3.0 VC-JWT or an Open Badges 2.0 signed assertion.'
                url:
                  type: string
                  maxLength: 2000
                  description: https URL of a hosted Open Badges 2.0 assertion or a hosted 3.0 credential.
                image:
                  type: string
                  maxLength: 8500000
                  description: 'A baked badge image, base64 (data URLs accepted): a PNG with an openbadges iTXt chunk, or an SVG with an openbadges:assertion or openbadges:credential element. Up to 6 MB decoded.'
                recipientIdentity:
                  type: string
                  minLength: 1
                  maxLength: 320
                  description: 'Optional: the recipient''s email or other identity to compare against the badge''s recipient, including salted sha256$ and md5$ hashes.'
            example:
              credential:
                '@context':
                - https://www.w3.org/ns/credentials/v2
                - https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json
                id: urn:uuid:5b6d2c1e-0c1a-4a52-9a53-0c0f7a1c9e11
                type:
                - VerifiableCredential
                - OpenBadgeCredential
                issuer:
                  id: did:key:z6MkgAnvkP45uNxwCKeNdt6wrYkEjpYX4f7Nrd8MQqFL8Fbn
                  type:
                  - Profile
                  name: Example University
                validFrom: '2025-01-15T00:00:00Z'
                name: Example Achievement
                credentialSubject:
                  type:
                  - AchievementSubject
                  identifier:
                  - type: IdentityObject
                    hashed: false
                    identityHash: learner@example.org
                    identityType: emailAddress
                  achievement:
                    id: https://issuer.example/achievements/1
                    type:
                    - Achievement
                    name: Example Achievement
                    description: Awarded for completing the example course.
                    criteria:
                      narrative: Complete all modules with a passing grade.
                proof:
                  type: DataIntegrityProof
                  cryptosuite: eddsa-jcs-2022
                  created: '2025-01-15T00:00:00Z'
                  verificationMethod: did:key:z6MkgAnvkP45uNxwCKeNdt6wrYkEjpYX4f7Nrd8MQqFL8Fbn#z6MkgAnvkP45uNxwCKeNdt6wrYkEjpYX4f7Nrd8MQqFL8Fbn
                  proofPurpose: assertionMethod
                  proofValue: z3iyvJ3hfobNHzMPsBC39QPoo57kX7UWTBkCjL7wda4hxWDoeDeb1tQPq7HueQbbAxBEofghDqXa1rG8MEJexaUWt
              recipientIdentity: learner@example.org
      responses:
        '200':
          description: Paid result with provenance
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      verdict:
                        type: string
                        enum:
                        - valid
                        - invalid
                        - unverified
                        description: 'invalid: at least one check failed. unverified: nothing failed but some checks are unknown or unsupported. valid: every check passed.'
                      verdictReason:
                        type: string
                      format:
                        type: string
                        enum:
                        - ob2-hosted
                        - ob2-signed
                        - ob3-credential
                        - ob3-jwt
                        - unrecognized
                      specVersion:
                        type: string
                        enum:
                        - '2.0'
                        - '3.0'
                        - unknown
                      source:
                        type: string
                        enum:
                        - json
                        - jws
                        - url
                        - png
                        - svg
                      checks:
                        type: array
                        items:
                          type: object
                          description: id (structure, dates, badge-class, issuer, hosted, proof-signature, issuer-key, jwt-claims, revocation, recipient), status (pass, fail, unknown, unsupported) and detail.
                      summary:
                        type: object
                        properties:
                          pass:
                            type: integer
                          fail:
                            type: integer
                          unknown:
                            type: integer
                          unsupported:
                            type: integer
                      badge:
                        anyOf:
                        - type: object
                          description: name, description, criteria, image, achievementId, issuer {id, name, url}, issuedOn, expires and credentialId, as read from the verified document; null when unrecognized.
                        - type: 'null'
                      proof:
                        anyOf:
                        - type: object
                          description: type, suite or alg, keyId and keySource of the proof that was checked; null when unrecognized.
                        - type: 'null'
                      recipient:
                        type: object
                        description: matched (true, false or null when no identity was supplied) and detail.
                      fetched:
                        type: array
                        items:
                          type: object
                          description: url and ok for every remote document requested.
                      deterministic:
                        type: boolean
                        description: 'Always true: no model is involved.'
                  _provenance:
                    type: object
                    description: C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance
                required:
                - data
                - _provenance
        '400':
          description: Invalid request (no payment consumed)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
        '401':
          description: Invalid X-API-KEY
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
        '402':
          description: Payment required or invalid
          content:
            application/json:
              schema:
                type: object
                description: x402 v2 PaymentRequired (also base64 in the PAYMENT-REQUIRED header)
                properties:
                  x402Version:
                    type: integer
                  error:
                    type: string
                  code:
                    type: string
                  resource:
                    type: object
                  accepts:
                    type: array
                    items:
                      type: object
                  extensions:
                    type: object
        '502':
          description: Upstream failure; the payment is released or not settled
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
      tags:
      - Open Badges Verifier
components:
  securitySchemes:
    x402:
      type: apiKey
      in: header
      name: PAYMENT-SIGNATURE
      description: x402 v2 payment payload (base64) sent after a 402 challenge
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY