Transmute
HomepagePlatformGithubOpenAPI Spec
  • Introduction
  • Platform Guide
    • Credentials
      • Excel Based Data Entry
      • PDF Download
      • Data Integrity Proof Deprecation
      • Quick Convert
    • Contacts
    • Presentations
    • Workflows
    • Template Marketplace
    • Adapter Marketplace
      • GitHub Adapter
      • Neo4j Adapter
    • Organization Profile
    • Members
    • Billing
  • Technical Documentation
    • Machine to Machine Applications
    • OpenAPI Specification
    • Getting Started Postman Collection
    • Decentralized Identifiers Endpoints
    • Verifiable Credentials Endpoints
    • DIDAuth Presentations
  • Learning Center
    • Credentials 101
    • Decentralized 101
    • Digital Signatures
    • Holders, Issuers, Verifiers, & Subjects
    • Verification, Validity, and Veracity Checks
    • Interoperability
    • Open Standards
    • Verifiable Data Registries
    • JSON-LD
    • Digital Wallets 101
Powered by GitBook
On this page

Was this helpful?

  1. Technical Documentation

Verifiable Credentials Endpoints

This page covers the end points related to Verifiable Credentials in the API.

PreviousDecentralized Identifiers EndpointsNextDIDAuth Presentations

Last updated 10 months ago

Was this helpful?

This page introduces working with Verifiable Credentials through the API. The full set of relevant endpoints are listed on the OpenAPI Spec, notably in these sections:

Issuing Verifiable Credentials

Basic, standards-compliant Verifiable Credentials can be issued with the /api/credentials/issue endpoint:

curl --location 'https://platform.transmute.industries/api/credentials/issue' \
--header 'accept: application/json' \
--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'content-type: application/json' \
--data-raw '{
  "credential": {
    "@context": [
      "https://www.w3.org/2018/credentials/v1",
      "https://www.w3.org/2018/credentials/examples/v1"
    ],
    "type": [
      "VerifiableCredential",
      "UniversityDegreeCredential"
    ],
    "issuer": "did:web:vc.transmute.world",
    "issuanceDate": "2020-03-10T04:24:12.164Z",
    "credentialSubject": {
      "id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
      "degree": {
        "type": "BachelorDegree",
        "name": "Bachelor of Science and Arts"
      }
    }
  },
  "options": {
    "revocable": true,
    "suspendable": false
  }
}'

Note that if you are using the request payload example from the OpenAPI Spec, the issuer must be changed to one of your organization’s DIDs – you can only sign with your own private keys.

Note!

Remember that the issuer must be a DID, not a DID URL – the issuer must not contain a fragment (#).

The response of this call is a Verifiable Credential:

{
    "verifiableCredential": "ey..."
}

It is important to understand the content of this request payload. Below is a brief introduction to get started, please see the for a complete reference.

https://platform.transmute.industries/openapi#tag--Credentials
https://platform.transmute.industries/openapi#tag--Batches
VC specification