# Verify an Open Badges 3.0 credential's signature and issuer

**Use case:** 

Verifies an Open Badges 3.0 credential end to end: the eddsa-jcs-2022 proof, the did:key issuer, validity dates and the achievement, and says what could and could not be confirmed. Paste any Open Badges 2.0 or 3.0 credential.

## Input

```json
{
  "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"
}
```

## Output

```json
{
  "agent": {
    "label": "Agent",
    "format": "text"
  },
  "priceUsd": {
    "label": "Price (USD)",
    "format": "number"
  },
  "data": {
    "label": "Result",
    "format": "object"
  },
  "_provenance": {
    "label": "Provenance",
    "format": "object"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Open Badges 2.0 / 3.0 credential verifier Actor is ready to run with the inputs already set for "Verify an Open Badges 3.0 credential's signature and issuer". [Sign up or log in](https://console.apify.com/create-task-from-example/n35zuwQLqpAvrahCR) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Verify an Open Badges 3.0 credential's signature and issuer" task

The Open Badges 2.0 / 3.0 credential verifier Actor will start running based on the input automatically. You can also change all the input fields, like credential and recipient identity, to match your specific use case.

### 3. Receive the "Verify an Open Badges 3.0 credential's signature and issuer" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as agent, price (usd), result, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Verify an Open Badges 3.0 credential's signature and issuer" task via API](https://apify.com/davidcondrey/wl-open-badges-verifier.md).

## FAQ

### Which badge versions does the credential verification task support?

Open Badges 3.0 credentials with an eddsa-jcs-2022 proof, and Open Badges 2.0 hosted or signed assertions.

### Does the credential verification task contact the issuer?

It fetches hosted assertions, issuer profiles, signing keys and revocation lists when the badge points to them; a host it cannot reach is reported as unknown, not as a pass.

## About this Actor

This example demonstrates how to use [Open Badges 2.0 / 3.0 credential verifier](https://apify.com/davidcondrey/wl-open-badges-verifier.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/davidcondrey/wl-open-badges-verifier.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/davidcondrey/wl-open-badges-verifier.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
