List all Credentials

GET

/api/v1/credentials

The list of all Credentials by the given User’s required Profile.

Request

curl --location 'https://nanotrust.io/api/v1/credentials?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": "91256483-9bf2-43f3-8617-c268b83af10c",
                "issuer_profile_id": "694d072c-3f45-4854-abf8-d23cd321013f",
                "status": "pending",
                "kind": "diploma",
                "owner_name": "Dr. Michelina Wilkinson",
                "owner_email": "randa@gleason-weimann.biz",
                "data": {
                    "name": "Master of Communications",
                    "start_time": "2021-06-06"
                },
                "created_at": "2023-03-06T14:16:56.168+01:00",
                "updated_at": "2023-03-06T14:16:56.173+01:00",
                "review_token": "p2PgSo8ydn1TZ67B2CJXD3XR",
                "owner_profile_id": null,
                "wallet_status": "unsync",
                "owner_birth_date": "2020-10-04",
                "owner_birth_place": "Kundemouth",
                "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.