Mark a credential’s status (e.g. revoke)
The credential ID to update
POST /v1/credentials/{id}/revoke HTTP/1.1 Host: api x-client-secret: YOUR_API_KEY Accept: */*
OK
No content
Retrieve a credential by ID
The unique identifier of the credential
Response DTO for credential operations
GET /v1/credentials/{id} HTTP/1.1 Host: api Authorization: Bearer JWT Accept: */*
{ "id": "d290f1ee-6c54-4b01-90e6-d701748f0851", "vc": { "@context": [ "https://www.w3.org/2018/credentials/v1" ], "type": [ "VerifiableCredential" ], "id": "urn:uuid:d290f1ee-6c54-4b01-90e6-d701748f0851", "issuer": "did:empe:0x1234567890abcdef", "issuanceDate": "2023-01-01T00:00:00Z" } }
Create a standalone credential
Request containing credential type and subject data
Type of credential to be created
ProofOfPurchase
^[a-zA-Z0-9_]+$
Credential subject data - the claims to be included in the credential
{"id":"did:empe:0x123456789","name":"John Doe","purchaseId":"12345"}
POST /v1/credentials HTTP/1.1 Host: api Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 116 { "type": "ProofOfPurchase", "credential_subject": { "id": "did:empe:0x123456789", "name": "John Doe", "purchaseId": "12345" } }
Created