List all Credentials owned
GET
/api/v1/credentials/owned
The list of all Credentials owned by the given User’s required Profile.
Request
curl --location 'https://nanotrust.io/api/v1/credentials/owned?profile_id=PROFILE_ID' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'
Query Params
Name | Type | Descriptipon |
Profile_id | String | Profile id |
Responses
200
List of credentials
{
"credentials": [
{
"id": "b63fb369-0761-4163-83e5-b2fe920fefc3",
"issuer_profile_id": "b84f9e51-5c87-4efd-961f-2c63a613ea7d",
"status": "pending",
"kind": "diploma",
"owner_name": "Fredda Ryan",
"owner_email": "alden@watsica.info",
"data": {
"name": "Bachelor of Forensic Science",
"start_time": "2021-06-21"
},
"created_at": "2023-03-06T14:16:55.559+01:00",
"updated_at": "2023-03-06T14:16:55.564+01:00",
"review_token": "cGKBwpgHKoQJkRrCxovCW9HL",
"owner_profile_id": null,
"wallet_status": "unsync",
"owner_birth_date": "2022-10-07",
"owner_birth_place": "Schoenbury",
"email_template_id": null,
"mailjet_id": null,
"mailjet_status": 0,
"is_implicit_consent": false
},
{
"id": "03ea711a-4807-4f3f-ba1d-5e00b225cc99",
"issuer_profile_id": "b84f9e51-5c87-4efd-961f-2c63a613ea7d",
"status": "pending",
"kind": "diploma",
"owner_name": "Maricruz Stroman",
"owner_email": "ted.treutel@mitchell.name",
"data": {
"name": "Master of Education",
"start_time": "2022-10-16"
},
"created_at": "2023-03-06T14:16:55.549+01:00",
"updated_at": "2023-03-06T14:16:55.554+01:00",
"review_token": "Dw5oibLDK6VkLgwJ6NAsbYxD",
"owner_profile_id": null,
"wallet_status": "unsync",
"owner_birth_date": "2021-12-23",
"owner_birth_place": "East Monahaven",
"email_template_id": null,
"mailjet_id": null,
"mailjet_status": 0,
"is_implicit_consent": false
}
]
}
401
You have not provided a profile_id parameter, we cannot return Credentials without a requested Profile.