Read Share
Get a share by ID
GET /di/share/{id}
Path parameters
| Param | Required | Description |
|---|---|---|
id | Yes | Share ID |
Example
Production:
curl 'https://api.qidpro.xyz/di/share/69ae9560ba7f6726e85f60ca' \
--header 'Authorization: Bearer your-secret-key' \
--header 'tokenId: your-token-id'Staging:
curl 'https://staging.qidpro.xyz/di/share/69ae9560ba7f6726e85f60ca' \
--header 'Authorization: Bearer your-secret-key' \
--header 'tokenId: your-token-id'Example response
Returns 200 OK. This example is a completed check-in where the guest filled the form, accepted the policy and shared a document.
{
"_id": "69ae9560ba7f6726e85f60ca",
"createdBy": "65dea5868910b6f5957a0fb5",
"deleteTime": null,
"schemaVersion": "3",
"participants": [
{
"account_id": "6627c83c122f76583c42ff10",
"accountType": "organisation",
"accountSnapshot": {
"_id": "6627c83c122f76583c42ff10",
"name": "Test Adventures",
"email": null,
"phoneNumber": null,
"displayPictureUrl": "c103be9234.jpeg",
"parentAccountId": null,
"countryIsoCode": null
},
"parentAccount_id": "6627c83c122f76583c42ff10",
"roles": ["organiser", "admin"]
},
{
"account_id": "65dea5868910b6f5957a0fb5",
"accountType": "user",
"accountSnapshot": {
"_id": "65dea5868910b6f5957a0fb5",
"name": "Rahul Sharma",
"email": "[email protected]",
"phoneNumber": "916123456780",
"displayPictureUrl": "4b7e91c0d2.png",
"countryIsoCode": "IN"
},
"roles": ["sharer", "admin"],
"otherFields": [
{
"value": "",
"isMandatory": false,
"isEnabled": true,
"data": null,
"isForEachParticipant": true,
"sectionBreak": null,
"name": "date_of_arrival",
"type": "date",
"label": "Date of Arrival",
"placeholder": "Select date"
},
{
"value": "Business",
"isMandatory": true,
"isEnabled": true,
"data": null,
"isForEachParticipant": true,
"sectionBreak": null,
"name": "purpose_of_visit",
"type": "textarea",
"label": "Purpose of Visit",
"placeholder": "Purpose of visit",
"errorMessage": null
}
],
"facePhoto": {
"isLive": false,
"imageUrl": "4b7e91c0d2.png"
},
"sharedDocumentsIds": ["65df7d42fdfc8d3689057d8e"],
"participantShareStatus": "completed"
}
],
"otherFields": [
{
"value": "",
"isMandatory": false,
"isEnabled": true,
"data": null,
"isForEachParticipant": false,
"sectionBreak": null,
"name": "booking_reference",
"type": "text",
"label": "Booking Reference",
"placeholder": "Booking reference"
},
{
"value": "",
"isMandatory": false,
"isEnabled": true,
"data": null,
"isForEachParticipant": false,
"sectionBreak": null,
"name": "emergency_contact_phone",
"type": "phone",
"label": "Emergency Contact Phone"
},
{
"value": "",
"isMandatory": false,
"isEnabled": true,
"data": null,
"isForEachParticipant": false,
"sectionBreak": null,
"name": "emergency_contact_email",
"type": "email",
"label": "Emergency Contact Email"
},
{
"value": "",
"isMandatory": false,
"isEnabled": true,
"data": null,
"isForEachParticipant": false,
"sectionBreak": null,
"name": "room_type",
"type": "dropdown",
"options": "Standard,Deluxe,Suite",
"label": "Room Type"
}
],
"template": {
"_id": "669d25bf4be6e965914a9e3e",
"purpose": "Guest Check-in",
"org": null,
"type": "check-in",
"uiVersion": 2,
"otherInfo": null,
"acceptedIds": null
},
"isQuotaLocked": false,
"status": "completed",
"agreements": [
{
"urlButtonText": "Read the complete policy",
"mandatory": true,
"checkboxTitle": "I Agree",
"bullets": [],
"icons": [
{
"imgName": "no-drink.png"
}
],
"title": "House Rules",
"accepted": true
}
],
"updateLogs": [
{
"remark": "Share Started",
"updatedByAccount_id": "65dea5868910b6f5957a0fb5",
"updatedByAccountType": "user",
"updatedByAccountSnapshot": {
"name": "Rahul Sharma"
},
"updateTime": "2026-03-09T09:33:52.539Z"
},
{
"remark": "Form Details Submitted",
"updatedByAccount_id": "65dea5868910b6f5957a0fb5",
"updatedByAccountSnapshot": {
"name": "Rahul Sharma"
},
"updateTime": "2026-03-09T09:34:03.945Z"
},
{
"remark": "Policies Accepted",
"updatedByAccount_id": "65dea5868910b6f5957a0fb5",
"updatedByAccountSnapshot": {
"name": "Rahul Sharma"
},
"updateTime": "2026-03-09T09:34:06.349Z"
},
{
"remark": "Share Completed",
"updatedByAccount_id": "65dea5868910b6f5957a0fb5",
"updatedByAccountType": "user",
"updatedByAccountSnapshot": {
"name": "Rahul Sharma"
},
"updateTime": "2026-03-09T09:34:06.745Z"
}
],
"isPublicJoin": false,
"collectionRequestId": null,
"automations": ["CFORM"],
"webhookUrl": "https://example.com/webhooks/qid",
"webhookSecret": null,
"webhookIdentifier": "booking-1024",
"createTime": "2026-03-09T09:33:52.539Z",
"lastUpdateTime": "2026-03-09T09:34:06.745Z",
"__v": 0,
"masterKeyString": null
}The response has the same fields as Create Share, with these differences:
| Property | Type | Description |
|---|---|---|
createdBy | string | Account ID that started the share. Only present on shares started from the qid app; not returned for shares created with POST /di/share. |
template | object | null | Template details: _id, purpose, org, type, uiVersion, otherInfo, acceptedIds. null if the share's template ID does not match a template. |
masterKeyString | string | null | Always present on read |
Participants that have filled the share can also include:
| Field | Type | Description |
|---|---|---|
parentAccount_id | string | Parent account ID |
otherFields | Fields[] | Form fields filled by this participant (fields with isForEachParticipant: true) |
facePhoto | object | Selfie: isLive, imageUrl |
participantShareStatus | string | This participant's share status, for example completed |
accountSnapshot is returned as stored. For a share created with POST /di/share it contains only what was sent in the request.
Form fields
Fields that come from a template have these properties:
| Field | Type | Description |
|---|---|---|
value | string | Value entered |
isMandatory | boolean | Whether the field is required |
isEnabled | boolean | Whether the field is shown |
data | any | null | Extra field data |
isForEachParticipant | boolean | true if each participant fills the field, false if it is filled once for the share |
sectionBreak | any | null | Section break before the field |
name | string | Field key |
type | string | Field type, for example text, textarea, date, phone, email, dropdown |
label | string | Field label |
placeholder | string | Placeholder text (optional) |
options | string | Comma-separated options for dropdown fields |
errorMessage | string | null | Validation message (optional) |
Errors
| Status | When | message |
|---|---|---|
400 | id is not a valid ObjectId | Invalid Object ID |
401 | Authorization or tokenId header missing | Error: Token Missing |
401 | tokenId not recognised | HttpException: No record found with the provided Token ID |
500 | No share exists with this id | Internal server error |
Note: A well-formed ID that does not match any share returns
500, not404.
{
"statusCode": 400,
"message": "Invalid Object ID",
"timestamp": "2026-03-09T09:39:44.886Z",
"path": "/di/share/not-an-id",
"requestId": "3f2b8c1e-7d4a-4e9b-a1c6-5d8e2f0b9a71"
}Updated 17 days ago
Did this page help you?