Invitations
Endpoints for creating and managing invitations
This endpoint retrieves all invitations associated with the provided API key.
The field to sort by.
The direction to sort (asc or desc).
The number of invitations per page.
The current page number.
The total number of items.
A list of invitations
Unauthorized.
Internal Server Error
GET /api/v1/invitations HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
{
"invitations": {
"params": {},
"count": 1,
"rows": [
{}
]
}
}
This endpoint creates a new invitation of type OOB or CV1.
The type of the invitation (OOB or CV1).
OOB
The ID of the contact.
undefined
The handshake protocol for OOB invitations.
undefined
The alias for the invitation.
undefined
The mode of the invitation.
undefined
The accept criteria for the invitation.
true
Whether the invitation is public.
false
The role of the invitation.
undefined
The label of the invitation.
undefined
The status of the invitation.
undefined
The description of the invitation.
undefined
The start time of the invitation's active period.
undefined
The end time of the invitation's active period.
undefined
The number of uses allowed for the invitation.
undefined
Invitation created successfully
Bad Request
Unauthorized.
Internal Server Error
POST /api/v1/invitations HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 412
{
"invitation_type": "OOB",
"contact_id": "",
"handshake_protocol": "https://didcomm.org/didexchange/1.1",
"alias": "API Invitation",
"invitation_mode": "once",
"accept": "auto",
"public": false,
"invitation_role": "Holder",
"invitation_label": "OOB",
"invitation_status": "active",
"invitation_description": "Invitation created through API",
"invitation_active_starting_at": null,
"invitation_active_ending_at": null,
"uses_allowed": null
}
{
"invitation_url": "https://fresh-fox-61.tun2.indiciotech.io?oob=eyJAdHlwZSI6ICJodHRwczovL2RpZGNvbW0ub3JnL291dC1vZi1iYW5kLzEuMS9pbnZpdGF0aW9uIiwgIkBpZCI6ICIzMzAyMDMyZC05MTA4LTQ4YzMtYmM3ZC1mZjZiNzU1ZDcyMmQiLCAibGFiZWwiOiAiT09CIiwgImhhbmRzaGFrZV9wcm90b2NvbHMiOiBbImh0dHBzOi8vZGlkY29tbS5vcmcvZGlkZXhjaGFuZ2UvMS4xIl0sICJzZXJ2aWNlcyI6IFsiZGlkOnNvdjo5NUxBeVFpdE5oNWtWYWF5Q0ZDOVMyIl19",
"invitation_id": 1,
"contact_id": ""
}
This endpoint accepts an invitation of type CV1 or OOB.
The URL of the invitation to be accepted.
undefined
Example: https://example.com/invitation?c_i=abc123
Invitation accepted successfully
Bad Request
Unauthorized.
Internal Server Error
POST /api/v1/invitations/accept HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"invitation_url": "https://example.com/invitation?c_i=abc123"
}
{
"success": true,
"invitation_record": {}
}
Retrieves the invitation workflow for the provided wallet ID.
Invitation workflow retrieved successfully
Bad Request
Unauthorized
Invitation workflow record not found
Internal Server Error
GET /api/v1/invitations/workflow HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
{
"key": "invitationWorkflow",
"value": {
"invitation_key": "AVSmbahEchK641kL89YeLP5CedttAiokHDA5vNDGg4wg"
},
"wallet_id": "a82f9494-b989-473e-a9aa-4ff6c3a46825"
}
This endpoint retrieves a specific invitation by its ID.
The ID of the invitation.
1
Invitation retrieved successfully
Unauthorized.
Invitation not found
Internal Server Error
GET /api/v1/invitations/{id} HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
{}
This endpoint updates an existing invitation.
The ID of the invitation to update.
The workflow status of the invitation.
active
The description of the invitation.
This is an updated invitation.
The start time of the invitation.
2023-01-01T00:00:00Z
The end time of the invitation.
2023-12-31T23:59:59Z
The number of uses allowed for the invitation.
1
Invitation updated successfully
Bad request. Invalid parameters.
Invitation record not found
Internal server error
PUT /api/v1/invitations/{id} HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 178
{
"workflow_status": "active",
"description": "This is an updated invitation.",
"active_starting_at": "2023-01-01T00:00:00Z",
"active_ending_at": "2023-12-31T23:59:59Z",
"uses_allowed": 1
}
{}
This endpoint deletes an existing invitation.
The ID of the invitation to delete.
Invitation deleted successfully
Bad request. Invalid parameters.
Invitation record not found
Internal server error
DELETE /api/v1/invitations/{id} HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": "Invitation was deleted successfully!"
}
Was this helpful?