Retrieve a Credential
GET
/api/v1/credentials/{id}
Returns the requested Credential for the given User’s required Profile
Request
curl --location 'https://nanotrust.io/api/v1/credentials/ID' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'
Query Params
Name | Type | Descriptipon |
Profile_id | String | Profile id |
id | String | Credential id |
Responses
200
{
"credential": {
"id": "21ff7ada-ff86-4d30-a1f7-c4ecb547660b",
"issuer_profile_id": "0c5a1ffd-224b-42f9-ba0c-1100ad3b44f9",
"status": "pending",
"kind": "diploma",
"owner_name": "Tiara Hammes",
"owner_email": "randy_zboncak@senger.net",
"data": {
"name": "Bachelor of Biomedical Science",
"start_time": "2022-05-19"
},
"created_at": "2023-03-06T14:16:55.041+01:00",
"updated_at": "2023-03-06T14:16:55.046+01:00",
"review_token": "hTjzBNK7cs95nLdDR52r2xpk",
"owner_profile_id": null,
"wallet_status": "unsync",
"owner_birth_date": "2021-09-06",
"owner_birth_place": "New Ina",
"email_template_id": null,
"mailjet_id": null,
"mailjet_status": 0,
"is_implicit_consent": false,
"name": "Bachelor of Biomedical Science"
}
}
401
No access token was provided, please provide one in an Authorization header.
404
Profile not found