List all Delegations

GET

/api/v1/delegations

The list of all Delegations for the giver Profile.

Request

curl --location 'https://nanotrust.io/api/v1/delegations?profile_id=PROFILE_ID' \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer YOUR_TOKEN'

Query Params

Name Type Descriptipon
Profile_id String Profile id

Responses

200

{
    "delegations": [
        {
            "id": "3399a083-996c-4cf4-b905-94d544577efb",
            "user_id": "7654e0a2-f8de-4fd4-a3d7-50c732dd1eb7",
            "profile_id": "645ea14f-a48e-44b4-8f2a-c406b200dbfe",
            "invited_at": null,
            "invitation_token": "kxf7hqin6UTEUcny8kZkgP4b",
            "status": "accepted",
            "created_at": "2023-03-06T14:16:56.548+01:00",
            "updated_at": "2023-03-06T14:16:56.548+01:00",
            "email": null,
            "deleted_at": null
        },
        {
            "id": "5ecf8055-d70e-48a6-89b0-8714995f99ed",
            "user_id": "58937fed-42af-4809-8c56-22bdc6cc6a6e",
            "profile_id": "645ea14f-a48e-44b4-8f2a-c406b200dbfe",
            "invited_at": null,
            "invitation_token": "AZZKPTuH8NjuyHzegY85SVu6",
            "status": "accepted",
            "created_at": "2023-03-06T14:16:56.557+01:00",
            "updated_at": "2023-03-06T14:16:56.557+01:00",
            "email": null,
            "deleted_at": null
        }
    ]
}

401

You have not provided a profile_id parameter, we cannot return Credentials without a requested Profile.