Credentials API quickstart

Nexiel Credentials lets a Nexiel-vetted institution issue verifiable academic credentials (enrolment proofs, module completions, degree awards) into a student's EUDI wallet. This page walks through the path end to end: propose a claim template, get it approved, then issue credentials to students over OpenID4VCI. To issue other kinds of attestation, such as memberships or licences, see issue your own attestations. Read how credential issuance works first for the concepts (what the credential is, the institution-vetting gate, and what trust it carries) if you have not already.

Preview. Built to OpenID4VCI 1.0 and HAIP 1.0. Live issuance requires each institution's access and attestation-signing certificates from an authorised certificate authority, and the EU lists of trusted wallet providers. Live issuance requests are refused until both are in place. Template proposal and review work in live mode today. The examples below use a fictional, already-approved institution, so you can see the exact shapes you integrate against before your own institution has cleared vetting.

Every request below needs an access token from your institution's Credentials API key, in $NEXIEL_ACCESS_TOKEN (see Authentication). A test key issues under the Nexiel TEST CA and trusts only test wallet providers. See test mode and live mode.

Prerequisite: an approved institution

Every route below acts on behalf of one academic issuer (institution), and that issuer must already be APPROVED through Nexiel's institution-vetting review, described on how credential issuance works. There is no self-serve API for that step. The examples below use a fictional, already-approved institution, “Nexiel Sandbox University”.

1. Propose a credential template

A template defines one credential type's claim shape for one institution: credentialType (ENROLMENT, MODULE_COMPLETION, or DEGREE_AWARD), a JSON Schema for its claims, and which of those claims are individually disclosable (sdJwtDisclosureFrame). It starts as a DRAFT:

curl -s -X POST https://compliance.nexiel.io/v1/credentials/issue/templates \
  -H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "academicIssuerId": "7a6dfd13-15ed-4e44-9721-6e60f1369a1a",
    "credentialType": "DEGREE_AWARD",
    "claimsSchema": {"type": "object", "properties": {"degreeTitle": {"type": "string"}, "awardDate": {"type": "string"}}},
    "sdJwtDisclosureFrame": {"_sd": ["degreeTitle", "awardDate"]}
  }'
200
{
  "id": "46c81db0-8acf-4fa7-8f12-ba9db2ed07b9",
  "academicIssuerId": "7a6dfd13-15ed-4e44-9721-6e60f1369a1a",
  "credentialType": "DEGREE_AWARD",
  "vct": "urn:nexiel:credential:degree-award:v1",
  "version": 1,
  "claimsSchema": {
    "type": "object",
    "properties": {
      "awardDate": {
        "type": "string"
      },
      "degreeTitle": {
        "type": "string"
      }
    }
  },
  "sdJwtDisclosureFrame": {
    "_sd": [
      "degreeTitle",
      "awardDate"
    ]
  },
  "status": "DRAFT",
  "reviewedBy": null,
  "reviewedAt": null,
  "reviewNotes": null,
  "createdAt": "2026-08-25T18:51:55.846Z",
  "updatedAt": "2026-08-25T18:51:55.846Z"
}

vct is assigned automatically from credentialType: every institution proposing a DEGREE_AWARD template gets the same urn:nexiel:credential:degree-award:v1 value, so a verifier's query works against any Nexiel-vetted institution unchanged. A repeat proposal for the same institution and credential type becomes version: 2, never an in-place edit of this row.

2. Submit it for review

curl -s -X POST https://compliance.nexiel.io/v1/credentials/issue/templates/46c81db0-8acf-4fa7-8f12-ba9db2ed07b9/submit \
  -H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN"
200, status now PENDING_REVIEW
{
  "id": "46c81db0-8acf-4fa7-8f12-ba9db2ed07b9",
  "academicIssuerId": "7a6dfd13-15ed-4e44-9721-6e60f1369a1a",
  "credentialType": "DEGREE_AWARD",
  "vct": "urn:nexiel:credential:degree-award:v1",
  "version": 1,
  "claimsSchema": {
    "type": "object",
    "properties": {
      "awardDate": {
        "type": "string"
      },
      "degreeTitle": {
        "type": "string"
      }
    }
  },
  "sdJwtDisclosureFrame": {
    "_sd": [
      "degreeTitle",
      "awardDate"
    ]
  },
  "status": "PENDING_REVIEW",
  "reviewedBy": null,
  "reviewedAt": null,
  "reviewNotes": null,
  "createdAt": "2026-08-25T18:51:55.846Z",
  "updatedAt": "2026-08-25T18:51:58.112Z"
}

3. Nexiel reviews it

A Nexiel reviewer, never the institution's own API key, approves or rejects a PENDING_REVIEW template. Rejecting requires non-empty notes, so the institution gets concrete feedback to revise the claim shape:

curl -s -X POST https://compliance.nexiel.io/v1/credentials/issue/templates/46c81db0-8acf-4fa7-8f12-ba9db2ed07b9/review \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <reviewer_access_token>" \
  -d '{"decision": "APPROVED"}'
