Retrieve key
GET/api/management/keys/:keyId
Retrieves key information of a specific key within this wallet
Request
Path Parameters
keyId stringrequired
Responses
- 200
- 403
- 404
- application/json
- Schema
- Example (auto)
Schema
idstringrequired
Example:
b86483f3-3792-4a54-b11e-f1c6face9935
typeKeyType (string)required
Possible values: [EdDSA
, ES384
, X509
]
Example:
EdDSA
defaultbooleanrequired
Example:
true
publicKey object
createdDatedate-timerequired
Example:
2025-02-21T10:26:42.206Z
modifiedDatedate-timerequired
Example:
2025-02-21T10:26:42.206Z
{
"id": "b86483f3-3792-4a54-b11e-f1c6face9935",
"type": "EdDSA",
"default": true,
"publicKey": {
"kty": "RSA",
"e": "AQAB",
"n": "0vx7agoebGcQSuuPiLJXZptN9nndrmyq0ctuV5m"
},
"createdDate": "2025-02-21T10:26:42.206Z",
"modifiedDate": "2025-02-21T10:26:42.206Z"
}
Forbidden
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
Example:
ResourceNotFound
statusstringrequired
Example:
404 Not Found
codenumberrequired
Example:
404
messageobject
Example:
The requested resource does not exist.
errorstring
Example:
Not Found
{
"name": "ResourceNotFound",
"status": "404 Not Found",
"code": 404,
"message": "The requested resource does not exist.",
"error": "Not Found"
}
Resource not found
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
Example:
ResourceNotFound
statusstringrequired
Example:
404 Not Found
codenumberrequired
Example:
404
messageobject
Example:
The requested resource does not exist.
errorstring
Example:
Not Found
{
"name": "ResourceNotFound",
"status": "404 Not Found",
"code": 404,
"message": "The requested resource does not exist.",
"error": "Not Found"
}
Authorization: oauth2
name: oauth2type: oauth2scopes:wallet_manage_keys
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/keys/:keyId' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'