Retrieve credential configuration
GET/api/management/credentials/config
Retrieves credential configuration that can be used by this wallet. Contains both trust anchors and JSON-LD contexts.
Request
Responses
- 200
- application/json
- Schema
- Example (auto)
Schema
contextstring[]
A list of JSON-LD contexts applied to the credential
Example:
["https://dataspace.example/context"]
typestring[]
Types that classify the credential
Example:
["DataSpaceMembershipCredential"]
idCredential ID (string)required
Unique identifier for the credential configuration
Example:
credential-id-789
keyIdstring
Optional key identifier associated with the credential
Example:
key-identifier-001
credentialSubject object
revocablebooleanrequired
Indicates whether the credential is revocable
Example:
true
{
"context": [
"https://dataspace.example/context"
],
"type": [
"DataSpaceMembershipCredential"
],
"id": "credential-id-789",
"keyId": "key-identifier-001",
"credentialSubject": {
"id": "did:example:subject",
"name": "Subject Name"
},
"revocable": true
}
Authorization: oauth2
name: oauth2type: oauth2scopes:wallet_view_all_credentials,wallet_view_own_credentials
flows: { "password": { "scopes": { "wallet_view_did": "wallet_view_did", "wallet_manage_keys": "wallet_manage_keys", "wallet_use_keys": "wallet_use_keys", "wallet_view_own_credentials": "wallet_view_own_credentials", "wallet_view_all_credentials": "wallet_view_all_credentials", "wallet_manage_own_credentials": "wallet_manage_own_credentials", "wallet_manage_all_credentials": "wallet_manage_all_credentials", "wallet_issue_credentials": "wallet_issue_credentials", "wallet_view_presentations": "wallet_view_presentations" } } }
- curl
- http
- CURL
curl -L 'https://tsg.dataspac.es/api/management/credentials/config' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'