Accepting an invitation
To accept any invitation (connection, issuance, or verification), pass the
short_url from the invitation response JSON to the invitation processor.
For example, if issuer1 is accepting the invitation, use the following
command:
curl --location --request PUT 'https://${service_url}/v1.0/diagency/invitation_processor' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ${issuer1_verifiable_credentials_access_token}' \
--data '{
"url": "https://${service_url}/diagency/a2a/v1/messages/605000BP6R/invitation?id=750389a6-41a4-443e-8c01-bb8033e82cc6"
}'
The response includes the following details:
{
"invitation": {
"@id": "750389a6-41a4-443e-8c01-bb8033e82cc6",
"@type": "https://didcomm.org/out-of-band/1.0/invitation",
"label": "user1",
"handshake_protocols": [
"https://didcomm.org/didexchange/1.0",
"https://didcomm.org/connections/1.0"
],
...
},
"connection": {
"id": "5a847690-9ceb-4cf2-a4bb-18c7e1805fd6",
...,
"role": "invitee",
"state": "connected",
...
},
}