Skip to main content

DID Management API

Create, retrieve, update, and manage Decentralized Identifiers (DIDs) for research data

POST/api/did

Create a new DID document for research data

Request Body

Request URL: http://localhost:8081/api/did

Example Response

{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/suites/ed25519-2020/v1",
    "https://w3id.org/biodata/v1"
  ],
  "id": "did:bio:535a7a41-6c22-42ea-9a08-828a17ac7879",
  "alsoKnownAs": null,
  "controller": [
    "did:bio:controller123"
  ],
  "verificationMethod": [
    {
      "id": "did:bio:535a7a41-6c22-42ea-9a08-828a17ac7879#keys-1",
      "controller": "did:bio:535a7a41-6c22-42ea-9a08-828a17ac7879",
      "type": "Ed25519VerificationKey2020",
      "publicKeyMultibase": "z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK",
      "publicKeyJwk": null
    }
  ],
  "authentication": [
    "did:bio:535a7a41-6c22-42ea-9a08-828a17ac7879#keys-1"
  ],
  "assertionMethod": null,
  "service": [
    {
      "id": "did:bio:535a7a41-6c22-42ea-9a08-828a17ac7879#storage",
      "type": "IPFSStorage",
      "serviceEndpoint": "https://ipfs.bio-did-seq.example/api",
      "description": "IPFS storage for biological research data"
    }
  ],
  "created": "2025-07-26T04:11:39.277493060Z",
  "updated": "2025-07-26T04:11:39.277493060Z",
  "metadata": {
    "title": "Research Dataset",
    "description": null,
    "researchers": [
      {
        "name": "John Doe",
        "orcid": null,
        "role": "Lead Researcher",
        "affiliation": null,
        "email": null
      }
    ],
    "keywords": [
      "biology",
      "genomics"
    ],
    "data_type": "genomic",
    "license": "CC-BY-4.0",
    "doi": null,
    "handle": null,
    "dataverse_link": null,
    "related_identifiers": null,
    "dataset_size": null,
    "funding_info": null,
    "creation_date": "2025-07-26T00:00:00Z",
    "last_modified": "2025-07-26T00:00:00Z"
  }
}