Last updated 7 months ago
/credentials/issue
curl -L \ --request POST \ --url 'https://sunbirdrc.dev/api/v1/credentials/issue' \ --header 'Token: YOUR_API_KEY' \ --header 'Content-Type: appliation/json' \ --data '{"credential":{"issuer":{},"credentialSubject":{},"context":[null]},"tags":[null]}'
{ "credentialSchemaId": "text", "createdAt": "text", "updatedAt": "text", "createdBy": "text", "updatedBy": "text", "tags": [ "text" ], "credential": { "id": "text", "type": "text", "issuanceDate": "2025-02-21T18:11:46.340Z", "expirationDate": "2025-02-21T18:11:46.340Z", "issuer": {}, "credentialSubject": {}, "context": [ "text" ], "proof": { "type": "text", "created": "text", "challenge": "text", "domain": "text", "nonce": "text", "verificationMethod": "text", "proofPurpose": "text", "jws": "text", "proofValue": "text" } } }
/credentials/{id}
application/json
application/vc+ld+json
text/html
image/svg+xml
text/plain
image/jpeg
curl -L \ --url 'https://sunbirdrc.dev/api/v1/credentials/{id}' \ --header 'Token: YOUR_API_KEY' \ --header 'accept: application/json'
{ "id": "text", "type": "text", "issuanceDate": "2025-02-21T18:11:46.340Z", "expirationDate": "2025-02-21T18:11:46.340Z", "issuer": {}, "credentialSubject": {}, "context": [ "text" ], "proof": { "type": "text", "created": "2025-02-21T18:11:46.340Z", "challenge": "text", "domain": "text", "nonce": "text", "verificationMethod": "text", "proofPurpose": "text", "jws": "text", "proofValue": "text" } }
curl -L \ --request DELETE \ --url 'https://sunbirdrc.dev/api/v1/credentials/{id}' \ --header 'Token: YOUR_API_KEY'
{ "revocationListIndex": "text" }
/credentials/search
claim
sign
curl -L \ --request POST \ --url 'https://sunbirdrc.dev/api/v1/credentials/search' \ --header 'Token: YOUR_API_KEY' \ --header 'Content-Type: appliation/json' \ --data '{"type":"claim","issuer":{},"subject":{}}'
[ { "id": "text", "type": "text", "issuanceDate": "2025-02-21T18:11:46.340Z", "expirationDate": "2025-02-21T18:11:46.340Z", "issuer": {}, "credentialSubject": {}, "context": [ "text" ], "proof": { "type": "text", "created": "2025-02-21T18:11:46.340Z", "challenge": "text", "domain": "text", "nonce": "text", "verificationMethod": "text", "proofPurpose": "text", "jws": "text", "proofValue": "text" } } ]
Verifies a verifiableCredential and returns a verificationResult in the response body.
/credentials/{id}/verify
curl -L \ --url 'https://sunbirdrc.dev/api/v1/credentials/{id}/verify' \ --header 'Token: YOUR_API_KEY'
{ "status": "Active", "warnings": [ "text" ], "errors": [ "text" ], "checks": [ { "active": "OK", "revoked": "OK", "expired": "OK", "proof": "OK" } ] }
/credentials/revocation-list
The ID of the issuer
The page number
The limit of items per page
curl -L \ --url 'https://sunbirdrc.dev/api/v1/credentials/revocation-list?issuerId=text&page=text&limit=text' \ --header 'Token: YOUR_API_KEY'
[ {} ]