200, status now APPROVED
{
  "id": "46c81db0-8acf-4fa7-8f12-ba9db2ed07b9",
  "academicIssuerId": "7a6dfd13-15ed-4e44-9721-6e60f1369a1a",
  "credentialType": "DEGREE_AWARD",
  "vct": "urn:nexiel:credential:degree-award:v1",
  "version": 1,
  "claimsSchema": {
    "type": "object",
    "properties": {
      "awardDate": {
        "type": "string"
      },
      "degreeTitle": {
        "type": "string"
      }
    }
  },
  "sdJwtDisclosureFrame": {
    "_sd": [
      "degreeTitle",
      "awardDate"
    ]
  },
  "status": "APPROVED",
  "reviewedBy": "nexiel-compliance",
  "reviewedAt": "2026-08-25T18:52:00.765Z",
  "reviewNotes": null,
  "createdAt": "2026-08-25T18:51:55.846Z",
  "updatedAt": "2026-08-25T18:52:00.765Z"
}

Only an APPROVED template can ever be used to issue a real credential. Once a template has been reviewed, reviewedBy is always "nexiel-compliance". Before review it is null. This route requires a Nexiel staff token carrying the compliance-reviewer role, which an institution's own API key can never satisfy, so you never call it yourself.

4. How a student collects a credential

Each institution has its own Credential Issuer identifier, https://compliance.nexiel.io/v1/credentials/issuers/:issuerProfileId, which wallets use to collect its credentials. Each credential names the institution's verified domain as iss, and the certificate that signs it names that domain too. Its metadata, listing one configuration per approved credential type, is at /.well-known/openid-credential-issuer/v1/credentials/issuers/:issuerProfileId.

Approving a batch (section 5) creates one offer per student and emails the student a link. The student's wallet redeems it over OpenID4VCI 1.0 and HAIP 1.0: it presents a wallet attestation from its provider and a DPoP proof to get a DPoP-bound access token, fetches a fresh nonce, and proves possession of an attested key. Nexiel then returns an SD-JWT VC signed with the institution's certificate and bound to that key. The wallet-side protocol is identical for every credential Nexiel issues, and issue your own attestations walks through it with example responses. The student's claims are deleted once the credential has been collected or the offer has expired.

5. Submit a batch (many students at once)

POST /v1/credentials/issue/batches submits many students for issuance in one call, gated by the same maker-checker discipline as institution vetting: the signatory who prepares a batch can never be the one who approves it. A preparing signatory submits either raw rows or a csvContent string, and Nexiel samples roughly 10 percent of the valid rows for a second signatory to independently re-key and confirm before approval is even possible:

curl -s -X POST https://compliance.nexiel.io/v1/credentials/issue/batches \
  -H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "academicIssuerId": "7a6dfd13-15ed-4e44-9721-6e60f1369a1a",
    "credentialTemplateId": "46c81db0-8acf-4fa7-8f12-ba9db2ed07b9",
    "preparedBySignatoryId": "c1c9a6a1-2e11-4a0a-9b1a-1e6a6c9a1a11",
    "submissionMethod": "API",
    "rows": [
      {
        "studentFullName": "Sandbox Docs Graduate",
        "studentEmail": "graduate@sandbox-university.nexiel-docs.example",
        "claimValues": { "degreeTitle": "BSc Computer Science (docs example)", "awardDate": "2026-06-15" }
      }
    ]
  }'

The response reports each row's status, whether it was sampled for a recheck, and the batch's own status (SUBMITTED, moving to PENDING_APPROVAL once every sampled item is rechecked). A second signatory calls POST .../batches/:id/items/:itemId/recheck for each sampled item, then POST .../batches/:id/approve, which requires a fresh step-up re-authentication assertion and refuses outright if the approving signatory is the same person who prepared the batch, if fewer than two signatories are active for the institution at that exact moment, or if any sampled item was never rechecked or came back mismatched. Approval hands off to a background worker that creates each student's offer, as described in section 4.

The same workflow is available in the dashboard under Academic credentials, for institutions that prefer uploading a CSV to calling the API.

Idempotency, rate limits, and authentication

POST /v1/credentials/issue/templates and POST /v1/credentials/issue/batches honour an Idempotency-Key header: resending the exact same request with the same key returns the original response rather than creating a second template or batch. Use a fresh key for a new proposal. See Idempotency.

The template and batch routes require an access token for the institution's own Credentials API key, checked on every request so a revoked key is rejected at once. POST .../templates/:id/review requires a Nexiel staff token instead, never the institution's key. Naming an academicIssuerId that exists but is not yours returns the same 404 an unknown id would, never a 403 that would confirm it exists. Requests are rate limited per key (see Rate limits). The wallet-facing issuance routes take no Nexiel API key: the offer, the wallet attestation and the DPoP-bound access token are the authorization.