Listing invitations

To list all invitations that are associated with issuer1, use the following command:

curl --location 'https://${service_url}/v1.0/diagency/invitations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ${issuer1_verifiable_credentials_access_token}'

The response includes the following details:

{
    "count": 2,
    "items": [
        {
            "id": "750389a6-41a4-443e-8c01-bb8033e82cc6",
            ...
        },
        {
            "id": "3da856c9-80a5-4ee0-b069-0ae8d9cd5e54",
            ...
        },
    ]
}

To retrieve details about a specific invitation by its ID, use the following command:

curl --location 'https://${service_url}/v1.0/diagency/invitations/750389a6-41a4-443e-8c01-bb8033e82cc6' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ${issuer1_verifiable_credentials_access_token}'