Last updated 10 months ago
Was this helpful?
LearnCard Network is in beta! Come back soon for full documentation!
This route is used to register a signing authority that can sign credentials on the current user's behalf
curl -L \ --request POST \ --url '../api/profile/signing-authority/register' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "endpoint": "text", "name": "text", "did": "text" }'
true
This route is used to get registered signing authorities that can sign credentials on the current user's behalf
curl -L \ --url '../api/profile/signing-authority/get' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[ { "signingAuthority": { "endpoint": "text" }, "relationship": { "name": "text", "did": "text" } } ]
This route is used to get a named signing authority that can sign credentials on the current user's behalf
curl -L \ --url '../api/profile/signing-authority/get/{endpoint}/{name}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "signingAuthority": { "endpoint": "text" }, "relationship": { "name": "text", "did": "text" } }